files.com 1.1.299 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51224a994607bb43fa3d6a137cb30245cb6d3c87b15ec8593635f036416b3105
4
- data.tar.gz: 64d56d01d33a9b2d1030aeaeeccc17b5b4578eef7b8e2d9f20004c58fe5ee900
3
+ metadata.gz: 7f09e35c99238752890a7990d2e5ebd3aa99fce63d2a495a6b8417d2d77e7f87
4
+ data.tar.gz: 65fe356fa0b06a05ec90e360c9f2547a1dbd6f37eb94d9b56ec5f3f98a27c341
5
5
  SHA512:
6
- metadata.gz: 91a83d258eb6fd5ea5e2b3302be2b0e1da4ad0488587c243a5bc82574602385af6bc2f6750589d8632e0935faccf6e7d11e069bb43021339725efcff32428251
7
- data.tar.gz: 142120c2463c906a94d6d3a79e4c068cecb35476edc5a88287306f9fcfd39933d25fc0e9a03cedc415717392d5f199c91e1bffa529aa3d25fa3cc949df5c79f2
6
+ metadata.gz: 2f2b472b1cf8de5f1c0d9b83d77faa4ac14b8b16d05085b5596c56d5d309cee64ad5817aafe4c7ddfb2a4b1b6721fb171fdf07e13fb89fac18f790ded3ef4cef
7
+ data.tar.gz: f0f629cf685d73ca9b5cb5814474e5c9f654f1fbc4e6d5406b4a022a42aa15bdf6fae36aaba685402ac96fc3d48451288523f57fd6781297d02f892d9ebf59b8
data/Gemfile.lock CHANGED
@@ -20,7 +20,7 @@ GEM
20
20
  concurrent-ruby (1.3.5)
21
21
  connection_pool (2.5.3)
22
22
  diff-lcs (1.5.0)
23
- faraday (2.13.2)
23
+ faraday (2.13.3)
24
24
  faraday-net_http (>= 2.0, < 3.5)
25
25
  json
26
26
  logger
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.299
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
- * `sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.299"
4
+ VERSION = "1.1.301"
5
5
  end
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.299
4
+ version: 1.1.301
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-18 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable