files.com 1.0.207 → 1.0.208
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/priority.md +30 -0
- data/docs/remote_server.md +0 -8
- data/lib/files.com/models/priority.rb +43 -0
- data/lib/files.com/models/remote_server.rb +0 -15
- data/lib/files.com.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 338dbd01060e2af598a844cfc78d2fd3dc08056161ac59dc5d8ac8098c678462
|
4
|
+
data.tar.gz: b3b1d00f73d4f0dd3b146c0df3472def4300478e377690b675da939a2bee988b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83629f10047b516c31d63d5d593299ba8c1432c0e11dd13d88bedb52058820a7eeb342f7089c2c2d88947d28e41999b723be1e8c2e5192551242d4b936055608
|
7
|
+
data.tar.gz: ac9673fc689b715369a25ce0d00350178b52e6d460aff78f733e37aa332d0e394eed627aa7431e1bfd534243e098201e436af7b890c9459e8e1a1ed46827f3ad
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.208
|
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
|
data/docs/remote_server.md
CHANGED
@@ -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
|
@@ -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
@@ -78,6 +78,7 @@ require "files.com/models/payment"
|
|
78
78
|
require "files.com/models/payment_line_item"
|
79
79
|
require "files.com/models/permission"
|
80
80
|
require "files.com/models/preview"
|
81
|
+
require "files.com/models/priority"
|
81
82
|
require "files.com/models/project"
|
82
83
|
require "files.com/models/public_ip_address"
|
83
84
|
require "files.com/models/public_key"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.208
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
@@ -138,6 +138,7 @@ files:
|
|
138
138
|
- docs/payment_line_item.md
|
139
139
|
- docs/permission.md
|
140
140
|
- docs/preview.md
|
141
|
+
- docs/priority.md
|
141
142
|
- docs/project.md
|
142
143
|
- docs/public_ip_address.md
|
143
144
|
- docs/public_key.md
|
@@ -215,6 +216,7 @@ files:
|
|
215
216
|
- lib/files.com/models/payment_line_item.rb
|
216
217
|
- lib/files.com/models/permission.rb
|
217
218
|
- lib/files.com/models/preview.rb
|
219
|
+
- lib/files.com/models/priority.rb
|
218
220
|
- lib/files.com/models/project.rb
|
219
221
|
- lib/files.com/models/public_ip_address.rb
|
220
222
|
- lib/files.com/models/public_key.rb
|