files.com 1.1.58 → 1.1.60
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/docs/behavior.md +10 -2
- data/lib/files.com/models/automation.rb +12 -0
- data/lib/files.com/models/behavior.rb +14 -2
- 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: fa067300739233694bf0dac0061b367f3e65ad6efc0b4ec6261c206c410d22f0
|
4
|
+
data.tar.gz: b3be973b3f2e73d32494cc8908da36c95a5cd9f4e26aada993b0128635687e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9e10fb760b852c97122cfb49962b5a21473f03af8533ddc3f594abdd8ff4b7a4eb4479b0367d92373a92b3ec669dbd694a398fc3403be38a696178183718a23
|
7
|
+
data.tar.gz: f33e2e45041ba265595acc7d8f63fc4c43db76a17baa71274abf073a79e762b719d00821ef9cab902a0badcc03cd38e8e909cbab14d73365364e6ae6e6aef62c
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.60
|
data/docs/automation.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
"destination"
|
16
16
|
],
|
17
17
|
"disabled": true,
|
18
|
+
"flatten_destination_structure": true,
|
18
19
|
"group_ids": [
|
19
20
|
1,
|
20
21
|
2
|
@@ -69,6 +70,7 @@
|
|
69
70
|
* `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.
|
70
71
|
* `destinations` (array): Destination Paths
|
71
72
|
* `disabled` (boolean): If true, this automation will not run.
|
73
|
+
* `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.
|
72
74
|
* `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
|
73
75
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
74
76
|
* `interval` (string): If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
@@ -152,6 +154,7 @@ Files::Automation.create(
|
|
152
154
|
always_overwrite_size_matching_files: true,
|
153
155
|
description: "example",
|
154
156
|
disabled: true,
|
157
|
+
flatten_destination_structure: true,
|
155
158
|
ignore_locked_folders: true,
|
156
159
|
name: "example",
|
157
160
|
overwrite_files: true,
|
@@ -182,6 +185,7 @@ Files::Automation.create(
|
|
182
185
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
183
186
|
* `description` (string): Description for the this Automation.
|
184
187
|
* `disabled` (boolean): If true, this automation will not run.
|
188
|
+
* `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.
|
185
189
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
186
190
|
* `name` (string): Name for this automation.
|
187
191
|
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
@@ -227,6 +231,7 @@ Files::Automation.update(id,
|
|
227
231
|
always_overwrite_size_matching_files: true,
|
228
232
|
description: "example",
|
229
233
|
disabled: true,
|
234
|
+
flatten_destination_structure: true,
|
230
235
|
ignore_locked_folders: true,
|
231
236
|
name: "example",
|
232
237
|
overwrite_files: true,
|
@@ -258,6 +263,7 @@ Files::Automation.update(id,
|
|
258
263
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
259
264
|
* `description` (string): Description for the this Automation.
|
260
265
|
* `disabled` (boolean): If true, this automation will not run.
|
266
|
+
* `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.
|
261
267
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
262
268
|
* `name` (string): Name for this automation.
|
263
269
|
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
@@ -320,6 +326,7 @@ automation.update(
|
|
320
326
|
always_overwrite_size_matching_files: true,
|
321
327
|
description: "example",
|
322
328
|
disabled: true,
|
329
|
+
flatten_destination_structure: true,
|
323
330
|
ignore_locked_folders: true,
|
324
331
|
name: "example",
|
325
332
|
overwrite_files: true,
|
@@ -351,6 +358,7 @@ automation.update(
|
|
351
358
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
352
359
|
* `description` (string): Description for the this Automation.
|
353
360
|
* `disabled` (boolean): If true, this automation will not run.
|
361
|
+
* `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.
|
354
362
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
355
363
|
* `name` (string): Name for this automation.
|
356
364
|
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
data/docs/behavior.md
CHANGED
@@ -13,7 +13,8 @@
|
|
13
13
|
"value": {
|
14
14
|
"key": "example value"
|
15
15
|
},
|
16
|
-
"disable_parent_folder_behavior": true
|
16
|
+
"disable_parent_folder_behavior": true,
|
17
|
+
"recursive": true
|
17
18
|
}
|
18
19
|
```
|
19
20
|
|
@@ -25,6 +26,7 @@
|
|
25
26
|
* `description` (string): Description for this behavior.
|
26
27
|
* `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
|
27
28
|
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
29
|
+
* `recursive` (boolean): Is behavior recursive?
|
28
30
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
29
31
|
* `attachment_delete` (boolean): If true, will delete the file stored in attachment
|
30
32
|
|
@@ -80,7 +82,7 @@ Files::Behavior.list_for(path,
|
|
80
82
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
81
83
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
82
84
|
* `path` (string): Required - Path to operate on.
|
83
|
-
* `
|
85
|
+
* `ancestor_behaviors` (string): Show behaviors above this path?
|
84
86
|
* `behavior` (string): DEPRECATED: If set only shows folder behaviors matching this behavior type. Use `filter[behavior]` instead.
|
85
87
|
|
86
88
|
|
@@ -92,6 +94,7 @@ Files::Behavior.list_for(path,
|
|
92
94
|
Files::Behavior.create(
|
93
95
|
value: "{\"method\": \"GET\"}",
|
94
96
|
disable_parent_folder_behavior: true,
|
97
|
+
recursive: true,
|
95
98
|
name: "example",
|
96
99
|
description: "example",
|
97
100
|
path: "path",
|
@@ -104,6 +107,7 @@ Files::Behavior.create(
|
|
104
107
|
* `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
105
108
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
106
109
|
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
110
|
+
* `recursive` (boolean): Is behavior recursive?
|
107
111
|
* `name` (string): Name for this behavior.
|
108
112
|
* `description` (string): Description for this behavior.
|
109
113
|
* `path` (string): Required - Folder behaviors path.
|
@@ -143,6 +147,7 @@ Files::Behavior.webhook_test(
|
|
143
147
|
Files::Behavior.update(id,
|
144
148
|
value: "{\"method\": \"GET\"}",
|
145
149
|
disable_parent_folder_behavior: true,
|
150
|
+
recursive: true,
|
146
151
|
name: "example",
|
147
152
|
description: "example",
|
148
153
|
behavior: "webhook",
|
@@ -157,6 +162,7 @@ Files::Behavior.update(id,
|
|
157
162
|
* `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
158
163
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
159
164
|
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
165
|
+
* `recursive` (boolean): Is behavior recursive?
|
160
166
|
* `name` (string): Name for this behavior.
|
161
167
|
* `description` (string): Description for this behavior.
|
162
168
|
* `behavior` (string): Behavior type.
|
@@ -187,6 +193,7 @@ behavior = Files::Behavior.list.first
|
|
187
193
|
behavior.update(
|
188
194
|
value: "{\"method\": \"GET\"}",
|
189
195
|
disable_parent_folder_behavior: true,
|
196
|
+
recursive: true,
|
190
197
|
name: "example",
|
191
198
|
description: "example",
|
192
199
|
behavior: "webhook",
|
@@ -201,6 +208,7 @@ behavior.update(
|
|
201
208
|
* `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
202
209
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
203
210
|
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
211
|
+
* `recursive` (boolean): Is behavior recursive?
|
204
212
|
* `name` (string): Name for this behavior.
|
205
213
|
* `description` (string): Description for this behavior.
|
206
214
|
* `behavior` (string): Behavior type.
|
@@ -90,6 +90,15 @@ module Files
|
|
90
90
|
@attributes[:disabled] = value
|
91
91
|
end
|
92
92
|
|
93
|
+
# 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.
|
94
|
+
def flatten_destination_structure
|
95
|
+
@attributes[:flatten_destination_structure]
|
96
|
+
end
|
97
|
+
|
98
|
+
def flatten_destination_structure=(value)
|
99
|
+
@attributes[:flatten_destination_structure] = value
|
100
|
+
end
|
101
|
+
|
93
102
|
# array - IDs of Groups for the Automation (i.e. who to Request File from)
|
94
103
|
def group_ids
|
95
104
|
@attributes[:group_ids]
|
@@ -325,6 +334,7 @@ module Files
|
|
325
334
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
326
335
|
# description - string - Description for the this Automation.
|
327
336
|
# disabled - boolean - If true, this automation will not run.
|
337
|
+
# 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.
|
328
338
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
329
339
|
# name - string - Name for this automation.
|
330
340
|
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
@@ -452,6 +462,7 @@ module Files
|
|
452
462
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
453
463
|
# description - string - Description for the this Automation.
|
454
464
|
# disabled - boolean - If true, this automation will not run.
|
465
|
+
# 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.
|
455
466
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
456
467
|
# name - string - Name for this automation.
|
457
468
|
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
@@ -517,6 +528,7 @@ module Files
|
|
517
528
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
518
529
|
# description - string - Description for the this Automation.
|
519
530
|
# disabled - boolean - If true, this automation will not run.
|
531
|
+
# 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.
|
520
532
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
521
533
|
# name - string - Name for this automation.
|
522
534
|
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
|
@@ -81,6 +81,15 @@ module Files
|
|
81
81
|
@attributes[:disable_parent_folder_behavior] = value
|
82
82
|
end
|
83
83
|
|
84
|
+
# boolean - Is behavior recursive?
|
85
|
+
def recursive
|
86
|
+
@attributes[:recursive]
|
87
|
+
end
|
88
|
+
|
89
|
+
def recursive=(value)
|
90
|
+
@attributes[:recursive] = value
|
91
|
+
end
|
92
|
+
|
84
93
|
# file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
85
94
|
def attachment_file
|
86
95
|
@attributes[:attachment_file]
|
@@ -103,6 +112,7 @@ module Files
|
|
103
112
|
# value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
104
113
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
105
114
|
# disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
115
|
+
# recursive - boolean - Is behavior recursive?
|
106
116
|
# name - string - Name for this behavior.
|
107
117
|
# description - string - Description for this behavior.
|
108
118
|
# behavior - string - Behavior type.
|
@@ -194,7 +204,7 @@ module Files
|
|
194
204
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
195
205
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
196
206
|
# path (required) - string - Path to operate on.
|
197
|
-
#
|
207
|
+
# ancestor_behaviors - string - Show behaviors above this path?
|
198
208
|
# behavior - string - DEPRECATED: If set only shows folder behaviors matching this behavior type. Use `filter[behavior]` instead.
|
199
209
|
def self.list_for(path, params = {}, options = {})
|
200
210
|
params ||= {}
|
@@ -205,7 +215,7 @@ module Files
|
|
205
215
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
206
216
|
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
207
217
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
208
|
-
raise InvalidParameterError.new("Bad parameter:
|
218
|
+
raise InvalidParameterError.new("Bad parameter: ancestor_behaviors must be an String") if params[:ancestor_behaviors] and !params[:ancestor_behaviors].is_a?(String)
|
209
219
|
raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params[:behavior] and !params[:behavior].is_a?(String)
|
210
220
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
211
221
|
|
@@ -218,6 +228,7 @@ module Files
|
|
218
228
|
# value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
219
229
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
220
230
|
# disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
231
|
+
# recursive - boolean - Is behavior recursive?
|
221
232
|
# name - string - Name for this behavior.
|
222
233
|
# description - string - Description for this behavior.
|
223
234
|
# path (required) - string - Folder behaviors path.
|
@@ -259,6 +270,7 @@ module Files
|
|
259
270
|
# value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
260
271
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
261
272
|
# disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
273
|
+
# recursive - boolean - Is behavior recursive?
|
262
274
|
# name - string - Name for this behavior.
|
263
275
|
# description - string - Description for this behavior.
|
264
276
|
# behavior - string - Behavior type.
|
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.60
|
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-04-
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|