files.com 1.1.704 → 1.1.705

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: 96d662ce2e9a678c8cdf460d004d04f7fc252533bc815064bcda9da4b449a666
4
- data.tar.gz: 51b66a5f5c5b1dd748a666b66b65b4fd43a46b1f926eb5ad5f65e8e5b1a2088d
3
+ metadata.gz: d8ca126a64fdb94a9719ce7e4f6aadc193ef25c896478f27bbbe65550a4fc55f
4
+ data.tar.gz: 2fa1cf2cbc7fa91d7710209d2a0311584e9bca2ff68047841d0a96da6b8fa918
5
5
  SHA512:
6
- metadata.gz: 83b915157bb622c3ae50b21d2f52299c998d441c5e661d42f381bda15947acf73feab29701d2d3889bb35885d94cdf52ab6d367e2c6e46b106de56e6ee9d29b8
7
- data.tar.gz: 50899c311cbdc45799e647a27d3de203960551a6b3c44da7b6c5b1d3f34e3d638ed54f2ec1ec4d59b374b58774a047132f273fc334ca2fc803df810d950802fe
6
+ metadata.gz: 938b9fe2aa351a7e978f851e52eabf7092dce64fac950ecd6c6330e46a8e2efa4f82722746fda43b1277eeb81e29b5e6fda612a1d2b4e17a9ef29140517093bb
7
+ data.tar.gz: c82855ff3a13b41459d754749e68f22fed27b8dde7b9c61f6aa47c22d5b75fdcf87366d44aa58493108d49fe86563370d9bc4f45af1e1e78217aa2dab4e3ce53
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.704
1
+ 1.1.705
data/docs/ai_task.md CHANGED
@@ -19,6 +19,7 @@
19
19
  ],
20
20
  "interval": "day",
21
21
  "recurring_day": 1,
