files.com 1.0.234 → 1.0.235
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 +0 -8
- data/lib/files.com/models/automation.rb +0 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b3baaefc0f4a26735cea71608e049df98a24520b99abdde35c29a62b1080d23
|
4
|
+
data.tar.gz: b6ba695e36c7f873f7ef2ec26c9c72460f6bf219206eae593586fdd915b498cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d020694cdd5fe7fa68898f89cf5ecc01bfa7d187d41923c3631d44573cfbfc429b1676f871bd2e84916731a6c5ff4df5edd12c200cf05f664559fababa94b889
|
7
|
+
data.tar.gz: 6db792177c5186136cf9ee6c630e65dac277e597a425e08004ac8b8d722ec1d9bb9d255aee0a9a94a78cfb5335d307ffca8cce3cee3ae1e338a67df269ec2018
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.235
|
data/docs/automation.md
CHANGED
@@ -40,7 +40,6 @@
|
|
40
40
|
],
|
41
41
|
"webhook_url": "https://app.files.com/api/webhooks/abc123",
|
42
42
|
"trigger_actions": "[ \"create\" ]",
|
43
|
-
"trigger_action_path": "path/to/file/or/folder",
|
44
43
|
"value": "{\"limit\": \"1\"}"
|
45
44
|
}
|
46
45
|
```
|
@@ -62,7 +61,6 @@
|
|
62
61
|
* `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
|
63
62
|
* `webhook_url` (string): If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
|
64
63
|
* `trigger_actions` (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
|
65
|
-
* `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
|
66
64
|
* `value` (object): A Hash of attributes specific to the automation type.
|
67
65
|
* `destination` (string): DEPRECATED: Destination Path. Use `destinations` instead.
|
68
66
|
|
@@ -120,7 +118,6 @@ Files::Automation.create(
|
|
120
118
|
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
121
119
|
trigger: "realtime",
|
122
120
|
trigger_actions: "[ \"create\" ]",
|
123
|
-
trigger_action_path: "path/to/file/or/folder",
|
124
121
|
value: "{\"limit\": \"1\"}"
|
125
122
|
)
|
126
123
|
```
|
@@ -142,7 +139,6 @@ Files::Automation.create(
|
|
142
139
|
* `name` (string): Name for this automation.
|
143
140
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
144
141
|
* `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
|
145
|
-
* `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
|
146
142
|
* `value` (object): A Hash of attributes specific to the automation type.
|
147
143
|
|
148
144
|
|
@@ -161,7 +157,6 @@ Files::Automation.update(id,
|
|
161
157
|
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
162
158
|
trigger: "realtime",
|
163
159
|
trigger_actions: "[ \"create\" ]",
|
164
|
-
trigger_action_path: "path/to/file/or/folder",
|
165
160
|
value: "{\"limit\": \"1\"}"
|
166
161
|
)
|
167
162
|
```
|
@@ -184,7 +179,6 @@ Files::Automation.update(id,
|
|
184
179
|
* `name` (string): Name for this automation.
|
185
180
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
186
181
|
* `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
|
187
|
-
* `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
|
188
182
|
* `value` (object): A Hash of attributes specific to the automation type.
|
189
183
|
|
190
184
|
|
@@ -218,7 +212,6 @@ automation.update(
|
|
218
212
|
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
219
213
|
trigger: "realtime",
|
220
214
|
trigger_actions: "[ \"create\" ]",
|
221
|
-
trigger_action_path: "path/to/file/or/folder",
|
222
215
|
value: "{\"limit\": \"1\"}"
|
223
216
|
)
|
224
217
|
```
|
@@ -241,7 +234,6 @@ automation.update(
|
|
241
234
|
* `name` (string): Name for this automation.
|
242
235
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
243
236
|
* `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
|
244
|
-
* `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
|
245
237
|
* `value` (object): A Hash of attributes specific to the automation type.
|
246
238
|
|
247
239
|
|
@@ -162,15 +162,6 @@ module Files
|
|
162
162
|
@attributes[:trigger_actions] = value
|
163
163
|
end
|
164
164
|
|
165
|
-
# string - If trigger is `action`, this is the path to watch for the specified trigger actions.
|
166
|
-
def trigger_action_path
|
167
|
-
@attributes[:trigger_action_path]
|
168
|
-
end
|
169
|
-
|
170
|
-
def trigger_action_path=(value)
|
171
|
-
@attributes[:trigger_action_path] = value
|
172
|
-
end
|
173
|
-
|
174
165
|
# object - A Hash of attributes specific to the automation type.
|
175
166
|
def value
|
176
167
|
@attributes[:value]
|
@@ -205,7 +196,6 @@ module Files
|
|
205
196
|
# name - string - Name for this automation.
|
206
197
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
207
198
|
# 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
|
208
|
-
# trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
|
209
199
|
# value - object - A Hash of attributes specific to the automation type.
|
210
200
|
def update(params = {})
|
211
201
|
params ||= {}
|
@@ -226,7 +216,6 @@ module Files
|
|
226
216
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
227
217
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
|
228
218
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
|
229
|
-
raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
|
230
219
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
231
220
|
raise MissingParameterError.new("Parameter missing: automation") unless params.dig(:automation)
|
232
221
|
|
@@ -320,7 +309,6 @@ module Files
|
|
320
309
|
# name - string - Name for this automation.
|
321
310
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
322
311
|
# 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
|
323
|
-
# trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
|
324
312
|
# value - object - A Hash of attributes specific to the automation type.
|
325
313
|
def self.create(params = {}, options = {})
|
326
314
|
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
|
@@ -338,7 +326,6 @@ module Files
|
|
338
326
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
339
327
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
|
340
328
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
|
341
|
-
raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
|
342
329
|
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params.dig(:value) and !params.dig(:value).is_a?(Hash)
|
343
330
|
raise MissingParameterError.new("Parameter missing: automation") unless params.dig(:automation)
|
344
331
|
|
@@ -362,7 +349,6 @@ module Files
|
|
362
349
|
# name - string - Name for this automation.
|
363
350
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
364
351
|
# 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
|
365
|
-
# trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
|
366
352
|
# value - object - A Hash of attributes specific to the automation type.
|
367
353
|
def self.update(id, params = {}, options = {})
|
368
354
|
params ||= {}
|
@@ -383,7 +369,6 @@ module Files
|
|
383
369
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
384
370
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
|
385
371
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
|
386
|
-
raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
|
387
372
|
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params.dig(:value) and !params.dig(:value).is_a?(Hash)
|
388
373
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
389
374
|
raise MissingParameterError.new("Parameter missing: automation") unless params.dig(:automation)
|
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.0.
|
4
|
+
version: 1.0.235
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|