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