files.com 1.1.194 → 1.1.195

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e418942f4b39b1c0900e95ef6f1a315985fe9871120ee8f46a1db10d1ce035a
4
- data.tar.gz: 4d0b40c16b1ba40deeeeb96d7f622903d5be7a7fdb4c087c9f5b53cfcb5bf8b6
3
+ metadata.gz: a5731d69c5daf7582f684b0a1d449d00e3525555644d96be67fa637ad24f3edc
4
+ data.tar.gz: aebecb236db44374a9a94354d890e445ba3c01ce1c023640861ed3ae5ade3bac
5
5
  SHA512:
6
- metadata.gz: bf0c18eb1922691a4c4d23684c76d8f02a75f2f21e3e2a7ec2925ba0997277ff0d48b3b5216fb7a34101bab67d949bb987f6f07ee1eb5bd556e4ba9cf5a162de
7
- data.tar.gz: 5b613c903c193dc922908e2c03c818e99bc1c0260bb6a6f1b4f187b87542183b755b5603ced97d5e9903efa786f471504b2d3e84433774844a9f31d7ddc0945f
6
+ metadata.gz: '068b15831e814ca9871acee01d08170850c23909d77b1ddd3f79d3d3e317d40110cca206dcba18a8e051e7aa4ff94a0c60854d400e79b3f46bf7d2c5b0bde045'
7
+ data.tar.gz: beecc6bb096dfe2f315f4d896b47f3200cf850b7fe4100297facc75bd76f8584234247789e922adc6bb0f824dbc74546f36e424d6a36d4ee7c0e88169641268b
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.194
1
+ 1.1.195
data/docs/automation.md CHANGED
@@ -16,6 +16,19 @@
16
16
  ],
17
17
  "disabled": true,
18
18
  "exclude_pattern": "path/to/exclude/*",
19
+ "import_urls": [
20
+ {
21
+ "name": "users.json",
22
+ "url": "http://example.com/users",
23
+ "method": "POST",
24
+ "headers": {
25
+ "Content-Type": "application/json"
26
+ },
27
+ "content": {
28
+ "group": "support"
29
+ }
30
+ }
31
+ ],
19
32
  "flatten_destination_structure": true,
20
33
  "group_ids": [
21
34
  1,
@@ -73,6 +86,7 @@
73
86
  * `destinations` (array(string)): Destination Paths
74
87
  * `disabled` (boolean): If true, this automation will not run.
75
88
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
89
+ * `import_urls` (array(object)): List of URLs to be imported and names to be used.
76
90
  * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
77
91
  * `group_ids` (array(int64)): IDs of Groups for the Automation (i.e. who to Request File from)
78
92
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
@@ -154,6 +168,7 @@ Files::Automation.create(
154
168
  description: "example",
155
169
  disabled: true,
156
170
  exclude_pattern: "path/to/exclude/*",
171
+ import_urls: [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
157
172
  flatten_destination_structure: true,
158
173
  ignore_locked_folders: true,
159
174
  legacy_folder_matching: true,
@@ -186,6 +201,7 @@ Files::Automation.create(
186
201
  * `description` (string): Description for the this Automation.
187
202
  * `disabled` (boolean): If true, this automation will not run.
188
203
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
204
+ * `import_urls` (array(object)): List of URLs to be imported and names to be used.
189
205
  * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
190
206
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
191
207
  * `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -234,6 +250,7 @@ Files::Automation.update(id,
234
250
  description: "example",
235
251
  disabled: true,
236
252
  exclude_pattern: "path/to/exclude/*",
253
+ import_urls: [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
237
254
  flatten_destination_structure: true,
238
255
  ignore_locked_folders: true,
239
256
  legacy_folder_matching: true,
@@ -267,6 +284,7 @@ Files::Automation.update(id,
267
284
  * `description` (string): Description for the this Automation.
268
285
  * `disabled` (boolean): If true, this automation will not run.
269
286
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
287
+ * `import_urls` (array(object)): List of URLs to be imported and names to be used.
270
288
  * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
271
289
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
272
290
  * `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -332,6 +350,7 @@ automation.update(
332
350
  description: "example",
333
351
  disabled: true,
334
352
  exclude_pattern: "path/to/exclude/*",
353
+ import_urls: [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
335
354
  flatten_destination_structure: true,
336
355
  ignore_locked_folders: true,
337
356
  legacy_folder_matching: true,
@@ -365,6 +384,7 @@ automation.update(
365
384
  * `description` (string): Description for the this Automation.
366
385
  * `disabled` (boolean): If true, this automation will not run.
367
386
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
387
+ * `import_urls` (array(object)): List of URLs to be imported and names to be used.
368
388
  * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
369
389
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
370
390
  * `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -99,6 +99,15 @@ module Files
99
99
  @attributes[:exclude_pattern] = value
100
100
  end
101
101
 
102
+ # array(object) - List of URLs to be imported and names to be used.
103
+ def import_urls
104
+ @attributes[:import_urls]
105
+ end
106
+
107
+ def import_urls=(value)
108
+ @attributes[:import_urls] = value
109
+ end
110
+
102
111
  # boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
103
112
  def flatten_destination_structure
104
113
  @attributes[:flatten_destination_structure]
@@ -343,6 +352,7 @@ module Files
343
352
  # description - string - Description for the this Automation.
344
353
  # disabled - boolean - If true, this automation will not run.
345
354
  # exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
355
+ # import_urls - array(object) - List of URLs to be imported and names to be used.
346
356
  # flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
347
357
  # ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
348
358
  # legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -373,6 +383,7 @@ module Files
373
383
  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)
374
384
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
375
385
  raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
386
+ raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
376
387
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
377
388
  raise InvalidParameterError.new("Bad parameter: path_time_zone must be an String") if params[:path_time_zone] and !params[:path_time_zone].is_a?(String)
378
389
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
@@ -471,6 +482,7 @@ module Files
471
482
  # description - string - Description for the this Automation.
472
483
  # disabled - boolean - If true, this automation will not run.
473
484
  # exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
485
+ # import_urls - array(object) - List of URLs to be imported and names to be used.
474
486
  # flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
475
487
  # ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
476
488
  # legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -497,6 +509,7 @@ module Files
497
509
  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)
498
510
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
499
511
  raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
512
+ raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
500
513
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
501
514
  raise InvalidParameterError.new("Bad parameter: path_time_zone must be an String") if params[:path_time_zone] and !params[:path_time_zone].is_a?(String)
502
515
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
@@ -538,6 +551,7 @@ module Files
538
551
  # description - string - Description for the this Automation.
539
552
  # disabled - boolean - If true, this automation will not run.
540
553
  # exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
554
+ # import_urls - array(object) - List of URLs to be imported and names to be used.
541
555
  # flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
542
556
  # ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
543
557
  # legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -567,6 +581,7 @@ module Files
567
581
  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)
568
582
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
569
583
  raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
584
+ raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
570
585
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
571
586
  raise InvalidParameterError.new("Bad parameter: path_time_zone must be an String") if params[:path_time_zone] and !params[:path_time_zone].is_a?(String)
572
587
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.194"
4
+ VERSION = "1.1.195"
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.194
4
+ version: 1.1.195
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
11
+ date: 2024-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable