-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yaml
81 lines (66 loc) · 2.82 KB
/
config.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Purpose: Main directory where all data is stored
# Required: YES
data_dir: /mnt/disks/storage/archivist-data
# Purpose: Max workers number (threads for download / validation)
# Required: NO
# Default: decided by ThreadPoolExecutor
max_workers: 5
# Purpose: Limit for SF api usage, will pause downloads if this limit is hit and resume when api usage is below
# Required: NO
# Default: None
max_api_usage_percent: 50
# Purpose: Set default modified_date_gt date to use when not specified on object level
# Required: NO
# Default: None
# Notes: Must be valid datetime recognized by yaml parser
modified_date_gt: 2011-01-01T00:00:00Z
# Purpose: Set default modified_date_lt date to use when not specified on object level
# Required: NO
# Default: None
# Notes: Must be valid datetime recognized by yaml parser
modified_date_lt: 2011-01-01T00:00:00Z
# Purpose: Salesforce authentication configuration
# Required: YES
auth:
# Purpose: Salesforce instance login url
# Required: YES
instance_url: https://login.salesforce.com/
# Purpose: Salesforce account username
# Required: YES
username: example-username
# Purpose: Connected app consumer key
# Required: YES
consumer_key: example-connected-app-key
# Purpose: Connected app private key, base64 encoded, will be automatically decoded by yaml parser
# Required: YES
private_key: !!binary |
TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4g
VXQgYSBkb2xvciBxdWlzIGxlbyBmcmluZ2lsbGEgdm9sdXRwYXQgYWMgc2VkIHZlbGl0LiBFdGlh
bSBvZGlvIGxlY3R1cywgZmV1Z2lhdCB2ZXN0aWJ1bHVtIHB1bHZpbmFyIGV1LCBvcm5hcmUgYXQg
ZXguCg==
# Purpose: Map of Salesforce objects to process.
# Required: YES
# Notes: Key is an object name, values is configuration map.
objects:
User:
# Purpose: Process only ContentDocument objects attached that were modified after datetime
# Required: NO
# Default: None
# Notes: Must be valid datetime recognized by yaml parser
modified_date_gt: 2017-01-01T00:00:00Z
# Purpose: Process only ContentDocument objects attached that were modified before datetime
# Required: NO
# Default: None
# Notes: Must be valid datetime recognized by yaml parser
modified_date_lt: 2023-08-01T00:00:00Z
# Purpose: Use value of this field as a directory name for downloaded files
# Required: NO
# Default: ContentDocumentLink.LinkedEntityId
# Notes: `LinkedEntity` lookup fields can be used but not every field of every linked entity can be used.
# Check project readme file for more details.
dir_name_field: LinkedEntity.Username
# Example 1: Process ContentDocument objects attached to `Account` object, older than datetime
Account:
modified_date_lt: 2023-08-01T00:00:00Z
# Example 2: Process ContentDocument objects attached to `Booking__c` custom object, use default configuration
Booking__c: {}