files.com 1.1.193 → 1.1.195
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 +20 -0
- data/docs/external_event.md +1 -1
- data/lib/files.com/models/automation.rb +15 -0
- data/lib/files.com/models/external_event.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- 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: a5731d69c5daf7582f684b0a1d449d00e3525555644d96be67fa637ad24f3edc
|
4
|
+
data.tar.gz: aebecb236db44374a9a94354d890e445ba3c01ce1c023640861ed3ae5ade3bac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '068b15831e814ca9871acee01d08170850c23909d77b1ddd3f79d3d3e317d40110cca206dcba18a8e051e7aa4ff94a0c60854d400e79b3f46bf7d2c5b0bde045'
|
7
|
+
data.tar.gz: beecc6bb096dfe2f315f4d896b47f3200cf850b7fe4100297facc75bd76f8584234247789e922adc6bb0f824dbc74546f36e424d6a36d4ee7c0e88169641268b
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
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.
|
data/docs/external_event.md
CHANGED
@@ -49,7 +49,7 @@ Files::ExternalEvent.list
|
|
49
49
|
|
50
50
|
* `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.
|
51
51
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
52
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `
|
52
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
|
53
53
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ event_type, created_at ]`, `[ remote_server_type, created_at ]`, `[ status, created_at ]`, `[ event_type, status ]` or `[ event_type, status, created_at ]`.
|
54
54
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
55
55
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -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)
|
@@ -145,7 +145,7 @@ module Files
|
|
145
145
|
# Parameters:
|
146
146
|
# 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.
|
147
147
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
148
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `
|
148
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
|
149
149
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ event_type, created_at ]`, `[ remote_server_type, created_at ]`, `[ status, created_at ]`, `[ event_type, status ]` or `[ event_type, status, created_at ]`.
|
150
150
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
151
151
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
data/lib/files.com/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|