files.com 1.1.33 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/automation.md +16 -0
- data/docs/sso_strategy.md +2 -0
- data/lib/files.com/models/automation.rb +24 -0
- data/lib/files.com/models/sso_strategy.rb +5 -0
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a31a916150c9211fe59fc4322ebad2012722d3efff38b60ef3a9a80211b6536
|
4
|
+
data.tar.gz: a1e69cbb9e21ce9acb30681033b331a7b9f8ff74f80e12f605df2b46c326251a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79cc896408411492f66898c2f40d428466588331502adaffa050993df41b40322182d8613556fe3c9ca57893a93a6c64a804d2bd5fce8542c609f3952b8735d2
|
7
|
+
data.tar.gz: a1d5832ce30a7aeaad325c3882499cabed46a10954835e4a9afa4aa58125d4721e334c88bbf9d492af50a0bf5b7990fed677ff2a84592c4127bb6bedcd7299ee
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.35
|
data/docs/automation.md
CHANGED
@@ -19,9 +19,11 @@
|
|
19
19
|
1,
|
20
20
|
2
|
21
21
|
],
|
22
|
+
"ignore_locked_folders": true,
|
22
23
|
"interval": "week",
|
23
24
|
"last_modified_at": "2000-01-01T01:00:00Z",
|
24
25
|
"name": "example",
|
26
|
+
"overwrite_files": true,
|
25
27
|
"path": "example",
|
26
28
|
"recurring_day": 25,
|
27
29
|
"schedule": "example",
|
@@ -67,9 +69,11 @@
|
|
67
69
|
* `destinations` (array): Destination Paths
|
68
70
|
* `disabled` (boolean): If true, this automation will not run.
|
69
71
|
* `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
|
72
|
+
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
70
73
|
* `interval` (string): If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
71
74
|
* `last_modified_at` (date-time): Time when automation was last modified. Does not change for name or description updates.
|
72
75
|
* `name` (string): Name for this automation.
|
76
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
73
77
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
74
78
|
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
75
79
|
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
|
@@ -146,7 +150,9 @@ Files::Automation.create(
|
|
146
150
|
always_overwrite_size_matching_files: true,
|
147
151
|
description: "example",
|
148
152
|
disabled: true,
|
153
|
+
ignore_locked_folders: true,
|
149
154
|
name: "example",
|
155
|
+
overwrite_files: true,
|
150
156
|
trigger: "daily",
|
151
157
|
trigger_actions: ["create"],
|
152
158
|
value: {"limit":"1"},
|
@@ -173,7 +179,9 @@ Files::Automation.create(
|
|
173
179
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
174
180
|
* `description` (string): Description for the this Automation.
|
175
181
|
* `disabled` (boolean): If true, this automation will not run.
|
182
|
+
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
176
183
|
* `name` (string): Name for this automation.
|
184
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
177
185
|
* `trigger` (string): How this automation is triggered to run.
|
178
186
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
179
187
|
* `value` (object): A Hash of attributes specific to the automation type.
|
@@ -215,7 +223,9 @@ Files::Automation.update(id,
|
|
215
223
|
always_overwrite_size_matching_files: true,
|
216
224
|
description: "example",
|
217
225
|
disabled: true,
|
226
|
+
ignore_locked_folders: true,
|
218
227
|
name: "example",
|
228
|
+
overwrite_files: true,
|
219
229
|
trigger: "daily",
|
220
230
|
trigger_actions: ["create"],
|
221
231
|
value: {"limit":"1"},
|
@@ -243,7 +253,9 @@ Files::Automation.update(id,
|
|
243
253
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
244
254
|
* `description` (string): Description for the this Automation.
|
245
255
|
* `disabled` (boolean): If true, this automation will not run.
|
256
|
+
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
246
257
|
* `name` (string): Name for this automation.
|
258
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
247
259
|
* `trigger` (string): How this automation is triggered to run.
|
248
260
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
249
261
|
* `value` (object): A Hash of attributes specific to the automation type.
|
@@ -302,7 +314,9 @@ automation.update(
|
|
302
314
|
always_overwrite_size_matching_files: true,
|
303
315
|
description: "example",
|
304
316
|
disabled: true,
|
317
|
+
ignore_locked_folders: true,
|
305
318
|
name: "example",
|
319
|
+
overwrite_files: true,
|
306
320
|
trigger: "daily",
|
307
321
|
trigger_actions: ["create"],
|
308
322
|
value: {"limit":"1"},
|
@@ -330,7 +344,9 @@ automation.update(
|
|
330
344
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
331
345
|
* `description` (string): Description for the this Automation.
|
332
346
|
* `disabled` (boolean): If true, this automation will not run.
|
347
|
+
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
333
348
|
* `name` (string): Name for this automation.
|
349
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
334
350
|
* `trigger` (string): How this automation is triggered to run.
|
335
351
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
336
352
|
* `value` (object): A Hash of attributes specific to the automation type.
|
data/docs/sso_strategy.md
CHANGED
@@ -39,6 +39,7 @@
|
|
39
39
|
"provision_sftp_permission": true,
|
40
40
|
"provision_time_zone": "Eastern Time (US & Canada)",
|
41
41
|
"provision_company": "ACME Corp.",
|
42
|
+
"provision_require_2fa": "always_require",
|
42
43
|
"ldap_base_dn": "example",
|
43
44
|
"ldap_domain": "mysite.com",
|
44
45
|
"enabled": true,
|
@@ -87,6 +88,7 @@
|
|
87
88
|
* `provision_sftp_permission` (boolean): Auto-provisioned users get SFTP permission?
|
88
89
|
* `provision_time_zone` (string): Default time zone for auto provisioned users.
|
89
90
|
* `provision_company` (string): Default company for auto provisioned users.
|
91
|
+
* `provision_require_2fa` (string): 2FA required setting for auto provisioned users.
|
90
92
|
* `ldap_base_dn` (string): Base DN for looking up users in LDAP server
|
91
93
|
* `ldap_domain` (string): Domain name that will be appended to LDAP usernames
|
92
94
|
* `enabled` (boolean): Is strategy enabled? This may become automatically set to `false` after a high number and duration of failures.
|
@@ -99,6 +99,15 @@ module Files
|
|
99
99
|
@attributes[:group_ids] = value
|
100
100
|
end
|
101
101
|
|
102
|
+
# boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
103
|
+
def ignore_locked_folders
|
104
|
+
@attributes[:ignore_locked_folders]
|
105
|
+
end
|
106
|
+
|
107
|
+
def ignore_locked_folders=(value)
|
108
|
+
@attributes[:ignore_locked_folders] = value
|
109
|
+
end
|
110
|
+
|
102
111
|
# string - If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
103
112
|
def interval
|
104
113
|
@attributes[:interval]
|
@@ -126,6 +135,15 @@ module Files
|
|
126
135
|
@attributes[:name] = value
|
127
136
|
end
|
128
137
|
|
138
|
+
# boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
139
|
+
def overwrite_files
|
140
|
+
@attributes[:overwrite_files]
|
141
|
+
end
|
142
|
+
|
143
|
+
def overwrite_files=(value)
|
144
|
+
@attributes[:overwrite_files] = value
|
145
|
+
end
|
146
|
+
|
129
147
|
# string - Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
130
148
|
def path
|
131
149
|
@attributes[:path]
|
@@ -298,7 +316,9 @@ module Files
|
|
298
316
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
299
317
|
# description - string - Description for the this Automation.
|
300
318
|
# disabled - boolean - If true, this automation will not run.
|
319
|
+
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
301
320
|
# name - string - Name for this automation.
|
321
|
+
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
302
322
|
# trigger - string - How this automation is triggered to run.
|
303
323
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
304
324
|
# value - object - A Hash of attributes specific to the automation type.
|
@@ -421,7 +441,9 @@ module Files
|
|
421
441
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
422
442
|
# description - string - Description for the this Automation.
|
423
443
|
# disabled - boolean - If true, this automation will not run.
|
444
|
+
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
424
445
|
# name - string - Name for this automation.
|
446
|
+
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
425
447
|
# trigger - string - How this automation is triggered to run.
|
426
448
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
427
449
|
# value - object - A Hash of attributes specific to the automation type.
|
@@ -482,7 +504,9 @@ module Files
|
|
482
504
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
483
505
|
# description - string - Description for the this Automation.
|
484
506
|
# disabled - boolean - If true, this automation will not run.
|
507
|
+
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
485
508
|
# name - string - Name for this automation.
|
509
|
+
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
486
510
|
# trigger - string - How this automation is triggered to run.
|
487
511
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
488
512
|
# value - object - A Hash of attributes specific to the automation type.
|
@@ -184,6 +184,11 @@ module Files
|
|
184
184
|
@attributes[:provision_company]
|
185
185
|
end
|
186
186
|
|
187
|
+
# string - 2FA required setting for auto provisioned users.
|
188
|
+
def provision_require_2fa
|
189
|
+
@attributes[:provision_require_2fa]
|
190
|
+
end
|
191
|
+
|
187
192
|
# string - Base DN for looking up users in LDAP server
|
188
193
|
def ldap_base_dn
|
189
194
|
@attributes[:ldap_base_dn]
|
data/lib/files.com/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|