files.com 1.0.333 → 1.0.334
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/automation.md +8 -0
- data/lib/files.com/models/automation.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1c755f9cd07d4a3663cbe20c6fbfc3185eee3a4e2ee6c8b75d8aba19e259eeb
|
4
|
+
data.tar.gz: 4d8b012144812c63c461c8dbad0bfbbc41fc3571cc814112b1aaeb1f710e72f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a354b4073082c776801c4af7cda041bcdf86b0e419a7c306c9ce553874483da924f2e93f1420bdad903d6c18ab491cc9ea7af4053e0e173a1f95ee40cce6c26
|
7
|
+
data.tar.gz: a049ae03deb4b6d19903bcb9b13196eb0ecd97e38b3bef0c2579fcdab6bfbc78409997e45bc481243c9e0d98d4e4b08584a71cfa519007d5c9cdeeb51425e5d2
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.334
|
data/docs/automation.md
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
"destination_replace_from": "example",
|
21
21
|
"destination_replace_to": "example",
|
22
22
|
"description": "example",
|
23
|
+
"recurring_day": 25,
|
23
24
|
"path": "example",
|
24
25
|
"user_id": 1,
|
25
26
|
"sync_ids": [
|
@@ -58,6 +59,7 @@
|
|
58
59
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
59
60
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
60
61
|
* `description` (string): Description for the this Automation.
|
62
|
+
* `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`.
|
61
63
|
* `path` (string): Path on which this Automation runs. Supports globs. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
62
64
|
* `user_id` (int64): User ID of the Automation's creator.
|
63
65
|
* `sync_ids` (array): IDs of remote sync folder behaviors to run by this Automation
|
@@ -130,6 +132,7 @@ Files::Automation.create(
|
|
130
132
|
trigger: "realtime",
|
131
133
|
trigger_actions: ["create"],
|
132
134
|
value: {"limit":"1"},
|
135
|
+
recurring_day: 25,
|
133
136
|
automation: "create_folder"
|
134
137
|
)
|
135
138
|
```
|
@@ -153,6 +156,7 @@ Files::Automation.create(
|
|
153
156
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
154
157
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
155
158
|
* `value` (object): A Hash of attributes specific to the automation type.
|
159
|
+
* `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`.
|
156
160
|
* `automation` (string): Required - Automation type
|
157
161
|
|
158
162
|
|
@@ -178,6 +182,7 @@ Files::Automation.update(id,
|
|
178
182
|
trigger: "realtime",
|
179
183
|
trigger_actions: ["create"],
|
180
184
|
value: {"limit":"1"},
|
185
|
+
recurring_day: 25,
|
181
186
|
automation: "create_folder"
|
182
187
|
)
|
183
188
|
```
|
@@ -202,6 +207,7 @@ Files::Automation.update(id,
|
|
202
207
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
203
208
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
204
209
|
* `value` (object): A Hash of attributes specific to the automation type.
|
210
|
+
* `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`.
|
205
211
|
* `automation` (string): Automation type
|
206
212
|
|
207
213
|
|
@@ -242,6 +248,7 @@ automation.update(
|
|
242
248
|
trigger: "realtime",
|
243
249
|
trigger_actions: ["create"],
|
244
250
|
value: {"limit":"1"},
|
251
|
+
recurring_day: 25,
|
245
252
|
automation: "create_folder"
|
246
253
|
)
|
247
254
|
```
|
@@ -266,6 +273,7 @@ automation.update(
|
|
266
273
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
267
274
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
268
275
|
* `value` (object): A Hash of attributes specific to the automation type.
|
276
|
+
* `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`.
|
269
277
|
* `automation` (string): Automation type
|
270
278
|
|
271
279
|
|
@@ -135,6 +135,15 @@ module Files
|
|
135
135
|
@attributes[:description] = value
|
136
136
|
end
|
137
137
|
|
138
|
+
# int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
139
|
+
def recurring_day
|
140
|
+
@attributes[:recurring_day]
|
141
|
+
end
|
142
|
+
|
143
|
+
def recurring_day=(value)
|
144
|
+
@attributes[:recurring_day] = value
|
145
|
+
end
|
146
|
+
|
138
147
|
# string - Path on which this Automation runs. Supports globs. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
139
148
|
def path
|
140
149
|
@attributes[:path]
|
@@ -234,6 +243,7 @@ module Files
|
|
234
243
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
235
244
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
236
245
|
# value - object - A Hash of attributes specific to the automation type.
|
246
|
+
# 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`.
|
237
247
|
# automation - string - Automation type
|
238
248
|
def update(params = {})
|
239
249
|
params ||= {}
|
@@ -254,6 +264,7 @@ module Files
|
|
254
264
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
255
265
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
256
266
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
|
267
|
+
raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
|
257
268
|
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params[:automation] and !params[:automation].is_a?(String)
|
258
269
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
259
270
|
|
@@ -348,6 +359,7 @@ module Files
|
|
348
359
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
349
360
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
350
361
|
# value - object - A Hash of attributes specific to the automation type.
|
362
|
+
# 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`.
|
351
363
|
# automation (required) - string - Automation type
|
352
364
|
def self.create(params = {}, options = {})
|
353
365
|
raise InvalidParameterError.new("Bad parameter: source must be an String") if params[:source] and !params[:source].is_a?(String)
|
@@ -366,6 +378,7 @@ module Files
|
|
366
378
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
367
379
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
|
368
380
|
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
|
381
|
+
raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
|
369
382
|
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params[:automation] and !params[:automation].is_a?(String)
|
370
383
|
raise MissingParameterError.new("Parameter missing: automation") unless params[:automation]
|
371
384
|
|
@@ -391,6 +404,7 @@ module Files
|
|
391
404
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
392
405
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
393
406
|
# value - object - A Hash of attributes specific to the automation type.
|
407
|
+
# 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`.
|
394
408
|
# automation - string - Automation type
|
395
409
|
def self.update(id, params = {}, options = {})
|
396
410
|
params ||= {}
|
@@ -412,6 +426,7 @@ module Files
|
|
412
426
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
413
427
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params[:trigger_actions] and !params[:trigger_actions].is_a?(Array)
|
414
428
|
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
|
429
|
+
raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
|
415
430
|
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params[:automation] and !params[:automation].is_a?(String)
|
416
431
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
417
432
|
|