files.com 1.1.289 → 1.1.291

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: 0b70fbe8265b9ed473508f4372a55e92140c84b129c8ab301b306a813a61e50b
4
- data.tar.gz: 70f50bc37881a400b3e44e684eaad39661d96c12d83e49c15911cacac3587a33
3
+ metadata.gz: 3206d9392ae3b8e4c267277295eb3a4e70286d257655eb26a3709ee5010e012e
4
+ data.tar.gz: 7c957c3a0e82f02e7f4aefd0245658f4604a9ac63258f611062f74f7f2fd6cc8
5
5
  SHA512:
6
- metadata.gz: 0163db1ba9897960b33aef1e3b2520cadbf1ed979123224db4a9f676ea4e5011dd92340cc2383a0981f096b8a98659143ad9c207b667f24e37c41a1f77a9445d
7
- data.tar.gz: 47a37d9af6363e656bf5c48420cec7406c18c6bd6551afc19c5112dfb6958ba4f4ce5024a98b83d3b7632f0ce0e19c2242acc723ee4b44186c6becb52076ca36
6
+ metadata.gz: d550b2f151a66ede7638409a8597949429a706440d8f75e0b8b8da618d0a5eaeac5bf068b83af7bb0debcb149dfb851aeada94a1de784f75d34517b468f307d9
7
+ data.tar.gz: 79b6dcc68bd3234686904a504bf5d5668ba01aad6620b71d036dd0b9e960a2d9993e48c31ab4c7e19e9b11fdff399627582e4b0c8e930dc006084c120779946d
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.289
1
+ 1.1.291
data/docs/automation.md CHANGED
@@ -183,6 +183,7 @@ Files::Automation.create(
183
183
  schedule_days_of_week: [0,1,3],
184
184
  schedule_times_of_day: ["7:30","11:30"],
185
185
  schedule_time_zone: "Eastern Time (US & Canada)",
186
+ holiday_region: "us_dc",
186
187
  always_overwrite_size_matching_files: true,
187
188
  always_serialize_jobs: true,
188
189
  description: "example",
@@ -219,6 +220,7 @@ Files::Automation.create(
219
220
  * `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.
220
221
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
221
222
  * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
223
+ * `holiday_region` (string): If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
222
224
  * `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`.
223
225
  * `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.
224
226
  * `description` (string): Description for the this Automation.
@@ -271,6 +273,7 @@ Files::Automation.update(id,
271
273
  schedule_days_of_week: [0,1,3],
272
274
  schedule_times_of_day: ["7:30","11:30"],
273
275
  schedule_time_zone: "Eastern Time (US & Canada)",
276
+ holiday_region: "us_dc",
274
277
  always_overwrite_size_matching_files: true,
275
278
  always_serialize_jobs: true,
276
279
  description: "example",
@@ -308,6 +311,7 @@ Files::Automation.update(id,
308
311
  * `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.
309
312
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
310
313
  * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
314
+ * `holiday_region` (string): If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
311
315
  * `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`.
312
316
  * `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.
313
317
  * `description` (string): Description for the this Automation.
@@ -377,6 +381,7 @@ automation.update(
377
381
  schedule_days_of_week: [0,1,3],
378
382
  schedule_times_of_day: ["7:30","11:30"],
379
383
  schedule_time_zone: "Eastern Time (US & Canada)",
384
+ holiday_region: "us_dc",
380
385
  always_overwrite_size_matching_files: true,
381
386
  always_serialize_jobs: true,
382
387
  description: "example",
@@ -414,6 +419,7 @@ automation.update(
414
419
  * `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.
415
420
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
416
421
  * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
422
+ * `holiday_region` (string): If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
417
423
  * `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`.
418
424
  * `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.
419
425
  * `description` (string): Description for the this Automation.
data/docs/sync.md CHANGED
@@ -69,7 +69,7 @@
69
69
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
70
70
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
71
71
  * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
72
- * `holiday_region` (string): If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
72
+ * `holiday_region` (string): If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
73
73
 
74
74
 
75
75
  ---
@@ -118,6 +118,8 @@ Files::Sync.create(
118
118
  interval: "week",
119
119
  trigger: "example",
120
120
  trigger_file: "example",
121
+ holiday_region: "us_dc",
122
+ sync_interval_minutes: 1,
121
123
  recurring_day: 25,
122
124
  schedule_time_zone: "Eastern Time (US & Canada)",
123
125
  schedule_days_of_week: [0,2,4],
@@ -140,6 +142,8 @@ Files::Sync.create(
140
142
  * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
141
143
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
142
144
  * `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
145
+ * `holiday_region` (string): If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
146
+ * `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
143
147
  * `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`.
144
148
  * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
145
149
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -187,6 +191,8 @@ Files::Sync.update(id,
187
191
  interval: "week",
188
192
  trigger: "example",
189
193
  trigger_file: "example",
194
+ holiday_region: "us_dc",
195
+ sync_interval_minutes: 1,
190
196
  recurring_day: 25,
191
197
  schedule_time_zone: "Eastern Time (US & Canada)",
192
198
  schedule_days_of_week: [0,2,4],
@@ -210,6 +216,8 @@ Files::Sync.update(id,
210
216
  * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
211
217
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
212
218
  * `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
219
+ * `holiday_region` (string): If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
220
+ * `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
213
221
  * `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`.
214
222
  * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
215
223
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -265,6 +273,8 @@ sync.update(
265
273
  interval: "week",
266
274
  trigger: "example",
267
275
  trigger_file: "example",
276
+ holiday_region: "us_dc",
277
+ sync_interval_minutes: 1,
268
278
  recurring_day: 25,
269
279
  schedule_time_zone: "Eastern Time (US & Canada)",
270
280
  schedule_days_of_week: [0,2,4],
@@ -288,6 +298,8 @@ sync.update(
288
298
  * `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
289
299
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
290
300
  * `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
301
+ * `holiday_region` (string): If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
302
+ * `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
291
303
  * `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`.
292
304
  * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
293
305
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -38,3 +38,9 @@ Files::UserCipherUse.list(
38
38
  * `user_id` (int64): User ID. If provided, will return uses for this user.
39
39
  * `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.
40
40
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
41
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `updated_at`.
42
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `insecure` and `updated_at`. Valid field combinations are `[ insecure, updated_at ]`.
43
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `updated_at`.
44
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `updated_at`.
45
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `updated_at`.
46
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `updated_at`.
@@ -68,9 +68,9 @@ Files::UserLifecycleRule.create(
68
68
 
69
69
  ### Parameters
70
70
 
71
- * `action` (string): Required - Action to take on inactive users (disable or delete)
72
- * `authentication_method` (string): Required - User authentication method for the rule
73
- * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
71
+ * `action` (string): Action to take on inactive users (disable or delete)
72
+ * `authentication_method` (string): User authentication method for the rule
73
+ * `inactivity_days` (int64): Number of days of inactivity before the rule applies
74
74
  * `include_site_admins` (boolean): Include site admins in the rule
75
75
  * `include_folder_admins` (boolean): Include folder admins in the rule
76
76
  * `user_state` (string): State of the users to apply the rule to (inactive or disabled)
@@ -93,9 +93,9 @@ Files::UserLifecycleRule.update(id,
93
93
  ### Parameters
94
94
 
95
95
  * `id` (int64): Required - User Lifecycle Rule ID.
96
- * `action` (string): Required - Action to take on inactive users (disable or delete)
97
- * `authentication_method` (string): Required - User authentication method for the rule
98
- * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
96
+ * `action` (string): Action to take on inactive users (disable or delete)
97
+ * `authentication_method` (string): User authentication method for the rule
98
+ * `inactivity_days` (int64): Number of days of inactivity before the rule applies
99
99
  * `include_site_admins` (boolean): Include site admins in the rule
100
100
  * `include_folder_admins` (boolean): Include folder admins in the rule
101
101
  * `user_state` (string): State of the users to apply the rule to (inactive or disabled)
@@ -133,9 +133,9 @@ user_lifecycle_rule.update(
133
133
  ### Parameters
134
134
 
135
135
  * `id` (int64): Required - User Lifecycle Rule ID.
136
- * `action` (string): Required - Action to take on inactive users (disable or delete)
137
- * `authentication_method` (string): Required - User authentication method for the rule
138
- * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
136
+ * `action` (string): Action to take on inactive users (disable or delete)
137
+ * `authentication_method` (string): User authentication method for the rule
138
+ * `inactivity_days` (int64): Number of days of inactivity before the rule applies
139
139
  * `include_site_admins` (boolean): Include site admins in the rule
140
140
  * `include_folder_admins` (boolean): Include folder admins in the rule
141
141
  * `user_state` (string): State of the users to apply the rule to (inactive or disabled)
@@ -384,6 +384,7 @@ module Files
384
384
  # 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.
385
385
  # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
386
386
  # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
387
+ # holiday_region - string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
387
388
  # 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`.
388
389
  # 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.
389
390
  # description - string - Description for the this Automation.
@@ -420,6 +421,7 @@ module Files
420
421
  raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
421
422
  raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
422
423
  raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
424
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
423
425
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
424
426
  raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
425
427
  raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
@@ -519,6 +521,7 @@ module Files
519
521
  # 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.
520
522
  # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
521
523
  # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
524
+ # holiday_region - string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
522
525
  # 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`.
523
526
  # 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.
524
527
  # description - string - Description for the this Automation.
@@ -551,6 +554,7 @@ module Files
551
554
  raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
552
555
  raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
553
556
  raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
557
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
554
558
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
555
559
  raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
556
560
  raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
@@ -593,6 +597,7 @@ module Files
593
597
  # 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.
594
598
  # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
595
599
  # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
600
+ # holiday_region - string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
596
601
  # 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`.
597
602
  # 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.
598
603
  # description - string - Description for the this Automation.
@@ -628,6 +633,7 @@ module Files
628
633
  raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
629
634
  raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
630
635
  raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
636
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
631
637
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
632
638
  raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
633
639
  raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
@@ -226,7 +226,7 @@ module Files
226
226
  @attributes[:schedule_time_zone] = value
227
227
  end
228
228
 
229
- # string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
229
+ # string - If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
230
230
  def holiday_region
231
231
  @attributes[:holiday_region]
232
232
  end
@@ -260,6 +260,8 @@ module Files
260
260
  # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
261
261
  # trigger - string - Trigger type: daily, custom_schedule, or manual
262
262
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
263
+ # holiday_region - string - If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
264
+ # sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
263
265
  # 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`.
264
266
  # schedule_time_zone - string - If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
265
267
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -278,6 +280,8 @@ module Files
278
280
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
279
281
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
280
282
  raise InvalidParameterError.new("Bad parameter: trigger_file must be an String") if params[:trigger_file] and !params[:trigger_file].is_a?(String)
283
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
284
+ raise InvalidParameterError.new("Bad parameter: sync_interval_minutes must be an Integer") if params[:sync_interval_minutes] and !params[:sync_interval_minutes].is_a?(Integer)
281
285
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
282
286
  raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
283
287
  raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
@@ -359,6 +363,8 @@ module Files
359
363
  # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
360
364
  # trigger - string - Trigger type: daily, custom_schedule, or manual
361
365
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
366
+ # holiday_region - string - If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
367
+ # sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
362
368
  # 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`.
363
369
  # schedule_time_zone - string - If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
364
370
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -373,6 +379,8 @@ module Files
373
379
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
374
380
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
375
381
  raise InvalidParameterError.new("Bad parameter: trigger_file must be an String") if params[:trigger_file] and !params[:trigger_file].is_a?(String)
382
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
383
+ raise InvalidParameterError.new("Bad parameter: sync_interval_minutes must be an Integer") if params[:sync_interval_minutes] and !params[:sync_interval_minutes].is_a?(Integer)
376
384
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
377
385
  raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
378
386
  raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
@@ -412,6 +420,8 @@ module Files
412
420
  # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
413
421
  # trigger - string - Trigger type: daily, custom_schedule, or manual
414
422
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
423
+ # holiday_region - string - If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
424
+ # sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
415
425
  # 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`.
416
426
  # schedule_time_zone - string - If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
417
427
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -429,6 +439,8 @@ module Files
429
439
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
430
440
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
431
441
  raise InvalidParameterError.new("Bad parameter: trigger_file must be an String") if params[:trigger_file] and !params[:trigger_file].is_a?(String)
442
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
443
+ raise InvalidParameterError.new("Bad parameter: sync_interval_minutes must be an Integer") if params[:sync_interval_minutes] and !params[:sync_interval_minutes].is_a?(Integer)
432
444
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
433
445
  raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
434
446
  raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
@@ -48,10 +48,22 @@ module Files
48
48
  # user_id - int64 - User ID. If provided, will return uses for this user.
49
49
  # 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.
50
50
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
51
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `updated_at`.
52
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `insecure` and `updated_at`. Valid field combinations are `[ insecure, updated_at ]`.
53
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `updated_at`.
54
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `updated_at`.
55
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `updated_at`.
56
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `updated_at`.
51
57
  def self.list(params = {}, options = {})
52
58
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
53
59
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
54
60
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
61
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
62
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
63
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
64
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
65
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
66
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
55
67
 
56
68
  List.new(UserCipherUse, params) do
57
69
  Api.send_request("/user_cipher_uses", :get, params, options)
@@ -82,9 +82,9 @@ module Files
82
82
  end
83
83
 
84
84
  # Parameters:
85
- # action (required) - string - Action to take on inactive users (disable or delete)
86
- # authentication_method (required) - string - User authentication method for the rule
87
- # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
85
+ # action - string - Action to take on inactive users (disable or delete)
86
+ # authentication_method - string - User authentication method for the rule
87
+ # inactivity_days - int64 - Number of days of inactivity before the rule applies
88
88
  # include_site_admins - boolean - Include site admins in the rule
89
89
  # include_folder_admins - boolean - Include folder admins in the rule
90
90
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
@@ -98,9 +98,6 @@ module Files
98
98
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
99
99
  raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
100
100
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
101
- raise MissingParameterError.new("Parameter missing: action") unless params[:action]
102
- raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
103
- raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
104
101
 
105
102
  Api.send_request("/user_lifecycle_rules/#{@attributes[:id]}", :patch, params, @options)
106
103
  end
@@ -164,9 +161,9 @@ module Files
164
161
  end
165
162
 
166
163
  # Parameters:
167
- # action (required) - string - Action to take on inactive users (disable or delete)
168
- # authentication_method (required) - string - User authentication method for the rule
169
- # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
164
+ # action - string - Action to take on inactive users (disable or delete)
165
+ # authentication_method - string - User authentication method for the rule
166
+ # inactivity_days - int64 - Number of days of inactivity before the rule applies
170
167
  # include_site_admins - boolean - Include site admins in the rule
171
168
  # include_folder_admins - boolean - Include folder admins in the rule
172
169
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
@@ -175,18 +172,15 @@ module Files
175
172
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
176
173
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
177
174
  raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
178
- raise MissingParameterError.new("Parameter missing: action") unless params[:action]
179
- raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
180
- raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
181
175
 
182
176
  response, options = Api.send_request("/user_lifecycle_rules", :post, params, options)
183
177
  UserLifecycleRule.new(response.data, options)
184
178
  end
185
179
 
186
180
  # Parameters:
187
- # action (required) - string - Action to take on inactive users (disable or delete)
188
- # authentication_method (required) - string - User authentication method for the rule
189
- # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
181
+ # action - string - Action to take on inactive users (disable or delete)
182
+ # authentication_method - string - User authentication method for the rule
183
+ # inactivity_days - int64 - Number of days of inactivity before the rule applies
190
184
  # include_site_admins - boolean - Include site admins in the rule
191
185
  # include_folder_admins - boolean - Include folder admins in the rule
192
186
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
@@ -199,9 +193,6 @@ module Files
199
193
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
200
194
  raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
201
195
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
202
- raise MissingParameterError.new("Parameter missing: action") unless params[:action]
203
- raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
204
- raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
205
196
 
206
197
  response, options = Api.send_request("/user_lifecycle_rules/#{params[:id]}", :patch, params, options)
207
198
  UserLifecycleRule.new(response.data, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.289"
4
+ VERSION = "1.1.291"
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.289
4
+ version: 1.1.291
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-01 00:00:00.000000000 Z
11
+ date: 2025-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable