files.com 1.0.272 → 1.0.275

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: 3c5c18b24419dd3e23b18a419cb386aca97bc5e5faa113a0926945704c1868c2
4
- data.tar.gz: cfbf609b263c4deecd62bc185f8d7959a0e5a8b92805012f7a04591d093b2d18
3
+ metadata.gz: ab942bf95e3e02da97d70b3bcefbd5c4ff4c87d74c9a45e23b76c9d67ecc7ce7
4
+ data.tar.gz: ebbbb074cb23883034e3c80d4c8fc3c3c32094b67f5da92420d6b7645bb9f9fb
5
5
  SHA512:
6
- metadata.gz: f0c5397194a276682561be92de240c91ecd67ebe9582d4162f3d4937fb27d08f3139a57d3fa3d432a838321117e40cc77cac527baf3623d65a52dda7ef1f91f1
7
- data.tar.gz: 4824680b6b6d236043d70fa0d2bf40087d4b43078a7588dba580fedf45b296d78b1882fcd94fbdde7ca8bac37ed5e7baaad0b2f2a820293dfc5c3795ca83ea26
6
+ metadata.gz: 356dfc75616e4dbec1543e096de363e207f6c61b8d7c61a3287bcd2fe4f1276a01868178774977906d2abc40b6746b14b3c24b5600f17488dbc1c7b44ccea0dd
7
+ data.tar.gz: f86428166d8dee9fda8e9006896bdb9901743b928e81536f1fb7dcc848acc26724498ad30c179fbaacfb33f7af43c5d06ab317473173d194e3b616baf34208d6
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.272
1
+ 1.0.275
data/docs/automation.md CHANGED
@@ -69,7 +69,6 @@
69
69
  * `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
70
70
  * `value` (object): A Hash of attributes specific to the automation type.
71
71
  * `destination` (string): DEPRECATED: Destination Path. Use `destinations` instead.
72
- * `cloned_from` (int64): Set to the ID of automation used a clone template. For
73
72
 
74
73
 
75
74
  ---
@@ -88,13 +87,13 @@ Files::Automation.list(
88
87
 
89
88
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
90
89
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
91
- * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `last_modified_at` or `disabled`.
92
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
93
- * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
94
- * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
95
- * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
96
- * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
97
- * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
90
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `disabled` or `last_modified_at`.
91
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
92
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
93
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
94
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
95
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
96
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
98
97
  * `with_deleted` (boolean): Set to true to include deleted automations in the results.
99
98
  * `automation` (string): DEPRECATED: Type of automation to filter by. Use `filter[automation]` instead.
100
99
 
@@ -128,8 +127,7 @@ Files::Automation.create(
128
127
  trigger: "realtime",
129
128
  trigger_actions: "[ \"create\" ]",
130
129
  value: "{\"limit\": \"1\"}",
131
- automation: "create_folder",
132
- cloned_from: 1
130
+ automation: "create_folder"
133
131
  )
134
132
  ```
135
133
 
@@ -152,7 +150,6 @@ Files::Automation.create(
152
150
  * `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
153
151
  * `value` (object): A Hash of attributes specific to the automation type.
154
152
  * `automation` (string): Required - Automation type
155
- * `cloned_from` (int64): Set to the ID of automation used a clone template. For
156
153
 
157
154
 
158
155
  ---
data/docs/file.md CHANGED
@@ -26,8 +26,8 @@ may places where a Ruby File object can be used.
26
26
  "id": 1,
27
27
  "status": "complete",
28
28
  "download_uri": "https://mysite.files.com/...",
29
- "type": "complete",
30
- "size": 1024
29
+ "type": "image",
30
+ "size": "large"
31
31
  }
32
32
  }
33
33
  ```
data/docs/folder.md CHANGED
@@ -28,8 +28,8 @@ Files::Dir is an alias of Files::Folder
28
28
  "id": 1,
29
29
  "status": "complete",
30
30
  "download_uri": "https://mysite.files.com/...",
31
- "type": "complete",
32
- "size": 1024
31
+ "type": "image",
32
+ "size": "large"
33
33
  }
34
34
  }
35
35
  ```
data/docs/preview.md CHANGED
@@ -7,13 +7,13 @@
7
7
  "id": 1,
8
8
  "status": "complete",
9
9
  "download_uri": "https://mysite.files.com/...",
10
- "type": "complete",
11
- "size": 1024
10
+ "type": "image",
11
+ "size": "large"
12
12
  }
13
13
  ```
14
14
 
15
15
  * `id` (int64): Preview ID
16
16
  * `status` (string): Preview status. Can be invalid, not_generated, generating, complete, or file_too_large
17
17
  * `download_uri` (string): Link to download preview
18
- * `type` (string): Preview status. Can be invalid, not_generated, generating, complete, or file_too_large
19
- * `size` (int64): Preview size
18
+ * `type` (string): Preview type. Can be image, pdf, pdf_native, video, or audio
19
+ * `size` (string): Preview size
@@ -92,6 +92,7 @@
92
92
  * `aws_secret_key` (string): AWS secret key.
93
93
  * `password` (string): Password if needed.
94
94
  * `private_key` (string): Private key if needed.
95
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
95
96
  * `ssl_certificate` (string): SSL client certificate.
96
97
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
97
98
  * `wasabi_secret_key` (string): Wasabi secret key.
@@ -180,6 +181,7 @@ Files::RemoteServer.create(
180
181
  * `aws_secret_key` (string): AWS secret key.
181
182
  * `password` (string): Password if needed.
182
183
  * `private_key` (string): Private key if needed.
184
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
183
185
  * `ssl_certificate` (string): SSL client certificate.
184
186
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
185
187
  * `wasabi_access_key` (string): Wasabi access key.
@@ -273,6 +275,7 @@ Files::RemoteServer.update(id,
273
275
  * `aws_secret_key` (string): AWS secret key.
274
276
  * `password` (string): Password if needed.
275
277
  * `private_key` (string): Private key if needed.
278
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
276
279
  * `ssl_certificate` (string): SSL client certificate.
277
280
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
278
281
  * `wasabi_access_key` (string): Wasabi access key.
@@ -381,6 +384,7 @@ remote_server.update(
381
384
  * `aws_secret_key` (string): AWS secret key.
382
385
  * `password` (string): Password if needed.
383
386
  * `private_key` (string): Private key if needed.
387
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
384
388
  * `ssl_certificate` (string): SSL client certificate.
385
389
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
386
390
  * `wasabi_access_key` (string): Wasabi access key.
@@ -150,7 +150,7 @@ module Files
150
150
  uri = URI(uri)
151
151
  Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
152
152
  request = Net::HTTP::Get.new uri
153
- request["RANGE"] = "bytes=#{range[0]}-#{range[1]}" if range
153
+ request["RANGE"] = "bytes=#{range[0]}-#{range[1]}" unless range.empty?
154
154
  http.request request do |response|
155
155
  io.fulfill_content_length(response.content_length) if io.respond_to?(:fulfill_content_length)
156
156
  response.read_body do |chunk|
@@ -207,15 +207,6 @@ module Files
207
207
  @attributes[:destination] = value
208
208
  end
209
209
 
210
- # int64 - Set to the ID of automation used a clone template. For
211
- def cloned_from
212
- @attributes[:cloned_from]
213
- end
214
-
215
- def cloned_from=(value)
216
- @attributes[:cloned_from] = value
217
- end
218
-
219
210
  # Parameters:
220
211
  # source - string - Source Path
221
212
  # destination - string - DEPRECATED: Destination Path. Use `destinations` instead.
@@ -284,13 +275,13 @@ module Files
284
275
  # Parameters:
285
276
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
286
277
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
287
- # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `last_modified_at` or `disabled`.
288
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
289
- # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
290
- # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
291
- # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
292
- # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
293
- # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
278
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `disabled` or `last_modified_at`.
279
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
280
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
281
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
282
+ # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
283
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
284
+ # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
294
285
  # with_deleted - boolean - Set to true to include deleted automations in the results.
295
286
  # automation - string - DEPRECATED: Type of automation to filter by. Use `filter[automation]` instead.
296
287
  def self.list(params = {}, options = {})
@@ -348,7 +339,6 @@ module Files
348
339
  # 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
349
340
  # value - object - A Hash of attributes specific to the automation type.
350
341
  # automation (required) - string - Automation type
351
- # cloned_from - int64 - Set to the ID of automation used a clone template. For
352
342
  def self.create(params = {}, options = {})
353
343
  raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
354
344
  raise InvalidParameterError.new("Bad parameter: destination must be an String") if params.dig(:destination) and !params.dig(:destination).is_a?(String)
@@ -366,7 +356,6 @@ module Files
366
356
  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
367
357
  raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params.dig(:value) and !params.dig(:value).is_a?(Hash)
368
358
  raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
369
- raise InvalidParameterError.new("Bad parameter: cloned_from must be an Integer") if params.dig(:cloned_from) and !params.dig(:cloned_from).is_a?(Integer)
370
359
  raise MissingParameterError.new("Parameter missing: automation") unless params.dig(:automation)
371
360
 
372
361
  response, options = Api.send_request("/automations", :post, params, options)
@@ -24,12 +24,12 @@ module Files
24
24
  @attributes[:download_uri]
25
25
  end
26
26
 
27
- # string - Preview status. Can be invalid, not_generated, generating, complete, or file_too_large
27
+ # string - Preview type. Can be image, pdf, pdf_native, video, or audio
28
28
  def type
29
29
  @attributes[:type]
30
30
  end
31
31
 
32
- # int64 - Preview size
32
+ # string - Preview size
33
33
  def size
34
34
  @attributes[:size]
35
35
  end
@@ -405,6 +405,15 @@ module Files
405
405
  @attributes[:private_key] = value
406
406
  end
407
407
 
408
+ # string - Passphrase for private key if needed.
409
+ def private_key_passphrase
410
+ @attributes[:private_key_passphrase]
411
+ end
412
+
413
+ def private_key_passphrase=(value)
414
+ @attributes[:private_key_passphrase] = value
415
+ end
416
+
408
417
  # string - SSL client certificate.
409
418
  def ssl_certificate
410
419
  @attributes[:ssl_certificate]
@@ -500,6 +509,7 @@ module Files
500
509
  # aws_secret_key - string - AWS secret key.
501
510
  # password - string - Password if needed.
502
511
  # private_key - string - Private key if needed.
512
+ # private_key_passphrase - string - Passphrase for private key if needed.
503
513
  # ssl_certificate - string - SSL client certificate.
504
514
  # google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
505
515
  # wasabi_access_key - string - Wasabi access key.
@@ -552,6 +562,7 @@ module Files
552
562
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
553
563
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
554
564
  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
565
+ raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params.dig(:private_key_passphrase) and !params.dig(:private_key_passphrase).is_a?(String)
555
566
  raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params.dig(:ssl_certificate) and !params.dig(:ssl_certificate).is_a?(String)
556
567
  raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
557
568
  raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
@@ -658,6 +669,7 @@ module Files
658
669
  # aws_secret_key - string - AWS secret key.
659
670
  # password - string - Password if needed.
660
671
  # private_key - string - Private key if needed.
672
+ # private_key_passphrase - string - Passphrase for private key if needed.
661
673
  # ssl_certificate - string - SSL client certificate.
662
674
  # google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
663
675
  # wasabi_access_key - string - Wasabi access key.
@@ -706,6 +718,7 @@ module Files
706
718
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
707
719
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
708
720
  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
721
+ raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params.dig(:private_key_passphrase) and !params.dig(:private_key_passphrase).is_a?(String)
709
722
  raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params.dig(:ssl_certificate) and !params.dig(:ssl_certificate).is_a?(String)
710
723
  raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
711
724
  raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
@@ -757,6 +770,7 @@ module Files
757
770
  # aws_secret_key - string - AWS secret key.
758
771
  # password - string - Password if needed.
759
772
  # private_key - string - Private key if needed.
773
+ # private_key_passphrase - string - Passphrase for private key if needed.
760
774
  # ssl_certificate - string - SSL client certificate.
761
775
  # google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
762
776
  # wasabi_access_key - string - Wasabi access key.
@@ -808,6 +822,7 @@ module Files
808
822
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
809
823
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
810
824
  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
825
+ raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params.dig(:private_key_passphrase) and !params.dig(:private_key_passphrase).is_a?(String)
811
826
  raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params.dig(:ssl_certificate) and !params.dig(:ssl_certificate).is_a?(String)
812
827
  raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
813
828
  raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).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.272
4
+ version: 1.0.275
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-06-07 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable