files.com 1.1.300 → 1.1.301
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 +12 -1
- 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: 7f09e35c99238752890a7990d2e5ebd3aa99fce63d2a495a6b8417d2d77e7f87
|
4
|
+
data.tar.gz: 65fe356fa0b06a05ec90e360c9f2547a1dbd6f37eb94d9b56ec5f3f98a27c341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f2b472b1cf8de5f1c0d9b83d77faa4ac14b8b16d05085b5596c56d5d309cee64ad5817aafe4c7ddfb2a4b1b6721fb171fdf07e13fb89fac18f790ded3ef4cef
|
7
|
+
data.tar.gz: f0f629cf685d73ca9b5cb5814474e5c9f654f1fbc4e6d5406b4a022a42aa15bdf6fae36aaba685402ac96fc3d48451288523f57fd6781297d02f892d9ebf59b8
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.301
|
data/docs/automation.md
CHANGED
@@ -70,6 +70,10 @@
|
|
70
70
|
],
|
71
71
|
"schedule_time_zone": "Eastern Time (US & Canada)",
|
72
72
|
"source": "example",
|
73
|
+
"legacy_sync_ids": [
|
74
|
+
1,
|
75
|
+
2
|
76
|
+
],
|
73
77
|
"sync_ids": [
|
74
78
|
1,
|
75
79
|
2
|
@@ -122,7 +126,8 @@
|
|
122
126
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
|
123
127
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
124
128
|
* `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
125
|
-
* `
|
129
|
+
* `legacy_sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
|
130
|
+
* `sync_ids` (array(int64)): IDs of syncs to run by this Automation. This is the new way to specify syncs, and it is recommended to use this instead of `legacy_sync_ids`.
|
126
131
|
* `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
|
127
132
|
* `trigger` (string): How this automation is triggered to run.
|
128
133
|
* `user_id` (int64): User ID of the Automation's creator.
|
@@ -177,6 +182,7 @@ Files::Automation.create(
|
|
177
182
|
destination_replace_to: "example",
|
178
183
|
interval: "year",
|
179
184
|
path: "example",
|
185
|
+
legacy_sync_ids: [1,2],
|
180
186
|
sync_ids: [1,2],
|
181
187
|
user_ids: [1,2],
|
182
188
|
group_ids: [1,2],
|
@@ -214,6 +220,7 @@ Files::Automation.create(
|
|
214
220
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
215
221
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
216
222
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
223
|
+
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
217
224
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
218
225
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
219
226
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
@@ -267,6 +274,7 @@ Files::Automation.update(id,
|
|
267
274
|
destination_replace_to: "example",
|
268
275
|
interval: "year",
|
269
276
|
path: "example",
|
277
|
+
legacy_sync_ids: [1,2],
|
270
278
|
sync_ids: [1,2],
|
271
279
|
user_ids: [1,2],
|
272
280
|
group_ids: [1,2],
|
@@ -305,6 +313,7 @@ Files::Automation.update(id,
|
|
305
313
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
306
314
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
307
315
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
316
|
+
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
308
317
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
309
318
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
310
319
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
@@ -375,6 +384,7 @@ automation.update(
|
|
375
384
|
destination_replace_to: "example",
|
376
385
|
interval: "year",
|
377
386
|
path: "example",
|
387
|
+
legacy_sync_ids: [1,2],
|
378
388
|
sync_ids: [1,2],
|
379
389
|
user_ids: [1,2],
|
380
390
|
group_ids: [1,2],
|
@@ -413,6 +423,7 @@ automation.update(
|
|
413
423
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
414
424
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
415
425
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
426
|
+
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
416
427
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
417
428
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
418
429
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
@@ -289,6 +289,15 @@ module Files
|
|
289
289
|
end
|
290
290
|
|
291
291
|
# array(int64) - IDs of remote sync folder behaviors to run by this Automation
|
292
|
+
def legacy_sync_ids
|
293
|
+
@attributes[:legacy_sync_ids]
|
294
|
+
end
|
295
|
+
|
296
|
+
def legacy_sync_ids=(value)
|
297
|
+
@attributes[:legacy_sync_ids] = value
|
298
|
+
end
|
299
|
+
|
300
|
+
# array(int64) - IDs of syncs to run by this Automation. This is the new way to specify syncs, and it is recommended to use this instead of `legacy_sync_ids`.
|
292
301
|
def sync_ids
|
293
302
|
@attributes[:sync_ids]
|
294
303
|
end
|
@@ -378,6 +387,7 @@ module Files
|
|
378
387
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
379
388
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
380
389
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
390
|
+
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
381
391
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
382
392
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
383
393
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
@@ -415,6 +425,7 @@ module Files
|
|
415
425
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params[:destination_replace_to] and !params[:destination_replace_to].is_a?(String)
|
416
426
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
417
427
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
428
|
+
raise InvalidParameterError.new("Bad parameter: legacy_sync_ids must be an String") if params[:legacy_sync_ids] and !params[:legacy_sync_ids].is_a?(String)
|
418
429
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
419
430
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
420
431
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
@@ -515,6 +526,7 @@ module Files
|
|
515
526
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
516
527
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
517
528
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
529
|
+
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
518
530
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
519
531
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
520
532
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
@@ -548,6 +560,7 @@ module Files
|
|
548
560
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params[:destination_replace_to] and !params[:destination_replace_to].is_a?(String)
|
549
561
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
550
562
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
563
|
+
raise InvalidParameterError.new("Bad parameter: legacy_sync_ids must be an String") if params[:legacy_sync_ids] and !params[:legacy_sync_ids].is_a?(String)
|
551
564
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
552
565
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
553
566
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
@@ -591,6 +604,7 @@ module Files
|
|
591
604
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
592
605
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
593
606
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
607
|
+
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
594
608
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
595
609
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
596
610
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
@@ -627,6 +641,7 @@ module Files
|
|
627
641
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params[:destination_replace_to] and !params[:destination_replace_to].is_a?(String)
|
628
642
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
629
643
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
644
|
+
raise InvalidParameterError.new("Bad parameter: legacy_sync_ids must be an String") if params[:legacy_sync_ids] and !params[:legacy_sync_ids].is_a?(String)
|
630
645
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
631
646
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
632
647
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED