files.com 1.1.52 → 1.1.53
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 +8 -0
- data/lib/files.com/models/automation.rb +15 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce3c2338b3bf69ad2c101baf7ed2094c8ffe85d177b15c17ee8839c48a518268
|
|
4
|
+
data.tar.gz: a89bc6b82ed391dd248dab96ded86357aae5b5530f10d493e5544f3ae8b56c13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07d291a9da6db2f8176d21df6d5682022fea22f14973c66338e1b51aa7de4a7e820e026dcd5b5d51e563a9857992336fbc4cf66300f9aa4cb92d32d186433c04
|
|
7
|
+
data.tar.gz: a423e22b05341e5e347ebb8ae5af501827ec6d36c425625f684a4e83d2c3575f60a93a82aeec67e6d087686026ed73ee66b115fe69f6f55af34bd40d1678f732
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.53
|
data/docs/automation.md
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"name": "example",
|
|
26
26
|
"overwrite_files": true,
|
|
27
27
|
"path": "example",
|
|
28
|
+
"path_time_zone": "Eastern Time (US & Canada)",
|
|
28
29
|
"recurring_day": 25,
|
|
29
30
|
"schedule": "example",
|
|
30
31
|
"human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
|
|
@@ -75,6 +76,7 @@
|
|
|
75
76
|
* `name` (string): Name for this automation.
|
|
76
77
|
* `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.
|
|
77
78
|
* `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.
|
|
79
|
+
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
|
78
80
|
* `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`.
|
|
79
81
|
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
|
|
80
82
|
* `human_readable_schedule` (string): If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
|
|
@@ -153,6 +155,7 @@ Files::Automation.create(
|
|
|
153
155
|
ignore_locked_folders: true,
|
|
154
156
|
name: "example",
|
|
155
157
|
overwrite_files: true,
|
|
158
|
+
path_time_zone: "Eastern Time (US & Canada)",
|
|
156
159
|
trigger: "daily",
|
|
157
160
|
trigger_actions: ["create"],
|
|
158
161
|
value: {"limit":"1"},
|
|
@@ -182,6 +185,7 @@ Files::Automation.create(
|
|
|
182
185
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
183
186
|
* `name` (string): Name for this automation.
|
|
184
187
|
* `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.
|
|
188
|
+
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
|
185
189
|
* `trigger` (string): How this automation is triggered to run.
|
|
186
190
|
* `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
|
|
187
191
|
* `value` (object): A Hash of attributes specific to the automation type.
|
|
@@ -226,6 +230,7 @@ Files::Automation.update(id,
|
|
|
226
230
|
ignore_locked_folders: true,
|
|
227
231
|
name: "example",
|
|
228
232
|
overwrite_files: true,
|
|
233
|
+
path_time_zone: "Eastern Time (US & Canada)",
|
|
229
234
|
trigger: "daily",
|
|
230
235
|
trigger_actions: ["create"],
|
|
231
236
|
value: {"limit":"1"},
|
|
@@ -256,6 +261,7 @@ Files::Automation.update(id,
|
|
|
256
261
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
257
262
|
* `name` (string): Name for this automation.
|
|
258
263
|
* `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.
|
|
264
|
+
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
|
259
265
|
* `trigger` (string): How this automation is triggered to run.
|
|
260
266
|
* `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
|
|
261
267
|
* `value` (object): A Hash of attributes specific to the automation type.
|
|
@@ -317,6 +323,7 @@ automation.update(
|
|
|
317
323
|
ignore_locked_folders: true,
|
|
318
324
|
name: "example",
|
|
319
325
|
overwrite_files: true,
|
|
326
|
+
path_time_zone: "Eastern Time (US & Canada)",
|
|
320
327
|
trigger: "daily",
|
|
321
328
|
trigger_actions: ["create"],
|
|
322
329
|
value: {"limit":"1"},
|
|
@@ -347,6 +354,7 @@ automation.update(
|
|
|
347
354
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
348
355
|
* `name` (string): Name for this automation.
|
|
349
356
|
* `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.
|
|
357
|
+
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
|
350
358
|
* `trigger` (string): How this automation is triggered to run.
|
|
351
359
|
* `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
|
|
352
360
|
* `value` (object): A Hash of attributes specific to the automation type.
|
|
@@ -153,6 +153,15 @@ module Files
|
|
|
153
153
|
@attributes[:path] = value
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
+
# string - Timezone to use when rendering timestamps in paths.
|
|
157
|
+
def path_time_zone
|
|
158
|
+
@attributes[:path_time_zone]
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def path_time_zone=(value)
|
|
162
|
+
@attributes[:path_time_zone] = value
|
|
163
|
+
end
|
|
164
|
+
|
|
156
165
|
# int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
|
157
166
|
def recurring_day
|
|
158
167
|
@attributes[:recurring_day]
|
|
@@ -319,6 +328,7 @@ module Files
|
|
|
319
328
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
320
329
|
# name - string - Name for this automation.
|
|
321
330
|
# 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.
|
|
331
|
+
# path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
|
322
332
|
# trigger - string - How this automation is triggered to run.
|
|
323
333
|
# 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
|
|
324
334
|
# value - object - A Hash of attributes specific to the automation type.
|
|
@@ -344,6 +354,7 @@ module Files
|
|
|
344
354
|
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
|
345
355
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
346
356
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
357
|
+
raise InvalidParameterError.new("Bad parameter: path_time_zone must be an String") if params[:path_time_zone] and !params[:path_time_zone].is_a?(String)
|
|
347
358
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
|
348
359
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
|
|
349
360
|
raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
|
|
@@ -444,6 +455,7 @@ module Files
|
|
|
444
455
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
445
456
|
# name - string - Name for this automation.
|
|
446
457
|
# 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.
|
|
458
|
+
# path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
|
447
459
|
# trigger - string - How this automation is triggered to run.
|
|
448
460
|
# 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
|
|
449
461
|
# value - object - A Hash of attributes specific to the automation type.
|
|
@@ -465,6 +477,7 @@ module Files
|
|
|
465
477
|
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
|
466
478
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
467
479
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
480
|
+
raise InvalidParameterError.new("Bad parameter: path_time_zone must be an String") if params[:path_time_zone] and !params[:path_time_zone].is_a?(String)
|
|
468
481
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
|
469
482
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
|
|
470
483
|
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
|
|
@@ -507,6 +520,7 @@ module Files
|
|
|
507
520
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
508
521
|
# name - string - Name for this automation.
|
|
509
522
|
# 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.
|
|
523
|
+
# path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
|
510
524
|
# trigger - string - How this automation is triggered to run.
|
|
511
525
|
# 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
|
|
512
526
|
# value - object - A Hash of attributes specific to the automation type.
|
|
@@ -531,6 +545,7 @@ module Files
|
|
|
531
545
|
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
|
532
546
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
533
547
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
548
|
+
raise InvalidParameterError.new("Bad parameter: path_time_zone must be an String") if params[:path_time_zone] and !params[:path_time_zone].is_a?(String)
|
|
534
549
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
|
535
550
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
|
|
536
551
|
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
|
data/lib/files.com/version.rb
CHANGED