files.com 1.0.143 → 1.0.144

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: 8357dce4d4dada928ca826660bac6882f99f35f1db3ff7ece5d3296a4a577657
4
- data.tar.gz: 05e573ac5bb3dddb2fd226cab1faaedd239550f2e2bc5df95aad21732e367586
3
+ metadata.gz: 7b68ed7434c312c8c341065d3bbc7440332bf1d102a24fa247fdaf3d8796b0cb
4
+ data.tar.gz: f5c9c2ebf256a6b5c7472b7d815334cc3dcb3a57ac560c1cf40b6b69d1871729
5
5
  SHA512:
6
- metadata.gz: 9cf2790c508c69d7147185ae01b0583f846131544fa5ddf43b01a9f2c2dbef3854bc6eb9d270dd6e7f3add7635c0551e8c82c58025822f928a091b2e2e2e4f80
7
- data.tar.gz: '079ba9392f094c1c2dfa8a9bc5cb2641d34450258c8a0ef93058d1c63c769fddcfc71700d681c547f84800aa1b26ed0be711bbb450a9030a0e6ecf3d8a98fc8f'
6
+ metadata.gz: ae3140cc85fb0d8ac7655aae5651691415f203117921b30e8c125209c726b517416d6398f2f97a0e1e9f9ca71a8a1c22a039d3f45d2ac34de0996cb92ce8bcd2
7
+ data.tar.gz: 402d2e3bb8b18af1b823efdb9b5b656fb0b382edc759485e585538fbf1fc86c51521b2f004b891dcf5320224439e417475c0c80678bfd65282c9199b2251bf1c
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.143
1
+ 1.0.144
data/docs/automation.md CHANGED
@@ -23,6 +23,9 @@
23
23
  },
24
24
  "source": "",
25
25
  "destination": "",
26
+ "destinations": [
27
+ "destination"
28
+ ],
26
29
  "destination_replace_from": "",
27
30
  "destination_replace_to": "",
28
31
  "path": "",
@@ -49,7 +52,8 @@
49
52
  * `next_process_on` (string): If trigger is `daily`, date this automation will next run.
50
53
  * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
51
54
  * `source` (string): Source Path
52
- * `destination` (string): Destination Path
55
+ * `destination` (string): DEPRECATED: Destination Path
56
+ * `destinations` (string): Destination Path
53
57
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
54
58
  * `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.
55
59
  * `path` (string): Path on which this Automation runs. Supports globs. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
@@ -109,6 +113,7 @@ Files::Automation.create(
109
113
  automation: "create_folder",
110
114
  source: "source",
111
115
  destination: "destination",
116
+ destinations: "[\"folder_a/file_a.txt\", {\"folder_path\":\"folder_b\", \"file_path\":\"file_b.txt\"}, {\"folder_path\":\"folder_c\"}]",
112
117
  interval: "year",
113
118
  user_ids: [1,2],
114
119
  group_ids: [1,2],
@@ -124,7 +129,8 @@ Files::Automation.create(
124
129
 
125
130
  * `automation` (string): Required - Automation type
126
131
  * `source` (string): Source Path
127
- * `destination` (string): Destination Path
132
+ * `destination` (string): DEPRECATED: Destination Path
133
+ * `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
128
134
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
129
135
  * `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.
130
136
  * `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
