files.com 1.1.210 → 1.1.212

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: b29873fd496847868103feea857a3d1ed71d2b13d940b0d4d5e3218f295043b7
4
- data.tar.gz: 956ded49e04ea3173a4022a0caa952145a7378894eb2b8eec21c0fb79b90e674
3
+ metadata.gz: f298bcfed091f21eb8876b3fec2b4bf799dc9558a517475e91bf84ebda754079
4
+ data.tar.gz: 73edc75fcdc3f00368c7e588fadcf079dbc0bfd3b2f20c7d59af09d3954082b7
5
5
  SHA512:
6
- metadata.gz: c3719eaedb630d31bc4b366c132cb9e30b67dfd2deb1dc769f42bb4daa7bcf99fe05ec71768294e5cb2f83dc6fe45db3a3768f18a5fdc886b80d4297cf05c724
7
- data.tar.gz: 72214644683fb41b9efb6728cba63f3d4f45319a4c1da43210b30de2cafaf9ef7865b7fe92c46e66d4847c6c98c94e2bcddfd5cc418d7986f0dddaefd01f42fa
6
+ metadata.gz: 8821417b213ed08d666ca7e426b7ffc9b2d9e0b47d181e2862eae7324c88b87500b9aa3a5ebc6d3114c034b0104467495530bdcefdcddf2070ea275147104a6f
7
+ data.tar.gz: 02b15cb5768938d36eb2661a550906a22ed0bd93a99ab1df571c8788904e5b09e31c11ce16b300c8e76306a2f9685c2668070efffa711c38c9031465962f7558
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.210
1
+ 1.1.212
data/docs/automation.md CHANGED
@@ -43,6 +43,8 @@
43
43
  "path": "example",
44
44
  "path_time_zone": "Eastern Time (US & Canada)",
45
45
  "recurring_day": 25,
46
+ "retry_on_failure_interval_in_minutes": 60,
47
+ "retry_on_failure_number_of_attempts": 10,
46
48
  "schedule": "example",
47
49
  "human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
48
50
  "schedule_days_of_week": [
@@ -98,6 +100,8 @@
98
100
  * `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.
99
101
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
100
102
  * `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`.
103
+ * `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes).
104
+ * `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times.
101
105
  * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
102
106
  * `human_readable_schedule` (string): If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
103
107
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -175,6 +179,8 @@ Files::Automation.create(
175
179
  name: "example",
176
180
  overwrite_files: true,
177
181
  path_time_zone: "Eastern Time (US & Canada)",
182
+ retry_on_failure_interval_in_minutes: 60,
183
+ retry_on_failure_number_of_attempts: 10,
178
184
  trigger: "daily",
179
185
  trigger_actions: ["create"],
180
186
  value: {"limit":"1"},
@@ -208,6 +214,8 @@ Files::Automation.create(
208
214
  * `name` (string): Name for this automation.
209
215
  * `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.
210
216
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
217
+ * `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes).
218
+ * `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times.
211
219
  * `trigger` (string): How this automation is triggered to run.
212
220
  * `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
213
221
  * `value` (object): A Hash of attributes specific to the automation type.
@@ -257,6 +265,8 @@ Files::Automation.update(id,
257
265
  name: "example",
258
266
  overwrite_files: true,
259
267
  path_time_zone: "Eastern Time (US & Canada)",
268
+ retry_on_failure_interval_in_minutes: 60,
269
+ retry_on_failure_number_of_attempts: 10,
260
270
  trigger: "daily",
261
271
  trigger_actions: ["create"],
262
272
  value: {"limit":"1"},
@@ -291,6 +301,8 @@ Files::Automation.update(id,
291
301
  * `name` (string): Name for this automation.
292
302
  * `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.
293
303
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
304
+ * `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes).
305
+ * `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times.
294
306
  * `trigger` (string): How this automation is triggered to run.
295
307
  * `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
296
308
  * `value` (object): A Hash of attributes specific to the automation type.
@@ -357,6 +369,8 @@ automation.update(
357
369
  name: "example",
358
370
  overwrite_files: true,
359
371
  path_time_zone: "Eastern Time (US & Canada)",
372
+ retry_on_failure_interval_in_minutes: 60,
373
+ retry_on_failure_number_of_attempts: 10,
360
374
  trigger: "daily",
361
375
  trigger_actions: ["create"],
362
376
  value: {"limit":"1"},
@@ -391,6 +405,8 @@ automation.update(
391
405
  * `name` (string): Name for this automation.
392
406
  * `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.
393
407
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
408
+ * `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes).
409
+ * `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times.
394
410
  * `trigger` (string): How this automation is triggered to run.
395
411
  * `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
396
412
  * `value` (object): A Hash of attributes specific to the automation type.
@@ -8,6 +8,10 @@
8
8
  "automation_id": 1,
9
9
  "completed_at": "2000-01-01T01:00:00Z",
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
+ "retry_at": "example",
12
+ "retried_at": "2000-01-01T01:00:00Z",
13
+ "retried_in_run_id": 1,
14
+ "retry_of_run_id": 1,
11
15
  "runtime": 1.0,
12
16
  "status": "success",
13
17
  "successful_operations": 1,
@@ -20,6 +24,10 @@
20
24
  * `automation_id` (int64): ID of the associated Automation.
21
25
  * `completed_at` (date-time): Automation run completion/failure date/time.
22
26
  * `created_at` (date-time): Automation run start date/time.
27
+ * `retry_at` (string): If set, this automation will be retried at this date/time due to `failure` or `partial_failure`.
28
+ * `retried_at` (date-time): If set, this Automation run was retried due to `failure` or `partial_failure`.
29
+ * `retried_in_run_id` (int64): ID of the run that is or will be retrying this run.
30
+ * `retry_of_run_id` (int64): ID of the original run that this run is retrying.
23
31
  * `runtime` (double): Automation run runtime.
24
32
  * `status` (string): The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
25
33
  * `successful_operations` (int64): Count of successful operations.
@@ -207,6 +207,24 @@ module Files
207
207
  @attributes[:recurring_day] = value
208
208
  end
209
209
 
210
+ # int64 - If the Automation fails, retry at this interval (in minutes).
211
+ def retry_on_failure_interval_in_minutes
212
+ @attributes[:retry_on_failure_interval_in_minutes]
213
+ end
214
+
215
+ def retry_on_failure_interval_in_minutes=(value)
216
+ @attributes[:retry_on_failure_interval_in_minutes] = value
217
+ end
218
+
219
+ # int64 - If the Automation fails, retry at most this many times.
220
+ def retry_on_failure_number_of_attempts
221
+ @attributes[:retry_on_failure_number_of_attempts]
222
+ end
223
+
224
+ def retry_on_failure_number_of_attempts=(value)
225
+ @attributes[:retry_on_failure_number_of_attempts] = value
226
+ end
227
+
210
228
  # object - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
211
229
  def schedule
212
230
  @attributes[:schedule]
@@ -359,6 +377,8 @@ module Files
359
377
  # name - string - Name for this automation.
360
378
  # 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.
361
379
  # path_time_zone - string - Timezone to use when rendering timestamps in paths.
380
+ # retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes).
381
+ # retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times.
362
382
  # trigger - string - How this automation is triggered to run.
363
383
  # 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
364
384
  # value - object - A Hash of attributes specific to the automation type.
@@ -386,6 +406,8 @@ module Files
386
406
  raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
387
407
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
388
408
  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)
409
+ raise InvalidParameterError.new("Bad parameter: retry_on_failure_interval_in_minutes must be an Integer") if params[:retry_on_failure_interval_in_minutes] and !params[:retry_on_failure_interval_in_minutes].is_a?(Integer)
410
+ raise InvalidParameterError.new("Bad parameter: retry_on_failure_number_of_attempts must be an Integer") if params[:retry_on_failure_number_of_attempts] and !params[:retry_on_failure_number_of_attempts].is_a?(Integer)
389
411
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
390
412
  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
391
413
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
@@ -489,6 +511,8 @@ module Files
489
511
  # name - string - Name for this automation.
490
512
  # 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.
491
513
  # path_time_zone - string - Timezone to use when rendering timestamps in paths.
514
+ # retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes).
515
+ # retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times.
492
516
  # trigger - string - How this automation is triggered to run.
493
517
  # 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
494
518
  # value - object - A Hash of attributes specific to the automation type.
@@ -512,6 +536,8 @@ module Files
512
536
  raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
513
537
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
514
538
  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)
539
+ raise InvalidParameterError.new("Bad parameter: retry_on_failure_interval_in_minutes must be an Integer") if params[:retry_on_failure_interval_in_minutes] and !params[:retry_on_failure_interval_in_minutes].is_a?(Integer)
540
+ raise InvalidParameterError.new("Bad parameter: retry_on_failure_number_of_attempts must be an Integer") if params[:retry_on_failure_number_of_attempts] and !params[:retry_on_failure_number_of_attempts].is_a?(Integer)
515
541
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
516
542
  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
517
543
  raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
@@ -558,6 +584,8 @@ module Files
558
584
  # name - string - Name for this automation.
559
585
  # 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.
560
586
  # path_time_zone - string - Timezone to use when rendering timestamps in paths.
587
+ # retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes).
588
+ # retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times.
561
589
  # trigger - string - How this automation is triggered to run.
562
590
  # 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
563
591
  # value - object - A Hash of attributes specific to the automation type.
@@ -584,6 +612,8 @@ module Files
584
612
  raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
585
613
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
586
614
  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)
615
+ raise InvalidParameterError.new("Bad parameter: retry_on_failure_interval_in_minutes must be an Integer") if params[:retry_on_failure_interval_in_minutes] and !params[:retry_on_failure_interval_in_minutes].is_a?(Integer)
616
+ raise InvalidParameterError.new("Bad parameter: retry_on_failure_number_of_attempts must be an Integer") if params[:retry_on_failure_number_of_attempts] and !params[:retry_on_failure_number_of_attempts].is_a?(Integer)
587
617
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
588
618
  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
589
619
  raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
@@ -29,6 +29,26 @@ module Files
29
29
  @attributes[:created_at]
30
30
  end
31
31
 
32
+ # string - If set, this automation will be retried at this date/time due to `failure` or `partial_failure`.
33
+ def retry_at
34
+ @attributes[:retry_at]
35
+ end
36
+
37
+ # date-time - If set, this Automation run was retried due to `failure` or `partial_failure`.
38
+ def retried_at
39
+ @attributes[:retried_at]
40
+ end
41
+
42
+ # int64 - ID of the run that is or will be retrying this run.
43
+ def retried_in_run_id
44
+ @attributes[:retried_in_run_id]
45
+ end
46
+
47
+ # int64 - ID of the original run that this run is retrying.
48
+ def retry_of_run_id
49
+ @attributes[:retry_of_run_id]
50
+ end
51
+
32
52
  # double - Automation run runtime.
33
53
  def runtime
34
54
  @attributes[:runtime]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.210"
4
+ VERSION = "1.1.212"
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.210
4
+ version: 1.1.212
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-01-13 00:00:00.000000000 Z
11
+ date: 2025-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable