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.
@@ -0,0 +1,222 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class Schedule
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Schedule ID.
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ def id=(value)
18
+ @attributes[:id] = value
19
+ end
20
+
21
+ # string - Schedule name.
22
+ def name
23
+ @attributes[:name]
24
+ end
25
+
26
+ def name=(value)
27
+ @attributes[:name] = value
28
+ end
29
+
30
+ # array(int64) - 0-based weekdays used by the Schedule. 0 is Sunday.
31
+ def schedule_days_of_week
32
+ @attributes[:schedule_days_of_week]
33
+ end
34
+
35
+ def schedule_days_of_week=(value)
36
+ @attributes[:schedule_days_of_week] = value
37
+ end
38
+
39
+ # array(string) - Times of day in HH:MM format (24-hour).
40
+ def schedule_times_of_day
41
+ @attributes[:schedule_times_of_day]
42
+ end
43
+
44
+ def schedule_times_of_day=(value)
45
+ @attributes[:schedule_times_of_day] = value
46
+ end
47
+
48
+ # string - Time zone for scheduled times. If not set, times are interpreted as UTC.
49
+ def schedule_time_zone
50
+ @attributes[:schedule_time_zone]
51
+ end
52
+
53
+ def schedule_time_zone=(value)
54
+ @attributes[:schedule_time_zone] = value
55
+ end
56
+
57
+ # string - Optional holiday region on which linked resources do not run.
58
+ def holiday_region
59
+ @attributes[:holiday_region]
60
+ end
61
+
62
+ def holiday_region=(value)
63
+ @attributes[:holiday_region] = value
64
+ end
65
+
66
+ # string - Human-readable Schedule description.
67
+ def human_readable_schedule
68
+ @attributes[:human_readable_schedule]
69
+ end
70
+
71
+ def human_readable_schedule=(value)
72
+ @attributes[:human_readable_schedule] = value
73
+ end
74
+
75
+ # date-time - Creation time.
76
+ def created_at
77
+ @attributes[:created_at]
78
+ end
79
+
80
+ # date-time - Last update time.
81
+ def updated_at
82
+ @attributes[:updated_at]
83
+ end
84
+
85
+ # Parameters:
86
+ # name - string - Schedule name.
87
+ # schedule_days_of_week - array(int64) - 0-based weekdays used by the Schedule. 0 is Sunday.
88
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format (24-hour).
89
+ # schedule_time_zone - string - Time zone for scheduled times. If not set, times are interpreted as UTC.
90
+ # holiday_region - string - Optional holiday region on which linked resources do not run.
91
+ def update(params = {})
92
+ params ||= {}
93
+ params[:id] = @attributes[:id]
94
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
95
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
96
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
97
+ 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)
98
+ 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)
99
+ 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)
100
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
101
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
102
+
103
+ Api.send_request("/schedules/#{@attributes[:id]}", :patch, params, @options)
104
+ end
105
+
106
+ def delete(params = {})
107
+ params ||= {}
108
+ params[:id] = @attributes[:id]
109
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
110
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
111
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
112
+
113
+ Api.send_request("/schedules/#{@attributes[:id]}", :delete, params, @options)
114
+ end
115
+
116
+ def destroy(params = {})
117
+ delete(params)
118
+ nil
119
+ end
120
+
121
+ def save
122
+ if @attributes[:id]
123
+ new_obj = update(@attributes)
124
+ else
125
+ new_obj = Schedule.create(@attributes, @options)
126
+ end
127
+
128
+ @attributes = new_obj.attributes
129
+ true
130
+ end
131
+
132
+ # Parameters:
133
+ # 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.
134
+ # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
135
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`.
136
+ def self.list(params = {}, options = {})
137
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
138
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
139
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
140
+
141
+ List.new(Schedule, params) do
142
+ Api.send_request("/schedules", :get, params, options)
143
+ end
144
+ end
145
+
146
+ def self.all(params = {}, options = {})
147
+ list(params, options)
148
+ end
149
+
150
+ # Parameters:
151
+ # id (required) - int64 - Schedule ID.
152
+ def self.find(id, params = {}, options = {})
153
+ params ||= {}
154
+ params[:id] = id
155
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
156
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
157
+
158
+ response, options = Api.send_request("/schedules/#{params[:id]}", :get, params, options)
159
+ Schedule.new(response.data, options)
160
+ end
161
+
162
+ def self.get(id, params = {}, options = {})
163
+ find(id, params, options)
164
+ end
165
+
166
+ # Parameters:
167
+ # name (required) - string - Schedule name.
168
+ # schedule_days_of_week (required) - array(int64) - 0-based weekdays used by the Schedule. 0 is Sunday.
169
+ # schedule_times_of_day (required) - array(string) - Times of day in HH:MM format (24-hour).
170
+ # schedule_time_zone - string - Time zone for scheduled times. If not set, times are interpreted as UTC.
171
+ # holiday_region - string - Optional holiday region on which linked resources do not run.
172
+ def self.create(params = {}, options = {})
173
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
174
+ 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)
175
+ 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)
176
+ 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)
177
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
178
+ raise MissingParameterError.new("Parameter missing: name") unless params[:name]
179
+ raise MissingParameterError.new("Parameter missing: schedule_days_of_week") unless params[:schedule_days_of_week]
180
+ raise MissingParameterError.new("Parameter missing: schedule_times_of_day") unless params[:schedule_times_of_day]
181
+
182
+ response, options = Api.send_request("/schedules", :post, params, options)
183
+ Schedule.new(response.data, options)
184
+ end
185
+
186
+ # Parameters:
187
+ # name - string - Schedule name.
188
+ # schedule_days_of_week - array(int64) - 0-based weekdays used by the Schedule. 0 is Sunday.
189
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format (24-hour).
190
+ # schedule_time_zone - string - Time zone for scheduled times. If not set, times are interpreted as UTC.
191
+ # holiday_region - string - Optional holiday region on which linked resources do not run.
192
+ def self.update(id, params = {}, options = {})
193
+ params ||= {}
194
+ params[:id] = id
195
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
196
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
197
+ 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)
198
+ 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)
199
+ 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)
200
+ raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
201
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
202
+
203
+ response, options = Api.send_request("/schedules/#{params[:id]}", :patch, params, options)
204
+ Schedule.new(response.data, options)
205
+ end
206
+
207
+ def self.delete(id, params = {}, options = {})
208
+ params ||= {}
209
+ params[:id] = id
210
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
211
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
212
+
213
+ Api.send_request("/schedules/#{params[:id]}", :delete, params, options)
214
+ nil
215
+ end
216
+
217
+ def self.destroy(id, params = {}, options = {})
218
+ delete(id, params, options)
219
+ nil
220
+ end
221
+ end
222
+ end
@@ -99,6 +99,15 @@ module Files
99
99
  @attributes[:recurring_day] = value
100
100
  end
101
101
 
102
+ # int64 - If trigger is `custom_schedule`, the reusable Schedule used instead of the scheduled export's schedule fields.
103
+ def schedule_id
104
+ @attributes[:schedule_id]
105
+ end
106
+
107
+ def schedule_id=(value)
108
+ @attributes[:schedule_id] = value
109
+ end
110
+
102
111
  # array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
103
112
  def schedule_days_of_week
104
113
  @attributes[:schedule_days_of_week]
@@ -108,7 +117,7 @@ module Files
108
117
  @attributes[:schedule_days_of_week] = value
109
118
  end
110
119
 
111
- # array(string) - Times of day in HH:MM format for schedule-driven exports.
120
+ # array(string) - Times of day in HH:MM format for the scheduled export schedule.
112
121
  def schedule_times_of_day
113
122
  @attributes[:schedule_times_of_day]
114
123
  end
@@ -117,7 +126,7 @@ module Files
117
126
  @attributes[:schedule_times_of_day] = value
118
127
  end
119
128
 
120
- # string - Time zone used by the scheduled export.
129
+ # string - Time zone used by the scheduled export schedule.
121
130
  def schedule_time_zone
122
131
  @attributes[:schedule_time_zone]
123
132
  end
@@ -126,7 +135,7 @@ module Files
126
135
  @attributes[:schedule_time_zone] = value
127
136
  end
128
137
 
129
- # string - Optional holiday region used by schedule-driven exports.
138
+ # string - Optional holiday region used by the scheduled export schedule.
130
139
  def holiday_region
131
140
  @attributes[:holiday_region]
132
141
  end
@@ -181,10 +190,11 @@ module Files
181
190
  # trigger - string - Schedule trigger type: `daily` or `custom_schedule`.
182
191
  # interval - string - If trigger is `daily`, this specifies how often to run the scheduled export.
183
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 scheduled export's schedule fields.
184
194
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
185
- # schedule_times_of_day - array(string) - Times of day in HH:MM format for schedule-driven exports.
186
- # schedule_time_zone - string - Time zone used by the scheduled export.
187
- # holiday_region - string - Optional holiday region used by schedule-driven exports.
195
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for the scheduled export schedule.
196
+ # schedule_time_zone - string - Time zone used by the scheduled export schedule.
197
+ # holiday_region - string - Optional holiday region used by the scheduled export schedule.
188
198
  def update(params = {})
189
199
  params ||= {}
190
200
  params[:id] = @attributes[:id]
@@ -196,6 +206,7 @@ module Files
196
206
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
197
207
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
198
208
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
209
+ raise InvalidParameterError.new("Bad parameter: schedule_id must be an Integer") if params[:schedule_id] and !params[:schedule_id].is_a?(Integer)
199
210
  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)
200
211
  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)
201
212
  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)
@@ -278,10 +289,11 @@ module Files
278
289
  # trigger - string - Schedule trigger type: `daily` or `custom_schedule`.
279
290
  # interval - string - If trigger is `daily`, this specifies how often to run the scheduled export.
280
291
  # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
292
+ # schedule_id - int64 - If trigger is `custom_schedule`, the reusable Schedule used instead of the scheduled export's schedule fields.
281
293
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
282
- # schedule_times_of_day - array(string) - Times of day in HH:MM format for schedule-driven exports.
283
- # schedule_time_zone - string - Time zone used by the scheduled export.
284
- # holiday_region - string - Optional holiday region used by schedule-driven exports.
294
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for the scheduled export schedule.
295
+ # schedule_time_zone - string - Time zone used by the scheduled export schedule.
296
+ # holiday_region - string - Optional holiday region used by the scheduled export schedule.
285
297
  def self.create(params = {}, options = {})
286
298
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
287
299
  raise InvalidParameterError.new("Bad parameter: export_type must be an String") if params[:export_type] and !params[:export_type].is_a?(String)
@@ -290,6 +302,7 @@ module Files
290
302
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
291
303
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
292
304
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
305
+ raise InvalidParameterError.new("Bad parameter: schedule_id must be an Integer") if params[:schedule_id] and !params[:schedule_id].is_a?(Integer)
293
306
  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)
294
307
  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)
295
308
  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)
@@ -310,10 +323,11 @@ module Files
310
323
  # trigger - string - Schedule trigger type: `daily` or `custom_schedule`.
311
324
  # interval - string - If trigger is `daily`, this specifies how often to run the scheduled export.
312
325
  # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
326
+ # schedule_id - int64 - If trigger is `custom_schedule`, the reusable Schedule used instead of the scheduled export's schedule fields.
313
327
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
314
- # schedule_times_of_day - array(string) - Times of day in HH:MM format for schedule-driven exports.
315
- # schedule_time_zone - string - Time zone used by the scheduled export.
316
- # holiday_region - string - Optional holiday region used by schedule-driven exports.
328
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for the scheduled export schedule.
329
+ # schedule_time_zone - string - Time zone used by the scheduled export schedule.
330
+ # holiday_region - string - Optional holiday region used by the scheduled export schedule.
317
331
  def self.update(id, params = {}, options = {})
318
332
  params ||= {}
319
333
  params[:id] = id
@@ -325,6 +339,7 @@ module Files
325
339
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
326
340
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
327
341
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
342
+ raise InvalidParameterError.new("Bad parameter: schedule_id must be an Integer") if params[:schedule_id] and !params[:schedule_id].is_a?(Integer)
328
343
  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)
329
344
  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)
330
345
  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)
@@ -235,6 +235,15 @@ module Files
235
235
  @attributes[:recurring_day] = value
236
236
  end
237
237
 
238
+ # int64 - If trigger is `custom_schedule`, the reusable Schedule used instead of the sync's schedule fields.
239
+ def schedule_id
240
+ @attributes[:schedule_id]
241
+ end
242
+
243
+ def schedule_id=(value)
244
+ @attributes[:schedule_id] = value
245
+ end
246
+
238
247
  # 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.
239
248
  def schedule_days_of_week
240
249
  @attributes[:schedule_days_of_week]
@@ -253,7 +262,7 @@ module Files
253
262
  @attributes[:schedule_times_of_day] = value
254
263
  end
255
264
 
256
- # string - Time zone for scheduled times. If not set, times are interpreted as UTC.
265
+ # string - Time zone for the schedule. If not set, times are interpreted as UTC.
257
266
  def schedule_time_zone
258
267
  @attributes[:schedule_time_zone]
259
268
  end
@@ -262,7 +271,7 @@ module Files
262
271
  @attributes[:schedule_time_zone] = value
263
272
  end
264
273
 
265
- # string - Skip sync if there is a formal, observed holiday for this region.
274
+ # string - Skip the sync if there is a formal, observed holiday for this region.
266
275
  def holiday_region
267
276
  @attributes[:holiday_region]
268
277
  end
@@ -309,14 +318,15 @@ module Files
309
318
  # dest_remote_server_id - int64 - Remote server ID for the destination (if remote)
310
319
  # disabled - boolean - Is this sync disabled?
311
320
  # exclude_patterns - array(string) - Array of glob patterns to exclude
312
- # holiday_region - string - Skip sync if there is a formal, observed holiday for this region.
321
+ # holiday_region - string - Skip the sync if there is a formal, observed holiday for this region.
313
322
  # include_patterns - array(string) - Array of glob patterns to include
314
323
  # 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`
315
324
  # keep_after_copy - boolean - Keep files after copying?
316
325
  # name - string - Name for this sync job
317
326
  # 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`.
327
+ # schedule_id - int64 - If trigger is `custom_schedule`, the reusable Schedule used instead of the sync's schedule fields.
318
328
  # 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.
319
- # schedule_time_zone - string - Time zone for scheduled times. If not set, times are interpreted as UTC.
329
+ # schedule_time_zone - string - Time zone for the schedule. If not set, times are interpreted as UTC.
320
330
  # schedule_times_of_day - array(string) - Times of day to run in HH:MM format. For `custom_schedule`, run at these times on specified days of week. For `daily`, run at these times on the scheduled interval date.
321
331
  # src_path - string - Absolute source path for the sync
322
332
  # src_remote_server_id - int64 - Remote server ID for the source (if remote)
@@ -338,6 +348,7 @@ module Files
338
348
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
339
349
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
340
350
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
351
+ raise InvalidParameterError.new("Bad parameter: schedule_id must be an Integer") if params[:schedule_id] and !params[:schedule_id].is_a?(Integer)
341
352
  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)
342
353
  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)
343
354
  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)
@@ -420,14 +431,15 @@ module Files
420
431
  # dest_remote_server_id - int64 - Remote server ID for the destination (if remote)
421
432
  # disabled - boolean - Is this sync disabled?
422
433
  # exclude_patterns - array(string) - Array of glob patterns to exclude
423
- # holiday_region - string - Skip sync if there is a formal, observed holiday for this region.
434
+ # holiday_region - string - Skip the sync if there is a formal, observed holiday for this region.
424
435
  # include_patterns - array(string) - Array of glob patterns to include
425
436
  # 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`
426
437
  # keep_after_copy - boolean - Keep files after copying?
427
438
  # name - string - Name for this sync job
428
439
  # 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`.
440
+ # schedule_id - int64 - If trigger is `custom_schedule`, the reusable Schedule used instead of the sync's schedule fields.
429
441
  # 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.
430
- # schedule_time_zone - string - Time zone for scheduled times. If not set, times are interpreted as UTC.
442
+ # schedule_time_zone - string - Time zone for the schedule. If not set, times are interpreted as UTC.
431
443
  # schedule_times_of_day - array(string) - Times of day to run in HH:MM format. For `custom_schedule`, run at these times on specified days of week. For `daily`, run at these times on the scheduled interval date.
432
444
  # src_path - string - Absolute source path for the sync
433
445
  # src_remote_server_id - int64 - Remote server ID for the source (if remote)
@@ -446,6 +458,7 @@ module Files
446
458
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
447
459
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
448
460
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
461
+ raise InvalidParameterError.new("Bad parameter: schedule_id must be an Integer") if params[:schedule_id] and !params[:schedule_id].is_a?(Integer)
449
462
  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)
450
463
  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)
451
464
  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)
@@ -489,14 +502,15 @@ module Files
489
502
  # dest_remote_server_id - int64 - Remote server ID for the destination (if remote)
490
503
  # disabled - boolean - Is this sync disabled?
491
504
  # exclude_patterns - array(string) - Array of glob patterns to exclude
492
- # holiday_region - string - Skip sync if there is a formal, observed holiday for this region.
505
+ # holiday_region - string - Skip the sync if there is a formal, observed holiday for this region.
493
506
  # include_patterns - array(string) - Array of glob patterns to include
494
507
  # 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`
495
508
  # keep_after_copy - boolean - Keep files after copying?
496
509
  # name - string - Name for this sync job
497
510
  # 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`.
511
+ # schedule_id - int64 - If trigger is `custom_schedule`, the reusable Schedule used instead of the sync's schedule fields.
498
512
  # 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.
499
- # schedule_time_zone - string - Time zone for scheduled times. If not set, times are interpreted as UTC.
513
+ # schedule_time_zone - string - Time zone for the schedule. If not set, times are interpreted as UTC.
500
514
  # schedule_times_of_day - array(string) - Times of day to run in HH:MM format. For `custom_schedule`, run at these times on specified days of week. For `daily`, run at these times on the scheduled interval date.
501
515
  # src_path - string - Absolute source path for the sync
502
516
  # src_remote_server_id - int64 - Remote server ID for the source (if remote)
@@ -517,6 +531,7 @@ module Files
517
531
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
518
532
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
519
533
  raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
534
+ raise InvalidParameterError.new("Bad parameter: schedule_id must be an Integer") if params[:schedule_id] and !params[:schedule_id].is_a?(Integer)
520
535
  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)
521
536
  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)
522
537
  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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.704"
4
+ VERSION = "1.1.705"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -142,6 +142,7 @@ require "files.com/models/remote_server_configuration_file"
142
142
  require "files.com/models/remote_server_credential"
143
143
  require "files.com/models/request"
144
144
  require "files.com/models/restore"
145
+ require "files.com/models/schedule"
145
146
  require "files.com/models/scheduled_export"
146
147
  require "files.com/models/scim_log"
147
148
  require "files.com/models/secret"
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.704
4
+ version: 1.1.705
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-05 00:00:00.000000000 Z
11
+ date: 2026-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -281,6 +281,7 @@ files:
281
281
  - docs/remote_server_credential.md
282
282
  - docs/request.md
283
283
  - docs/restore.md
284
+ - docs/schedule.md
284
285
  - docs/scheduled_export.md
285
286
  - docs/scim_log.md
286
287
  - docs/secret.md
@@ -435,6 +436,7 @@ files:
435
436
  - lib/files.com/models/remote_server_credential.rb
436
437
  - lib/files.com/models/request.rb
437
438
  - lib/files.com/models/restore.rb
439
+ - lib/files.com/models/schedule.rb
438
440
  - lib/files.com/models/scheduled_export.rb
439
441
  - lib/files.com/models/scim_log.rb
440
442
  - lib/files.com/models/secret.rb