files.com 1.0.205 → 1.0.209
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/build.sh +1 -3
- data/docs/priority.md +30 -0
- data/docs/remote_server.md +0 -8
- data/docs/site.md +1 -0
- data/docs/user.md +2 -0
- data/lib/files.com/errors.rb +3 -0
- data/lib/files.com/models/priority.rb +43 -0
- data/lib/files.com/models/remote_server.rb +0 -15
- data/lib/files.com/models/user.rb +9 -0
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d06c82fb0e225793e20bec0bdd39f2c8d559de5632bbcbecf1e99c24859e04a
|
4
|
+
data.tar.gz: 02b730b1f1f91e8b666da4f4412631bc5cc7210c1518467a5b5bc8be977a3307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06046ae286bd6c45662b3a1101023e06253a34a538bc32a21cb5406052869142cd01bd461ed20f11361e3047dc6550a6de1060cee6cc161c02e07e7953ab23dd
|
7
|
+
data.tar.gz: 279632e14066db502162050640eeb79bbc6581b9f95b53981ac75b9ee7d80276cb111123941014105d2986ee15ca5aecbfb5e1b755757d3f43579b60b4d1e9d6
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.209
|
data/build.sh
CHANGED
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
|
data/docs/site.md
CHANGED
data/docs/user.md
CHANGED
@@ -41,6 +41,7 @@
|
|
41
41
|
"require_2fa": "always_require",
|
42
42
|
"active_2fa": true,
|
43
43
|
"require_password_change": true,
|
44
|
+
"password_expired": true,
|
44
45
|
"restapi_permission": true,
|
45
46
|
"self_managed": true,
|
46
47
|
"sftp_permission": true,
|
@@ -91,6 +92,7 @@
|
|
91
92
|
* `require_2fa` (string): 2FA required setting
|
92
93
|
* `active_2fa` (boolean): Is 2fa active for the user?
|
93
94
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
95
|
+
* `password_expired` (boolean): Is user's password expired?
|
94
96
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
95
97
|
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
|
96
98
|
* `sftp_permission` (boolean): Can the user access with SFTP?
|
data/lib/files.com/errors.rb
CHANGED
@@ -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,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)
|
@@ -320,6 +320,15 @@ module Files
|
|
320
320
|
@attributes[:require_password_change] = value
|
321
321
|
end
|
322
322
|
|
323
|
+
# boolean - Is user's password expired?
|
324
|
+
def password_expired
|
325
|
+
@attributes[:password_expired]
|
326
|
+
end
|
327
|
+
|
328
|
+
def password_expired=(value)
|
329
|
+
@attributes[:password_expired] = value
|
330
|
+
end
|
331
|
+
|
323
332
|
# boolean - Can this user access the REST API?
|
324
333
|
def restapi_permission
|
325
334
|
@attributes[:restapi_permission]
|
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,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.
|
4
|
+
version: 1.0.209
|
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-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -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
|