22
+ "schedule_id": 1,
22
23
  "schedule_days_of_week": [
23
24
  1,
24
25
  3,
@@ -50,10 +51,11 @@
50
51
  * `trigger_actions` (array(string)): If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
51
52
  * `interval` (string): If trigger is `daily`, this specifies how often to run the AI Task.
52
53
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
54
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the AI Task's schedule fields.
53
55
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
54
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for scheduled AI Tasks.
56
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the AI Task schedule.
55
57
  * `schedule_time_zone` (string): Time zone used by the AI Task schedule.
56
- * `holiday_region` (string): Optional holiday region used by scheduled AI Tasks.
58
+ * `holiday_region` (string): Optional holiday region used by the AI Task schedule.
57
59
  * `human_readable_schedule` (string): Human-readable schedule description.
58
60
  * `last_run_at` (date-time): Most recent successful invocation time.
59
61
  * `master_admin_user_id` (int64): Master User ID used for AI Task invocations.
@@ -105,6 +107,7 @@ Files::AiTask.create(
105
107
  permission_set: "files_only",
106
108
  prompt: "Summarize the uploaded file and identify follow-up actions.",
107
109
  recurring_day: 1,
110
+ schedule_id: 1,
108
111
  schedule_days_of_week: [1,3,5],
109
112
  schedule_time_zone: "Eastern Time (US & Canada)",
110
113
  schedule_times_of_day: ["06:30"],
@@ -119,16 +122,17 @@ Files::AiTask.create(
119
122
 
120
123
  * `description` (string): AI Task description.
121
124
  * `disabled` (boolean): If true, this AI Task will not run.
122
- * `holiday_region` (string): Optional holiday region used by scheduled AI Tasks.
125
+ * `holiday_region` (string): Optional holiday region used by the AI Task schedule.
123
126
  * `interval` (string): If trigger is `daily`, this specifies how often to run the AI Task.
124
127
  * `name` (string): Required - AI Task name.
125
128
  * `path` (string): Path scope used for action-triggered AI Tasks.
126
129
  * `permission_set` (string): Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
127
130
  * `prompt` (string): Required - Prompt sent when this AI Task is invoked.
128
131
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
132
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the AI Task's schedule fields.
129
133
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
130
134
  * `schedule_time_zone` (string): Time zone used by the AI Task schedule.
131
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for scheduled AI Tasks.
135
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the AI Task schedule.
132
136
  * `source` (string): Source glob used with `path` for action-triggered AI Tasks.
133
137
  * `trigger` (string): How this AI Task is triggered.
134
138
  * `trigger_actions` (array(string)): If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
@@ -163,6 +167,7 @@ Files::AiTask.update(id,
163
167
  permission_set: "files_only",
164
168
  prompt: "Summarize the uploaded file and identify follow-up actions.",
165
169
  recurring_day: 1,
170
+ schedule_id: 1,
166
171
  schedule_days_of_week: [1,3,5],
167
172
  schedule_time_zone: "Eastern Time (US & Canada)",
168
173
  schedule_times_of_day: ["06:30"],
@@ -178,16 +183,17 @@ Files::AiTask.update(id,
178
183
  * `id` (int64): Required - Ai Task ID.
179
184
  * `description` (string): AI Task description.
180
185
  * `disabled` (boolean): If true, this AI Task will not run.
181
- * `holiday_region` (string): Optional holiday region used by scheduled AI Tasks.
186
+ * `holiday_region` (string): Optional holiday region used by the AI Task schedule.
182
187
  * `interval` (string): If trigger is `daily`, this specifies how often to run the AI Task.
183
188
  * `name` (string): AI Task name.
184
189
  * `path` (string): Path scope used for action-triggered AI Tasks.
185
190
  * `permission_set` (string): Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
186
191
  * `prompt` (string): Prompt sent when this AI Task is invoked.
187
192
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
193
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the AI Task's schedule fields.
188
194
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
189
195
  * `schedule_time_zone` (string): Time zone used by the AI Task schedule.
190
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for scheduled AI Tasks.
196
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the AI Task schedule.
191
197
  * `source` (string): Source glob used with `path` for action-triggered AI Tasks.
192
198
  * `trigger` (string): How this AI Task is triggered.
193
199
  * `trigger_actions` (array(string)): If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
@@ -239,6 +245,7 @@ ai_task.update(
239
245
  permission_set: "files_only",
240
246
  prompt: "Summarize the uploaded file and identify follow-up actions.",
241
247
  recurring_day: 1,
248
+ schedule_id: 1,
242
249
  schedule_days_of_week: [1,3,5],
243
250
  schedule_time_zone: "Eastern Time (US & Canada)",
244
251
  schedule_times_of_day: ["06:30"],
@@ -254,16 +261,17 @@ ai_task.update(
254
261
  * `id` (int64): Required - Ai Task ID.
255
262
  * `description` (string): AI Task description.
256
263
  * `disabled` (boolean): If true, this AI Task will not run.
257
- * `holiday_region` (string): Optional holiday region used by scheduled AI Tasks.
264
+ * `holiday_region` (string): Optional holiday region used by the AI Task schedule.
258
265
  * `interval` (string): If trigger is `daily`, this specifies how often to run the AI Task.
259
266
  * `name` (string): AI Task name.
260
267
  * `path` (string): Path scope used for action-triggered AI Tasks.
261
268
  * `permission_set` (string): Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
262
269
  * `prompt` (string): Prompt sent when this AI Task is invoked.
263
270
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
271
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the AI Task's schedule fields.
264
272
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
265
273
  * `schedule_time_zone` (string): Time zone used by the AI Task schedule.
266
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for scheduled AI Tasks.
274
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the AI Task schedule.
267
275
  * `source` (string): Source glob used with `path` for action-triggered AI Tasks.
268
276
  * `trigger` (string): How this AI Task is triggered.
269
277
  * `trigger_actions` (array(string)): If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
data/docs/automation.md CHANGED
@@ -48,6 +48,7 @@
48
48
  "path_time_zone": "Eastern Time (US & Canada)",
49
49
  "version": 1,
50
50
  "recurring_day": 25,
51
+ "schedule_id": 1,
51
52
  "retry_on_failure_interval_in_minutes": 60,
52
53
  "retry_on_failure_number_of_attempts": 10,
53
54
  "schedule": {
@@ -126,13 +127,14 @@
126
127
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
127
128
  * `version` (int64): Current Automation v2 definition version.
128
129
  * `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`.
130
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the automation's schedule fields.
129
131
  * `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.
130
132
  * `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.
131
133
  * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
132
134
  * `human_readable_schedule` (string): If trigger is `custom_schedule` or `daily` with times, Human readable schedule description for when the automation should be run.
133
- * `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.
135
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0 is Sunday, 1 is Monday, etc.
134
136
  * `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.
135
- * `schedule_time_zone` (string): Time zone for scheduled times. If not set, times are interpreted as UTC.
137
+ * `schedule_time_zone` (string): Time zone for the schedule. If not set, times are interpreted as UTC.
136
138
  * `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.
137
139
  * `legacy_sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
138
140
  * `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`.
@@ -142,7 +144,7 @@
142
144
  * `user_ids` (array(int64)): IDs of Users for the Automation (i.e. who to Request File from)
143
145
  * `value` (object): A Hash of attributes specific to the automation type.
144
146
  * `webhook_url` (string): If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
145
- * `holiday_region` (string): Skip automation if there is a formal, observed holiday for this region.
147
+ * `holiday_region` (string): Skip the automation if there is a formal, observed holiday for this region.
146
148
 
147
149
 
148
150
  ---
@@ -203,6 +205,7 @@ Files::Automation.create(
203
205
  sync_ids: [1,2],
204
206
  user_ids: [1,2],
205
207
  group_ids: [1,2],
208
+ schedule_id: 1,
206
209
  schedule_days_of_week: [0,1,3],
207
210
  schedule_times_of_day: ["7:30","11:30"],
208
211
  schedule_time_zone: "Eastern Time (US & Canada)",
@@ -242,10 +245,11 @@ Files::Automation.create(
242
245
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
243
246
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
244
247
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
245
- * `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.
246
- * `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.
247
- * `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.
248
- * `holiday_region` (string): Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
248
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the automation's schedule fields.
249
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule` without `schedule_id`, a list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
250
+ * `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` without `schedule_id`. Optional for `daily` triggers; if not set, runs at midnight UTC.
251
+ * `schedule_time_zone` (string): Time zone for schedule fields. Optional for `custom_schedule` without `schedule_id` and for `daily`. If not set, times are interpreted as UTC.
252
+ * `holiday_region` (string): Skip automation on holidays in this region. Optional for `custom_schedule` without `schedule_id` and for `daily`.
249
253
  * `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`.
250
254
  * `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.
251
255
  * `description` (string): Description for the this Automation.
@@ -313,6 +317,7 @@ Files::Automation.update(id,
313
317
  sync_ids: [1,2],
314
318
  user_ids: [1,2],
315
319
  group_ids: [1,2],
320
+ schedule_id: 1,
316
321
  schedule_days_of_week: [0,1,3],
317
322
  schedule_times_of_day: ["7:30","11:30"],
318
323
  schedule_time_zone: "Eastern Time (US & Canada)",
@@ -352,10 +357,11 @@ Files::Automation.update(id,
352
357
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
353
358
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
354
359
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
355
- * `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.
356
- * `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.
357
- * `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.
358
- * `holiday_region` (string): Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
360
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the automation's schedule fields.
361
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule` without `schedule_id`, a list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
362
+ * `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` without `schedule_id`. Optional for `daily` triggers; if not set, runs at midnight UTC.
363
+ * `schedule_time_zone` (string): Time zone for schedule fields. Optional for `custom_schedule` without `schedule_id` and for `daily`. If not set, times are interpreted as UTC.
364
+ * `holiday_region` (string): Skip automation on holidays in this region. Optional for `custom_schedule` without `schedule_id` and for `daily`.
359
365
  * `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`.
360
366
  * `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.
361
367
  * `description` (string): Description for the this Automation.
@@ -441,6 +447,7 @@ automation.update(
441
447
  sync_ids: [1,2],
442
448
  user_ids: [1,2],
443
449
  group_ids: [1,2],
450
+ schedule_id: 1,
444
451
  schedule_days_of_week: [0,1,3],
445
452
  schedule_times_of_day: ["7:30","11:30"],
446
453
  schedule_time_zone: "Eastern Time (US & Canada)",
@@ -480,10 +487,11 @@ automation.update(
480
487
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
481
488
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
482
489
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
483
- * `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.
484
- * `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.
485
- * `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.
486
- * `holiday_region` (string): Skip automation on holidays in this region. Optional for both `custom_schedule` and `daily` triggers.
490
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the automation's schedule fields.
491
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule` without `schedule_id`, a list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
492
+ * `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). Required for `custom_schedule` without `schedule_id`. Optional for `daily` triggers; if not set, runs at midnight UTC.
493
+ * `schedule_time_zone` (string): Time zone for schedule fields. Optional for `custom_schedule` without `schedule_id` and for `daily`. If not set, times are interpreted as UTC.
494
+ * `holiday_region` (string): Skip automation on holidays in this region. Optional for `custom_schedule` without `schedule_id` and for `daily`.
487
495
  * `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`.
488
496
  * `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.
489
497
  * `description` (string): Description for the this Automation.
data/docs/expectation.md CHANGED
@@ -16,6 +16,7 @@
16
16
  "trigger": "manual",
17
17
  "interval": "day",
18
18
  "recurring_day": 3,
19
+ "schedule_id": 1,
19
20
  "schedule_days_of_week": [
20
21
  1,
21
22
  3,
@@ -59,10 +60,11 @@
59
60
  * `trigger` (string): How this expectation opens windows.
60
61
  * `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
61
62
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
63
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the Expectation's schedule fields.
62
64
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
63
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
64
- * `schedule_time_zone` (string): Time zone used by the expectation schedule.
65
- * `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
65
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the Expectation schedule.
66
+ * `schedule_time_zone` (string): Time zone used by the Expectation schedule.
67
+ * `holiday_region` (string): Optional holiday region used by the Expectation schedule.
66
68
  * `lookback_interval` (int64): How many seconds before the due boundary the window starts.
67
69
  * `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
68
70
  * `inactivity_interval` (int64): How many quiet seconds are required before final closure.
@@ -120,6 +122,7 @@ Files::Expectation.create(
120
122
  trigger: "manual",
121
123
  interval: "day",
122
124
  recurring_day: 3,
125
+ schedule_id: 1,
123
126
  schedule_days_of_week: [1,3,5],
124
127
  schedule_times_of_day: ["06:00"],
125
128
  schedule_time_zone: "UTC",
@@ -144,10 +147,11 @@ Files::Expectation.create(
144
147
  * `trigger` (string): How this expectation opens windows.
145
148
  * `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
146
149
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
150
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the Expectation's schedule fields.
147
151
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
148
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
149
- * `schedule_time_zone` (string): Time zone used by the expectation schedule.
150
- * `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
152
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the Expectation schedule.
153
+ * `schedule_time_zone` (string): Time zone used by the Expectation schedule.
154
+ * `holiday_region` (string): Optional holiday region used by the Expectation schedule.
151
155
  * `lookback_interval` (int64): How many seconds before the due boundary the window starts.
152
156
  * `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
153
157
  * `inactivity_interval` (int64): How many quiet seconds are required before final closure.
@@ -184,6 +188,7 @@ Files::Expectation.update(id,
184
188
  trigger: "manual",
185
189
  interval: "day",
186
190
  recurring_day: 3,
191
+ schedule_id: 1,
187
192
  schedule_days_of_week: [1,3,5],
188
193
  schedule_times_of_day: ["06:00"],
189
194
  schedule_time_zone: "UTC",
@@ -209,10 +214,11 @@ Files::Expectation.update(id,
209
214
  * `trigger` (string): How this expectation opens windows.
210
215
  * `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
211
216
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
217
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the Expectation's schedule fields.
212
218
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
213
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
214
- * `schedule_time_zone` (string): Time zone used by the expectation schedule.
215
- * `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
219
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the Expectation schedule.
220
+ * `schedule_time_zone` (string): Time zone used by the Expectation schedule.
221
+ * `holiday_region` (string): Optional holiday region used by the Expectation schedule.
216
222
  * `lookback_interval` (int64): How many seconds before the due boundary the window starts.
217
223
  * `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
218
224
  * `inactivity_interval` (int64): How many quiet seconds are required before final closure.
@@ -266,6 +272,7 @@ expectation.update(
266
272
  trigger: "manual",
267
273
  interval: "day",
268
274
  recurring_day: 3,
275
+ schedule_id: 1,
269
276
  schedule_days_of_week: [1,3,5],
270
277
  schedule_times_of_day: ["06:00"],
271
278
  schedule_time_zone: "UTC",
@@ -291,10 +298,11 @@ expectation.update(
291
298
  * `trigger` (string): How this expectation opens windows.
292
299
  * `interval` (string): If trigger is `daily`, this specifies how often to run the expectation.
293
300
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
301
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the Expectation's schedule fields.
294
302
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
295
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven expectations.
296
- * `schedule_time_zone` (string): Time zone used by the expectation schedule.
297
- * `holiday_region` (string): Optional holiday region used by schedule-driven expectations.
303
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the Expectation schedule.
304
+ * `schedule_time_zone` (string): Time zone used by the Expectation schedule.
305
+ * `holiday_region` (string): Optional holiday region used by the Expectation schedule.
298
306
  * `lookback_interval` (int64): How many seconds before the due boundary the window starts.
299
307
  * `late_acceptance_interval` (int64): How many seconds a schedule-driven window may remain eligible to close as late.
300
308
  * `inactivity_interval` (int64): How many quiet seconds are required before final closure.
data/docs/schedule.md ADDED
@@ -0,0 +1,164 @@
1
+ # Schedule
2
+
3
+ ## Example Schedule Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "name": "Weekday overnight",
9
+ "schedule_days_of_week": [
10
+ 1,
11
+ 2,
12
+ 3,
13
+ 4,
14
+ 5
15
+ ],
16
+ "schedule_times_of_day": [
17
+ "01:00"
18
+ ],
19
+ "schedule_time_zone": "Eastern Time (US & Canada)",
20
+ "holiday_region": "us",
21
+ "human_readable_schedule": "Triggered every Monday, Tuesday, Wednesday, Thursday, Friday at 01:00 AM UTC TZ.",
22
+ "created_at": "2000-01-01T01:00:00Z",
23
+ "updated_at": "2000-01-01T01:00:00Z"
24
+ }
25
+ ```
26
+
27
+ * `id` (int64): Schedule ID.
28
+ * `name` (string): Schedule name.
29
+ * `schedule_days_of_week` (array(int64)): 0-based weekdays used by the Schedule. 0 is Sunday.
30
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format (24-hour).
31
+ * `schedule_time_zone` (string): Time zone for scheduled times. If not set, times are interpreted as UTC.
32
+ * `holiday_region` (string): Optional holiday region on which linked resources do not run.
33
+ * `human_readable_schedule` (string): Human-readable Schedule description.
34
+ * `created_at` (date-time): Creation time.
35
+ * `updated_at` (date-time): Last update time.
36
+
37
+
38
+ ---
39
+
40
+ ## List Schedules
41
+
42
+ ```
43
+ Files::Schedule.list
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ * `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.
49
+ * `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
50
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`.
51
+
52
+
53
+ ---
54
+
55
+ ## Show Schedule
56
+
57
+ ```
58
+ Files::Schedule.find(id)
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+ * `id` (int64): Required - Schedule ID.
64
+
65
+
66
+ ---
67
+
68
+ ## Create Schedule
69
+
70
+ ```
71
+ Files::Schedule.create(
72
+ name: "Weekday overnight",
73
+ schedule_days_of_week: [1,2,3,4,5],
74
+ schedule_times_of_day: ["01:00"],
75
+ schedule_time_zone: "Eastern Time (US & Canada)",
76
+ holiday_region: "us"
77
+ )
78
+ ```
79
+
80
+ ### Parameters
81
+
82
+ * `name` (string): Required - Schedule name.
83
+ * `schedule_days_of_week` (array(int64)): Required - 0-based weekdays used by the Schedule. 0 is Sunday.
84
+ * `schedule_times_of_day` (array(string)): Required - Times of day in HH:MM format (24-hour).
85
+ * `schedule_time_zone` (string): Time zone for scheduled times. If not set, times are interpreted as UTC.
86
+ * `holiday_region` (string): Optional holiday region on which linked resources do not run.
87
+
88
+
89
+ ---
90
+
91
+ ## Update Schedule
92
+
93
+ ```
94
+ Files::Schedule.update(id,
95
+ name: "Weekday overnight",
96
+ schedule_days_of_week: [1,2,3,4,5],
97
+ schedule_times_of_day: ["01:00"],
98
+ schedule_time_zone: "Eastern Time (US & Canada)",
99
+ holiday_region: "us"
100
+ )
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ * `id` (int64): Required - Schedule ID.
106
+ * `name` (string): Schedule name.
107
+ * `schedule_days_of_week` (array(int64)): 0-based weekdays used by the Schedule. 0 is Sunday.
108
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format (24-hour).
109
+ * `schedule_time_zone` (string): Time zone for scheduled times. If not set, times are interpreted as UTC.
110
+ * `holiday_region` (string): Optional holiday region on which linked resources do not run.
111
+
112
+
113
+ ---
114
+
115
+ ## Delete Schedule
116
+
117
+ ```
118
+ Files::Schedule.delete(id)
119
+ ```
120
+
121
+ ### Parameters
122
+
123
+ * `id` (int64): Required - Schedule ID.
124
+
125
+
126
+ ---
127
+
128
+ ## Update Schedule
129
+
130
+ ```
131
+ schedule = Files::Schedule.find(id)
132
+
133
+ schedule.update(
134
+ name: "Weekday overnight",
135
+ schedule_days_of_week: [1,2,3,4,5],
136
+ schedule_times_of_day: ["01:00"],
137
+ schedule_time_zone: "Eastern Time (US & Canada)",
138
+ holiday_region: "us"
139
+ )
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ * `id` (int64): Required - Schedule ID.
145
+ * `name` (string): Schedule name.
146
+ * `schedule_days_of_week` (array(int64)): 0-based weekdays used by the Schedule. 0 is Sunday.
147
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format (24-hour).
148
+ * `schedule_time_zone` (string): Time zone for scheduled times. If not set, times are interpreted as UTC.
149
+ * `holiday_region` (string): Optional holiday region on which linked resources do not run.
150
+
151
+
152
+ ---
153
+
154
+ ## Delete Schedule
155
+
156
+ ```
157
+ schedule = Files::Schedule.find(id)
158
+
159
+ schedule.delete
160
+ ```
161
+
162
+ ### Parameters
163
+
164
+ * `id` (int64): Required - Schedule ID.
@@ -16,6 +16,7 @@
16
16
  "trigger": "daily",
17
17
  "interval": "month",
18
18
  "recurring_day": 1,
19
+ "schedule_id": 1,
19
20
  "schedule_days_of_week": [
20
21
  1,
21
22
  3,
@@ -44,10 +45,11 @@
44
45
  * `trigger` (string): Schedule trigger type: `daily` or `custom_schedule`.
45
46
  * `interval` (string): If trigger is `daily`, this specifies how often to run the scheduled export.
46
47
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
48
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the scheduled export's schedule fields.
47
49
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
48
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven exports.
49
- * `schedule_time_zone` (string): Time zone used by the scheduled export.
50
- * `holiday_region` (string): Optional holiday region used by schedule-driven exports.
50
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the scheduled export schedule.
51
+ * `schedule_time_zone` (string): Time zone used by the scheduled export schedule.
52
+ * `holiday_region` (string): Optional holiday region used by the scheduled export schedule.
51
53
  * `human_readable_schedule` (string): Human-readable schedule description.
52
54
  * `last_run_at` (date-time): Most recent scheduled run time.
53
55
  * `last_export_id` (int64): Most recent Export ID created by this schedule.
@@ -99,6 +101,7 @@ Files::ScheduledExport.create(
99
101
  trigger: "daily",
100
102
  interval: "month",
101
103
  recurring_day: 1,
104
+ schedule_id: 1,
102
105
  schedule_days_of_week: [1,3,5],
103
106
  schedule_times_of_day: ["06:30"],
104
107
  schedule_time_zone: "Eastern Time (US & Canada)",
@@ -116,10 +119,11 @@ Files::ScheduledExport.create(
116
119
  * `trigger` (string): Schedule trigger type: `daily` or `custom_schedule`.
117
120
  * `interval` (string): If trigger is `daily`, this specifies how often to run the scheduled export.
118
121
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
122
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the scheduled export's schedule fields.
119
123
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
120
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven exports.
121
- * `schedule_time_zone` (string): Time zone used by the scheduled export.
122
- * `holiday_region` (string): Optional holiday region used by schedule-driven exports.
124
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the scheduled export schedule.
125
+ * `schedule_time_zone` (string): Time zone used by the scheduled export schedule.
126
+ * `holiday_region` (string): Optional holiday region used by the scheduled export schedule.
123
127
 
124
128
 
125
129
  ---
@@ -136,6 +140,7 @@ Files::ScheduledExport.update(id,
136
140
  trigger: "daily",
137
141
  interval: "month",
138
142
  recurring_day: 1,
143
+ schedule_id: 1,
139
144
  schedule_days_of_week: [1,3,5],
140
145
  schedule_times_of_day: ["06:30"],
141
146
  schedule_time_zone: "Eastern Time (US & Canada)",
@@ -154,10 +159,11 @@ Files::ScheduledExport.update(id,
154
159
  * `trigger` (string): Schedule trigger type: `daily` or `custom_schedule`.
155
160
  * `interval` (string): If trigger is `daily`, this specifies how often to run the scheduled export.
156
161
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
162
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the scheduled export's schedule fields.
157
163
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
158
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven exports.
159
- * `schedule_time_zone` (string): Time zone used by the scheduled export.
160
- * `holiday_region` (string): Optional holiday region used by schedule-driven exports.
164
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the scheduled export schedule.
165
+ * `schedule_time_zone` (string): Time zone used by the scheduled export schedule.
166
+ * `holiday_region` (string): Optional holiday region used by the scheduled export schedule.
161
167
 
162
168
 
163
169
  ---
@@ -189,6 +195,7 @@ scheduled_export.update(
189
195
  trigger: "daily",
190
196
  interval: "month",
191
197
  recurring_day: 1,
198
+ schedule_id: 1,
192
199
  schedule_days_of_week: [1,3,5],
193
200
  schedule_times_of_day: ["06:30"],
194
201
  schedule_time_zone: "Eastern Time (US & Canada)",
@@ -207,10 +214,11 @@ scheduled_export.update(
207
214
  * `trigger` (string): Schedule trigger type: `daily` or `custom_schedule`.
208
215
  * `interval` (string): If trigger is `daily`, this specifies how often to run the scheduled export.
209
216
  * `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
217
+ * `schedule_id` (int64): If trigger is `custom_schedule`, the reusable Schedule used instead of the scheduled export's schedule fields.
210
218
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
211
- * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for schedule-driven exports.
212
- * `schedule_time_zone` (string): Time zone used by the scheduled export.
213
- * `holiday_region` (string): Optional holiday region used by schedule-driven exports.
219
+ * `schedule_times_of_day` (array(string)): Times of day in HH:MM format for the scheduled export schedule.
220
+ * `schedule_time_zone` (string): Time zone used by the scheduled export schedule.
221
+ * `holiday_region` (string): Optional holiday region used by the scheduled export schedule.
214
222
 
215
223
 
216
224
  ---