@@ -147,6 +153,7 @@ Files::Automation.update(id,
147
153
  automation: "create_folder",
148
154
  source: "source",
149
155
  destination: "destination",
156
+ destinations: "[\"folder_a/file_a.txt\", {\"folder_path\":\"folder_b\", \"file_path\":\"file_b.txt\"}, {\"folder_path\":\"folder_c\"}]",
150
157
  interval: "year",
151
158
  user_ids: [1,2],
152
159
  group_ids: [1,2],
@@ -163,7 +170,8 @@ Files::Automation.update(id,
163
170
  * `id` (int64): Required - Automation ID.
164
171
  * `automation` (string): Required - Automation type
165
172
  * `source` (string): Source Path
166
- * `destination` (string): Destination Path
173
+ * `destination` (string): DEPRECATED: Destination Path
174
+ * `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
167
175
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
168
176
  * `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.
169
177
  * `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
@@ -201,6 +209,7 @@ automation.update(
201
209
  automation: "create_folder",
202
210
  source: "source",
203
211
  destination: "destination",
212
+ destinations: "[\"folder_a/file_a.txt\", {\"folder_path\":\"folder_b\", \"file_path\":\"file_b.txt\"}, {\"folder_path\":\"folder_c\"}]",
204
213
  interval: "year",
205
214
  user_ids: [1,2],
206
215
  group_ids: [1,2],
@@ -217,7 +226,8 @@ automation.update(
217
226
  * `id` (int64): Required - Automation ID.
218
227
  * `automation` (string): Required - Automation type
219
228
  * `source` (string): Source Path
220
- * `destination` (string): Destination Path
229
+ * `destination` (string): DEPRECATED: Destination Path
230
+ * `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
221
231
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
222
232
  * `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.
223
233
  * `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
@@ -72,7 +72,7 @@ module Files
72
72
  @attributes[:source] = value
73
73
  end
74
74
 
75
- # string - Destination Path
75
+ # string - DEPRECATED: Destination Path
76
76
  def destination
77
77
  @attributes[:destination]
78
78
  end
@@ -81,6 +81,15 @@ module Files
81
81
  @attributes[:destination] = value
82
82
  end
83
83
 
84
+ # string - Destination Path
85
+ def destinations
86
+ @attributes[:destinations]
87
+ end
88
+
89
+ def destinations=(value)
90
+ @attributes[:destinations] = value
91
+ end
92
+
84
93
  # string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
85
94
  def destination_replace_from
86
95
  @attributes[:destination_replace_from]
@@ -174,7 +183,8 @@ module Files
174
183
  # Parameters:
175
184
  # automation (required) - string - Automation type
176
185
  # source - string - Source Path
177
- # destination - string - Destination Path
186
+ # destination - string - DEPRECATED: Destination Path
187
+ # destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
178
188
  # destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
179
189
  # 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.
180
190
  # interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
@@ -194,6 +204,7 @@ module Files
194
204
  raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
195
205
  raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
196
206
  raise InvalidParameterError.new("Bad parameter: destination must be an String") if params.dig(:destination) and !params.dig(:destination).is_a?(String)
207
+ raise InvalidParameterError.new("Bad parameter: destinations must be an Array") if params.dig(:destinations) and !params.dig(:destinations).is_a?(Array)
197
208
  raise InvalidParameterError.new("Bad parameter: destination_replace_from must be an String") if params.dig(:destination_replace_from) and !params.dig(:destination_replace_from).is_a?(String)
198
209
  raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params.dig(:destination_replace_to) and !params.dig(:destination_replace_to).is_a?(String)
199
210
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params.dig(:interval) and !params.dig(:interval).is_a?(String)
@@ -283,7 +294,8 @@ module Files
283
294
  # Parameters:
284
295
  # automation (required) - string - Automation type
285
296
  # source - string - Source Path
286
- # destination - string - Destination Path
297
+ # destination - string - DEPRECATED: Destination Path
298
+ # destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
287
299
  # destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
288
300
  # 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.
289
301
  # interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
@@ -299,6 +311,7 @@ module Files
299
311
  raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
300
312
  raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
301
313
  raise InvalidParameterError.new("Bad parameter: destination must be an String") if params.dig(:destination) and !params.dig(:destination).is_a?(String)
314
+ raise InvalidParameterError.new("Bad parameter: destinations must be an Array") if params.dig(:destinations) and !params.dig(:destinations).is_a?(Array)
302
315
  raise InvalidParameterError.new("Bad parameter: destination_replace_from must be an String") if params.dig(:destination_replace_from) and !params.dig(:destination_replace_from).is_a?(String)
303
316
  raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params.dig(:destination_replace_to) and !params.dig(:destination_replace_to).is_a?(String)
304
317
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params.dig(:interval) and !params.dig(:interval).is_a?(String)
@@ -319,7 +332,8 @@ module Files
319
332
  # Parameters:
320
333
  # automation (required) - string - Automation type
321
334
  # source - string - Source Path
322
- # destination - string - Destination Path
335
+ # destination - string - DEPRECATED: Destination Path
336
+ # destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
323
337
  # destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
324
338
  # 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.
325
339
  # interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
@@ -338,6 +352,7 @@ module Files
338
352
  raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
339
353
  raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
340
354
  raise InvalidParameterError.new("Bad parameter: destination must be an String") if params.dig(:destination) and !params.dig(:destination).is_a?(String)
355
+ raise InvalidParameterError.new("Bad parameter: destinations must be an Array") if params.dig(:destinations) and !params.dig(:destinations).is_a?(Array)
341
356
  raise InvalidParameterError.new("Bad parameter: destination_replace_from must be an String") if params.dig(:destination_replace_from) and !params.dig(:destination_replace_from).is_a?(String)
342
357
  raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params.dig(:destination_replace_to) and !params.dig(:destination_replace_to).is_a?(String)
343
358
  raise InvalidParameterError.new("Bad parameter: interval must be an String") if params.dig(:interval) and !params.dig(:interval).is_a?(String)
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.143
4
+ version: 1.0.144
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-27 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable