files.com 1.1.514 → 1.1.516
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 +13 -13
- data/docs/automation_run.md +1 -1
- data/lib/files.com/models/automation.rb +13 -13
- data/lib/files.com/models/automation_run.rb +1 -1
- 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: b1dff2318d45d397a0e63be64509c26ce06cdb5509fa0f42124aa155d9ecbb95
|
|
4
|
+
data.tar.gz: 449248343a7585af2b5c9f9da37d3e7a7b904c216234d8cd25d03ec6744e76c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ddd2ae66c448edb0cd48322843f4ca2b36569bf54a6826806437998e08a8fa427a218b525e8b226dc401ed8ab602f60a205a88fb09c12f1019aa32569c0ddbca
|
|
7
|
+
data.tar.gz: 3c12c479bf0641d462d25fb0b1ee77f9c73c552928b1a8d4258ee3842c3d7f2eff5a080b0c1f0b635e62c1ae94bea071e1e4636c8b0a9ca7c368a65bc7a7f685
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.516
|
data/docs/automation.md
CHANGED
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
* `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
|
124
124
|
* `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
|
125
125
|
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
|
|
126
|
-
* `human_readable_schedule` (string): If trigger is `custom_schedule
|
|
126
|
+
* `human_readable_schedule` (string): If trigger is `custom_schedule` or `daily` with times, Human readable schedule description for when the automation should be run.
|
|
127
127
|
* `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.
|
|
128
|
-
* `schedule_times_of_day` (array(string)):
|
|
129
|
-
* `schedule_time_zone` (string):
|
|
128
|
+
* `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). For `custom_schedule`, run at these times on specified days of week. For `daily`, run at these times on the scheduled interval date.
|
|
129
|
+
* `schedule_time_zone` (string): Time zone for scheduled times. If not set, times are interpreted as UTC.
|
|
130
130
|
* `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.
|
|
131
131
|
* `legacy_sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
|
|
132
132
|
* `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`.
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
* `user_ids` (array(int64)): IDs of Users for the Automation (i.e. who to Request File from)
|
|
137
137
|
* `value` (object): A Hash of attributes specific to the automation type.
|
|
138
138
|
* `webhook_url` (string): If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
|
|
139
|
-
* `holiday_region` (string):
|
|
139
|
+
* `holiday_region` (string): Skip automation if there is a formal, observed holiday for this region.
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
---
|
|
@@ -228,9 +228,9 @@ Files::Automation.create(
|
|
|
228
228
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
229
229
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
230
230
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
|
231
|
-
* `schedule_times_of_day` (array(string)):
|
|
232
|
-
* `schedule_time_zone` (string):
|
|
233
|
-
* `holiday_region` (string):
|
|
231
|
+
* `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` triggers. Optional for `daily` triggers - if not set, runs at midnight UTC.
|
|
232
|
+
* `schedule_time_zone` (string): Time zone for scheduled times. Optional for both `custom_schedule` and `daily` triggers. If not set, times are interpreted as UTC.
|
|
233
|
+
* `holiday_region` (string): Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
|
|
234
234
|
* `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. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
235
235
|
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
236
236
|
* `description` (string): Description for the this Automation.
|
|
@@ -322,9 +322,9 @@ Files::Automation.update(id,
|
|
|
322
322
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
323
323
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
324
324
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
|
325
|
-
* `schedule_times_of_day` (array(string)):
|
|
326
|
-
* `schedule_time_zone` (string):
|
|
327
|
-
* `holiday_region` (string):
|
|
325
|
+
* `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` triggers. Optional for `daily` triggers - if not set, runs at midnight UTC.
|
|
326
|
+
* `schedule_time_zone` (string): Time zone for scheduled times. Optional for both `custom_schedule` and `daily` triggers. If not set, times are interpreted as UTC.
|
|
327
|
+
* `holiday_region` (string): Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
|
|
328
328
|
* `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. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
329
329
|
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
330
330
|
* `description` (string): Description for the this Automation.
|
|
@@ -432,9 +432,9 @@ automation.update(
|
|
|
432
432
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
433
433
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
434
434
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
|
435
|
-
* `schedule_times_of_day` (array(string)):
|
|
436
|
-
* `schedule_time_zone` (string):
|
|
437
|
-
* `holiday_region` (string):
|
|
435
|
+
* `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` triggers. Optional for `daily` triggers - if not set, runs at midnight UTC.
|
|
436
|
+
* `schedule_time_zone` (string): Time zone for scheduled times. Optional for both `custom_schedule` and `daily` triggers. If not set, times are interpreted as UTC.
|
|
437
|
+
* `holiday_region` (string): Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
|
|
438
438
|
* `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. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
439
439
|
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
440
440
|
* `description` (string): Description for the this Automation.
|
data/docs/automation_run.md
CHANGED
|
@@ -54,7 +54,7 @@ Files::AutomationRun.list(
|
|
|
54
54
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
55
55
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
56
56
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
|
|
57
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
57
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
58
58
|
* `automation_id` (int64): Required - ID of the associated Automation.
|
|
59
59
|
|
|
60
60
|
|
|
@@ -252,7 +252,7 @@ module Files
|
|
|
252
252
|
@attributes[:schedule] = value
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
-
# string - If trigger is `custom_schedule
|
|
255
|
+
# string - If trigger is `custom_schedule` or `daily` with times, Human readable schedule description for when the automation should be run.
|
|
256
256
|
def human_readable_schedule
|
|
257
257
|
@attributes[:human_readable_schedule]
|
|
258
258
|
end
|
|
@@ -270,7 +270,7 @@ module Files
|
|
|
270
270
|
@attributes[:schedule_days_of_week] = value
|
|
271
271
|
end
|
|
272
272
|
|
|
273
|
-
# array(string) -
|
|
273
|
+
# array(string) - Times of day to run in HH:MM format (24-hour). For `custom_schedule`, run at these times on specified days of week. For `daily`, run at these times on the scheduled interval date.
|
|
274
274
|
def schedule_times_of_day
|
|
275
275
|
@attributes[:schedule_times_of_day]
|
|
276
276
|
end
|
|
@@ -279,7 +279,7 @@ module Files
|
|
|
279
279
|
@attributes[:schedule_times_of_day] = value
|
|
280
280
|
end
|
|
281
281
|
|
|
282
|
-
# string -
|
|
282
|
+
# string - Time zone for scheduled times. If not set, times are interpreted as UTC.
|
|
283
283
|
def schedule_time_zone
|
|
284
284
|
@attributes[:schedule_time_zone]
|
|
285
285
|
end
|
|
@@ -369,7 +369,7 @@ module Files
|
|
|
369
369
|
@attributes[:webhook_url] = value
|
|
370
370
|
end
|
|
371
371
|
|
|
372
|
-
# string -
|
|
372
|
+
# string - Skip automation if there is a formal, observed holiday for this region.
|
|
373
373
|
def holiday_region
|
|
374
374
|
@attributes[:holiday_region]
|
|
375
375
|
end
|
|
@@ -401,9 +401,9 @@ module Files
|
|
|
401
401
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
402
402
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
403
403
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
|
404
|
-
# schedule_times_of_day - array(string) -
|
|
405
|
-
# schedule_time_zone - string -
|
|
406
|
-
# holiday_region - string -
|
|
404
|
+
# schedule_times_of_day - array(string) - Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` triggers. Optional for `daily` triggers - if not set, runs at midnight UTC.
|
|
405
|
+
# schedule_time_zone - string - Time zone for scheduled times. Optional for both `custom_schedule` and `daily` triggers. If not set, times are interpreted as UTC.
|
|
406
|
+
# holiday_region - string - Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
|
|
407
407
|
# 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. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
408
408
|
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
409
409
|
# description - string - Description for the this Automation.
|
|
@@ -540,9 +540,9 @@ module Files
|
|
|
540
540
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
541
541
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
542
542
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
|
543
|
-
# schedule_times_of_day - array(string) -
|
|
544
|
-
# schedule_time_zone - string -
|
|
545
|
-
# holiday_region - string -
|
|
543
|
+
# schedule_times_of_day - array(string) - Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` triggers. Optional for `daily` triggers - if not set, runs at midnight UTC.
|
|
544
|
+
# schedule_time_zone - string - Time zone for scheduled times. Optional for both `custom_schedule` and `daily` triggers. If not set, times are interpreted as UTC.
|
|
545
|
+
# holiday_region - string - Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
|
|
546
546
|
# 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. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
547
547
|
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
548
548
|
# description - string - Description for the this Automation.
|
|
@@ -620,9 +620,9 @@ module Files
|
|
|
620
620
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
621
621
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
622
622
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
|
623
|
-
# schedule_times_of_day - array(string) -
|
|
624
|
-
# schedule_time_zone - string -
|
|
625
|
-
# holiday_region - string -
|
|
623
|
+
# schedule_times_of_day - array(string) - Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` triggers. Optional for `daily` triggers - if not set, runs at midnight UTC.
|
|
624
|
+
# schedule_time_zone - string - Time zone for scheduled times. Optional for both `custom_schedule` and `daily` triggers. If not set, times are interpreted as UTC.
|
|
625
|
+
# holiday_region - string - Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
|
|
626
626
|
# 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. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
627
627
|
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
628
628
|
# description - string - Description for the this Automation.
|
|
@@ -84,7 +84,7 @@ module Files
|
|
|
84
84
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
85
85
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
86
86
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
|
|
87
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
87
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
88
88
|
# automation_id (required) - int64 - ID of the associated Automation.
|
|
89
89
|
def self.list(params = {}, options = {})
|
|
90
90
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
data/lib/files.com/version.rb
CHANGED