files.com 1.0.206 → 1.0.210

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e08ceccd2b0427e8ee868f98e4ca7f51e255690999e9593cb6dff7654d9b5bf0
4
- data.tar.gz: 3f5aae71deb7604072c9ee29aa77016defad30ff81f4aa87833eec749f0879f9
3
+ metadata.gz: ef010cc65726af297ea4db4cb97bd769edcd2e1feed8a7ad3760cff71e81b39f
4
+ data.tar.gz: fd8e7e408134ebfa64d087abf69d3dd46a67e503f1ded6250928598e6fc4c413
5
5
  SHA512:
6
- metadata.gz: bac8219b6d08dbe35641575bd04875c8a3d73f02dee378cce8f648deac271f6878a9df63b56fbfcacc82b661414e1574cdd8089c14054f8039914a065eefd9dc
7
- data.tar.gz: bbafe377de8b2880f70ff91738046c2e4af924fca2d2da64ae2048f04fbd063e266cb518d0e6f2fa516a51f29f228ce5722392a4b3c194978d7b0668f1370983
6
+ metadata.gz: caef4d5f3d8b1c4ade8edae39f5f3f7ed8f3bea9ad02b010d1972ff00cc3fb5c247823201f1189ba910e5463f5efa16c87e77aa9dae8e7c6b89258e044acabcf
7
+ data.tar.gz: 3d09b9f451e72d2f6a1d6e6c3f075c90ba3bb16cc5313921e80144fce66e6bcb548d75c13ff95702391f75169900f8ae96372831c3100d3eed1798481345bde5
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.206
1
+ 1.0.210
data/build.sh CHANGED
@@ -1,5 +1,3 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- bundle install
4
- bundle exec rubocop --ignore-parent-exclusion
5
- bundle exec rspec
3
+ bundle install && bundle exec rubocop --ignore-parent-exclusion && bundle exec rspec
@@ -0,0 +1,35 @@
1
+ # AutomationRun
2
+
3
+ ## Example AutomationRun Object
4
+
5
+ ```
6
+ {
7
+ "automation_id": 1,
8
+ "status": "success",
9
+ "status_messages_url": "https://www.example.com/log_file.txt"
10
+ }
11
+ ```
12
+
13
+ * `automation_id` (int64): ID of the associated Automation.
14
+ * `status` (string): The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
15
+ * `status_messages_url` (string): Link to status messages log file.
16
+
17
+
18
+ ---
19
+
20
+ ## List Automation Runs
21
+
22
+ ```
23
+ Files::AutomationRun.list(
24
+ user_id: 1,
25
+ per_page: 1,
26
+ automation_id: 1
27
+ )
28
+ ```
29
+
30
+ ### Parameters
31
+
32
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
33
+ * `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 the X-Files-Cursor-Next header.
34
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
35
+ * `automation_id` (int64): Required - ID of the associated Automation.
data/docs/priority.md ADDED
@@ -0,0 +1,30 @@
1
+ # Priority
2
+
3
+ ## Example Priority Object
4
+
5
+ ```
6
+ {
7
+ "path": "foo/bar",
8
+ "color": "pink"
9
+ }
10
+ ```
11
+
12
+ * `path` (string): The path corresponding to the priority color This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
13
+ * `color` (string): The priority color
14
+
15
+
16
+ ---
17
+
18
+ ## List Priorities
19
+
20
+ ```
21
+ Files::Priority.list(path,
22
+ per_page: 1
23
+ )
24
+ ```
25
+
26
+ ### Parameters
27
+
28
+ * `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 the X-Files-Cursor-Next header.
29
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
30
+ * `path` (string): Required - The path to query for priorities
@@ -34,7 +34,6 @@
34
34
  "azure_blob_storage_account": "storage-account-name",
35
35
  "azure_blob_storage_container": "container-name",
36
36
  "s3_compatible_bucket": "my-bucket",
37
- "s3_compatible_region": "us-east-1",
38
37
  "s3_compatible_endpoint": "mys3platform.com",
39
38
  "enable_dedicated_ips": true
40
39
  }
@@ -70,7 +69,6 @@
70
69
  * `azure_blob_storage_account` (string): Azure Blob Storage Account name
71
70
  * `azure_blob_storage_container` (string): Azure Blob Storage Container name
72
71
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
73
- * `s3_compatible_region` (string): S3-compatible Bucket name
74
72
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
75
73
  * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
76
74
  * `aws_access_key` (string): AWS Access Key.
@@ -150,7 +148,6 @@ Files::RemoteServer.create(
150
148
  azure_blob_storage_account: "storage-account-name",
151
149
  azure_blob_storage_container: "container-name",
152
150
  s3_compatible_bucket: "my-bucket",
153
- s3_compatible_region: "us-east-1",
154
151
  s3_compatible_endpoint: "mys3platform.com",
155
152
  enable_dedicated_ips: true
156
153
  )
@@ -195,7 +192,6 @@ Files::RemoteServer.create(
195
192
  * `azure_blob_storage_account` (string): Azure Blob Storage Account name
196
193
  * `azure_blob_storage_container` (string): Azure Blob Storage Container name
197
194
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
198
- * `s3_compatible_region` (string): S3-compatible Bucket name
199
195
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
200
196
  * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
201
197
  * `s3_compatible_access_key` (string): S3-compatible access key
@@ -233,7 +229,6 @@ Files::RemoteServer.update(id,
233
229
  azure_blob_storage_account: "storage-account-name",
234
230
  azure_blob_storage_container: "container-name",
235
231
  s3_compatible_bucket: "my-bucket",
236
- s3_compatible_region: "us-east-1",
237
232
  s3_compatible_endpoint: "mys3platform.com",
238
233
  enable_dedicated_ips: true
239
234
  )
@@ -279,7 +274,6 @@ Files::RemoteServer.update(id,
279
274
  * `azure_blob_storage_account` (string): Azure Blob Storage Account name
280
275
  * `azure_blob_storage_container` (string): Azure Blob Storage Container name
281
276
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
282
- * `s3_compatible_region` (string): S3-compatible Bucket name
283
277
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
284
278
  * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
285
279
  * `s3_compatible_access_key` (string): S3-compatible access key
@@ -332,7 +326,6 @@ remote_server.update(
332
326
  azure_blob_storage_account: "storage-account-name",
333
327
  azure_blob_storage_container: "container-name",
334
328
  s3_compatible_bucket: "my-bucket",
335
- s3_compatible_region: "us-east-1",
336
329
  s3_compatible_endpoint: "mys3platform.com",
337
330
  enable_dedicated_ips: true
338
331
  )
@@ -378,7 +371,6 @@ remote_server.update(
378
371
  * `azure_blob_storage_account` (string): Azure Blob Storage Account name
379
372
  * `azure_blob_storage_container` (string): Azure Blob Storage Container name
380
373
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
381
- * `s3_compatible_region` (string): S3-compatible Bucket name
382
374
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
383
375
  * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
384
376
  * `s3_compatible_access_key` (string): S3-compatible access key
@@ -191,6 +191,9 @@ module Files
191
191
  class TooManyLoginAttemptsError < RateLimitedError; end
192
192
  class TooManyRequestsError < RateLimitedError; end
193
193
 
194
+ class ServiceUnavailableError < APIError; end
195
+ class UploadsUnavailableError < ServiceUnavailableError; end
196
+
194
197
  class SiteConfigurationError < APIError; end
195
198
  class AccountAlreadyExistsError < SiteConfigurationError; end
196
199
  class AccountOverdueError < SiteConfigurationError; end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class AutomationRun
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - ID of the associated Automation.
13
+ def automation_id
14
+ @attributes[:automation_id]
15
+ end
16
+
17
+ # string - The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
18
+ def status
19
+ @attributes[:status]
20
+ end
21
+
22
+ # string - Link to status messages log file.
23
+ def status_messages_url
24
+ @attributes[:status_messages_url]
25
+ end
26
+
27
+ # Parameters:
28
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
29
+ # 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 the X-Files-Cursor-Next header.
30
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
31
+ # automation_id (required) - int64 - ID of the associated Automation.
32
+ def self.list(params = {}, options = {})
33
+ raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
34
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
35
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
36
+ raise InvalidParameterError.new("Bad parameter: automation_id must be an Integer") if params.dig(:automation_id) and !params.dig(:automation_id).is_a?(Integer)
37
+ raise MissingParameterError.new("Parameter missing: automation_id") unless params.dig(:automation_id)
38
+
39
+ List.new(AutomationRun, params) do
40
+ Api.send_request("/automation_runs", :get, params, options)
41
+ end
42
+ end
43
+
44
+ def self.all(params = {}, options = {})
45
+ list(params, options)
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class Priority
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - The path corresponding to the priority color This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
13
+ def path
14
+ @attributes[:path]
15
+ end
16
+
17
+ # string - The priority color
18
+ def color
19
+ @attributes[:color]
20
+ end
21
+
22
+ # Parameters:
23
+ # 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 the X-Files-Cursor-Next header.
24
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
25
+ # path (required) - string - The path to query for priorities
26
+ def self.list(path, params = {}, options = {})
27
+ params ||= {}
28
+ params[:path] = path
29
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
30
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
31
+ raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
32
+ raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
33
+
34
+ List.new(Priority, params) do
35
+ Api.send_request("/priorities", :get, params, options)
36
+ end
37
+ end
38
+
39
+ def self.all(path, params = {}, options = {})
40
+ list(path, params, options)
41
+ end
42
+ end
43
+ end
@@ -279,15 +279,6 @@ module Files
279
279
  @attributes[:s3_compatible_bucket] = value
280
280
  end
281
281
 
282
- # string - S3-compatible Bucket name
283
- def s3_compatible_region
284
- @attributes[:s3_compatible_region]
285
- end
286
-
287
- def s3_compatible_region=(value)
288
- @attributes[:s3_compatible_region] = value
289
- end
290
-
291
282
  # string - S3-compatible endpoint
292
283
  def s3_compatible_endpoint
293
284
  @attributes[:s3_compatible_endpoint]
@@ -479,7 +470,6 @@ module Files
479
470
  # azure_blob_storage_account - string - Azure Blob Storage Account name
480
471
  # azure_blob_storage_container - string - Azure Blob Storage Container name
481
472
  # s3_compatible_bucket - string - S3-compatible Bucket name
482
- # s3_compatible_region - string - S3-compatible Bucket name
483
473
  # s3_compatible_endpoint - string - S3-compatible endpoint
484
474
  # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
485
475
  # s3_compatible_access_key - string - S3-compatible access key
@@ -525,7 +515,6 @@ module Files
525
515
  raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params.dig(:azure_blob_storage_account) and !params.dig(:azure_blob_storage_account).is_a?(String)
526
516
  raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params.dig(:azure_blob_storage_container) and !params.dig(:azure_blob_storage_container).is_a?(String)
527
517
  raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params.dig(:s3_compatible_bucket) and !params.dig(:s3_compatible_bucket).is_a?(String)
528
- raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params.dig(:s3_compatible_region) and !params.dig(:s3_compatible_region).is_a?(String)
529
518
  raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params.dig(:s3_compatible_endpoint) and !params.dig(:s3_compatible_endpoint).is_a?(String)
530
519
  raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params.dig(:s3_compatible_access_key) and !params.dig(:s3_compatible_access_key).is_a?(String)
531
520
  raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params.dig(:s3_compatible_secret_key) and !params.dig(:s3_compatible_secret_key).is_a?(String)
@@ -627,7 +616,6 @@ module Files
627
616
  # azure_blob_storage_account - string - Azure Blob Storage Account name
628
617
  # azure_blob_storage_container - string - Azure Blob Storage Container name
629
618
  # s3_compatible_bucket - string - S3-compatible Bucket name
630
- # s3_compatible_region - string - S3-compatible Bucket name
631
619
  # s3_compatible_endpoint - string - S3-compatible endpoint
632
620
  # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
633
621
  # s3_compatible_access_key - string - S3-compatible access key
@@ -669,7 +657,6 @@ module Files
669
657
  raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params.dig(:azure_blob_storage_account) and !params.dig(:azure_blob_storage_account).is_a?(String)
670
658
  raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params.dig(:azure_blob_storage_container) and !params.dig(:azure_blob_storage_container).is_a?(String)
671
659
  raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params.dig(:s3_compatible_bucket) and !params.dig(:s3_compatible_bucket).is_a?(String)
672
- raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params.dig(:s3_compatible_region) and !params.dig(:s3_compatible_region).is_a?(String)
673
660
  raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params.dig(:s3_compatible_endpoint) and !params.dig(:s3_compatible_endpoint).is_a?(String)
674
661
  raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params.dig(:s3_compatible_access_key) and !params.dig(:s3_compatible_access_key).is_a?(String)
675
662
  raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params.dig(:s3_compatible_secret_key) and !params.dig(:s3_compatible_secret_key).is_a?(String)
@@ -716,7 +703,6 @@ module Files
716
703
  # azure_blob_storage_account - string - Azure Blob Storage Account name
717
704
  # azure_blob_storage_container - string - Azure Blob Storage Container name
718
705
  # s3_compatible_bucket - string - S3-compatible Bucket name
719
- # s3_compatible_region - string - S3-compatible Bucket name
720
706
  # s3_compatible_endpoint - string - S3-compatible endpoint
721
707
  # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
722
708
  # s3_compatible_access_key - string - S3-compatible access key
@@ -761,7 +747,6 @@ module Files
761
747
  raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params.dig(:azure_blob_storage_account) and !params.dig(:azure_blob_storage_account).is_a?(String)
762
748
  raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params.dig(:azure_blob_storage_container) and !params.dig(:azure_blob_storage_container).is_a?(String)
763
749
  raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params.dig(:s3_compatible_bucket) and !params.dig(:s3_compatible_bucket).is_a?(String)
764
- raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params.dig(:s3_compatible_region) and !params.dig(:s3_compatible_region).is_a?(String)
765
750
  raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params.dig(:s3_compatible_endpoint) and !params.dig(:s3_compatible_endpoint).is_a?(String)
766
751
  raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params.dig(:s3_compatible_access_key) and !params.dig(:s3_compatible_access_key).is_a?(String)
767
752
  raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params.dig(:s3_compatible_secret_key) and !params.dig(:s3_compatible_secret_key).is_a?(String)
data/lib/files.com.rb CHANGED
@@ -37,6 +37,7 @@ require "files.com/models/app"
37
37
  require "files.com/models/as2_key"
38
38
  require "files.com/models/auto"
39
39
  require "files.com/models/automation"
40
+ require "files.com/models/automation_run"
40
41
  require "files.com/models/bandwidth_snapshot"
41
42
  require "files.com/models/behavior"
42
43
  require "files.com/models/bundle"
@@ -78,6 +79,7 @@ require "files.com/models/payment"
78
79
  require "files.com/models/payment_line_item"
79
80
  require "files.com/models/permission"
80
81
  require "files.com/models/preview"
82
+ require "files.com/models/priority"
81
83
  require "files.com/models/project"
82
84
  require "files.com/models/public_ip_address"
83
85
  require "files.com/models/public_key"
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.206
4
+ version: 1.0.210
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-09-03 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -96,6 +96,7 @@ files:
96
96
  - docs/as2_key.md
97
97
  - docs/auto.md
98
98
  - docs/automation.md
99
+ - docs/automation_run.md
99
100
  - docs/bandwidth_snapshot.md
100
101
  - docs/behavior.md
101
102
  - docs/bundle.md
@@ -138,6 +139,7 @@ files:
138
139
  - docs/payment_line_item.md
139
140
  - docs/permission.md
140
141
  - docs/preview.md
142
+ - docs/priority.md
141
143
  - docs/project.md
142
144
  - docs/public_ip_address.md
143
145
  - docs/public_key.md
@@ -172,6 +174,7 @@ files:
172
174
  - lib/files.com/models/as2_key.rb
173
175
  - lib/files.com/models/auto.rb
174
176
  - lib/files.com/models/automation.rb
177
+ - lib/files.com/models/automation_run.rb
175
178
  - lib/files.com/models/bandwidth_snapshot.rb
176
179
  - lib/files.com/models/behavior.rb
177
180
  - lib/files.com/models/bundle.rb
@@ -215,6 +218,7 @@ files:
215
218
  - lib/files.com/models/payment_line_item.rb
216
219
  - lib/files.com/models/permission.rb
217
220
  - lib/files.com/models/preview.rb
221
+ - lib/files.com/models/priority.rb
218
222
  - lib/files.com/models/project.rb
219
223
  - lib/files.com/models/public_ip_address.rb
220
224
  - lib/files.com/models/public_key.rb