files.com 1.0.243 → 1.0.246
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/remote_server.md +8 -0
- data/docs/sso_strategy.md +28 -0
- data/lib/files.com/errors.rb +2 -0
- data/lib/files.com/models/remote_server.rb +15 -0
- data/lib/files.com/models/sso_strategy.rb +22 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b313c7e742dc9ab342e44f312e516e62411009f61bae81ac73eca88b9754fdb
|
4
|
+
data.tar.gz: ea2ba1027d5a1c1c4bbca808969c228bd13101e13342039cff21ba710b194b0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55f3caac0e415faa567dc9fd60a7aa6fff756ed70053adb9434f878fbb43e6ccfc023d05f493607f75f4f39ef4eb79baee2109061734073058338f30fa5d5641
|
7
|
+
data.tar.gz: ee2d4869b3f5608e4cf18bde1ccf87daf8f8a4e5c9cc83f583c956a3916a807f18171b5dce2d2fd86a9790f61fdcc9557f902b3825834204812fa7f48ec3ae2a
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.246
|
data/docs/remote_server.md
CHANGED
@@ -38,6 +38,7 @@
|
|
38
38
|
"azure_blob_storage_container": "container-name",
|
39
39
|
"s3_compatible_bucket": "my-bucket",
|
40
40
|
"s3_compatible_endpoint": "mys3platform.com",
|
41
|
+
"s3_compatible_region": "us-east-1",
|
41
42
|
"s3_compatible_access_key": "",
|
42
43
|
"enable_dedicated_ips": true
|
43
44
|
}
|
@@ -77,6 +78,7 @@
|
|
77
78
|
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
78
79
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
79
80
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
81
|
+
* `s3_compatible_region` (string): S3-compatible endpoint
|
80
82
|
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
81
83
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
82
84
|
* `aws_secret_key` (string): AWS secret key.
|
@@ -154,6 +156,7 @@ Files::RemoteServer.create(
|
|
154
156
|
azure_blob_storage_container: "container-name",
|
155
157
|
s3_compatible_bucket: "my-bucket",
|
156
158
|
s3_compatible_endpoint: "mys3platform.com",
|
159
|
+
s3_compatible_region: "us-east-1",
|
157
160
|
enable_dedicated_ips: true
|
158
161
|
)
|
159
162
|
```
|
@@ -198,6 +201,7 @@ Files::RemoteServer.create(
|
|
198
201
|
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
199
202
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
200
203
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
204
|
+
* `s3_compatible_region` (string): S3-compatible endpoint
|
201
205
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
202
206
|
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
203
207
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
@@ -235,6 +239,7 @@ Files::RemoteServer.update(id,
|
|
235
239
|
azure_blob_storage_container: "container-name",
|
236
240
|
s3_compatible_bucket: "my-bucket",
|
237
241
|
s3_compatible_endpoint: "mys3platform.com",
|
242
|
+
s3_compatible_region: "us-east-1",
|
238
243
|
enable_dedicated_ips: true
|
239
244
|
)
|
240
245
|
```
|
@@ -280,6 +285,7 @@ Files::RemoteServer.update(id,
|
|
280
285
|
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
281
286
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
282
287
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
288
|
+
* `s3_compatible_region` (string): S3-compatible endpoint
|
283
289
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
284
290
|
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
285
291
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
@@ -332,6 +338,7 @@ remote_server.update(
|
|
332
338
|
azure_blob_storage_container: "container-name",
|
333
339
|
s3_compatible_bucket: "my-bucket",
|
334
340
|
s3_compatible_endpoint: "mys3platform.com",
|
341
|
+
s3_compatible_region: "us-east-1",
|
335
342
|
enable_dedicated_ips: true
|
336
343
|
)
|
337
344
|
```
|
@@ -377,6 +384,7 @@ remote_server.update(
|
|
377
384
|
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
378
385
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
379
386
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
387
|
+
* `s3_compatible_region` (string): S3-compatible endpoint
|
380
388
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
381
389
|
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
382
390
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
data/docs/sso_strategy.md
CHANGED
@@ -122,3 +122,31 @@ Files::SsoStrategy.find(id)
|
|
122
122
|
### Parameters
|
123
123
|
|
124
124
|
* `id` (int64): Required - Sso Strategy ID.
|
125
|
+
|
126
|
+
|
127
|
+
---
|
128
|
+
|
129
|
+
## Synchronize provisioning data with the SSO remote server
|
130
|
+
|
131
|
+
```
|
132
|
+
Files::SsoStrategy.sync(id)
|
133
|
+
```
|
134
|
+
|
135
|
+
### Parameters
|
136
|
+
|
137
|
+
* `id` (int64): Required - Sso Strategy ID.
|
138
|
+
|
139
|
+
|
140
|
+
---
|
141
|
+
|
142
|
+
## Synchronize provisioning data with the SSO remote server
|
143
|
+
|
144
|
+
```
|
145
|
+
sso_strategy = Files::SsoStrategy.list.first
|
146
|
+
|
147
|
+
sso_strategy.sync
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
* `id` (int64): Required - Sso Strategy ID.
|
data/lib/files.com/errors.rb
CHANGED
@@ -169,6 +169,8 @@ module Files
|
|
169
169
|
class FileLockedError < ProcessingFailureError; end
|
170
170
|
class FileNotUploadedError < ProcessingFailureError; end
|
171
171
|
class FilePendingProcessingError < ProcessingFailureError; end
|
172
|
+
class FileTooBigToDecryptError < ProcessingFailureError; end
|
173
|
+
class FileTooBigToEncryptError < ProcessingFailureError; end
|
172
174
|
class FileUploadedToWrongRegionError < ProcessingFailureError; end
|
173
175
|
class FolderLockedError < ProcessingFailureError; end
|
174
176
|
class FolderNotEmptyError < ProcessingFailureError; end
|
@@ -315,6 +315,15 @@ module Files
|
|
315
315
|
@attributes[:s3_compatible_endpoint] = value
|
316
316
|
end
|
317
317
|
|
318
|
+
# string - S3-compatible endpoint
|
319
|
+
def s3_compatible_region
|
320
|
+
@attributes[:s3_compatible_region]
|
321
|
+
end
|
322
|
+
|
323
|
+
def s3_compatible_region=(value)
|
324
|
+
@attributes[:s3_compatible_region] = value
|
325
|
+
end
|
326
|
+
|
318
327
|
# string - S3-compatible Access Key.
|
319
328
|
def s3_compatible_access_key
|
320
329
|
@attributes[:s3_compatible_access_key]
|
@@ -480,6 +489,7 @@ module Files
|
|
480
489
|
# azure_blob_storage_container - string - Azure Blob Storage Container name
|
481
490
|
# s3_compatible_bucket - string - S3-compatible Bucket name
|
482
491
|
# s3_compatible_endpoint - string - S3-compatible endpoint
|
492
|
+
# s3_compatible_region - string - S3-compatible endpoint
|
483
493
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
484
494
|
# s3_compatible_access_key - string - S3-compatible Access Key.
|
485
495
|
# s3_compatible_secret_key - string - S3-compatible secret key
|
@@ -525,6 +535,7 @@ module Files
|
|
525
535
|
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)
|
526
536
|
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)
|
527
537
|
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)
|
538
|
+
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)
|
528
539
|
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)
|
529
540
|
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)
|
530
541
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
@@ -626,6 +637,7 @@ module Files
|
|
626
637
|
# azure_blob_storage_container - string - Azure Blob Storage Container name
|
627
638
|
# s3_compatible_bucket - string - S3-compatible Bucket name
|
628
639
|
# s3_compatible_endpoint - string - S3-compatible endpoint
|
640
|
+
# s3_compatible_region - string - S3-compatible endpoint
|
629
641
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
630
642
|
# s3_compatible_access_key - string - S3-compatible Access Key.
|
631
643
|
# s3_compatible_secret_key - string - S3-compatible secret key
|
@@ -667,6 +679,7 @@ module Files
|
|
667
679
|
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)
|
668
680
|
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)
|
669
681
|
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)
|
682
|
+
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)
|
670
683
|
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)
|
671
684
|
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)
|
672
685
|
|
@@ -713,6 +726,7 @@ module Files
|
|
713
726
|
# azure_blob_storage_container - string - Azure Blob Storage Container name
|
714
727
|
# s3_compatible_bucket - string - S3-compatible Bucket name
|
715
728
|
# s3_compatible_endpoint - string - S3-compatible endpoint
|
729
|
+
# s3_compatible_region - string - S3-compatible endpoint
|
716
730
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
717
731
|
# s3_compatible_access_key - string - S3-compatible Access Key.
|
718
732
|
# s3_compatible_secret_key - string - S3-compatible secret key
|
@@ -757,6 +771,7 @@ module Files
|
|
757
771
|
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)
|
758
772
|
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)
|
759
773
|
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)
|
774
|
+
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)
|
760
775
|
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)
|
761
776
|
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)
|
762
777
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
@@ -224,6 +224,17 @@ module Files
|
|
224
224
|
@attributes[:ldap_username_field]
|
225
225
|
end
|
226
226
|
|
227
|
+
# Synchronize provisioning data with the SSO remote server
|
228
|
+
def sync(params = {})
|
229
|
+
params ||= {}
|
230
|
+
params[:id] = @attributes[:id]
|
231
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
232
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
233
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
234
|
+
|
235
|
+
Api.send_request("/sso_strategies/#{@attributes[:id]}/sync", :post, params, @options)
|
236
|
+
end
|
237
|
+
|
227
238
|
# Parameters:
|
228
239
|
# 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.
|
229
240
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -255,5 +266,16 @@ module Files
|
|
255
266
|
def self.get(id, params = {}, options = {})
|
256
267
|
find(id, params, options)
|
257
268
|
end
|
269
|
+
|
270
|
+
# Synchronize provisioning data with the SSO remote server
|
271
|
+
def self.sync(id, params = {}, options = {})
|
272
|
+
params ||= {}
|
273
|
+
params[:id] = id
|
274
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
275
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
276
|
+
|
277
|
+
response, _options = Api.send_request("/sso_strategies/#{params[:id]}/sync", :post, params, options)
|
278
|
+
response.data
|
279
|
+
end
|
258
280
|
end
|
259
281
|
end
|
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.246
|
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-
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|