files.com 1.0.244 → 1.0.245
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/lib/files.com/models/remote_server.rb +15 -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: 4e51ac49211c7ec86182f0dfa3feefcc1de4063ded9d7a419f70b284c5120bed
|
4
|
+
data.tar.gz: d0121f52bddbcbda81319f0f9318b7fe93d7ab76d3b59c732ebd0cc2307aac8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46313c75ba8fa5cadab91119344d1aee3a1e8c9a7fc6b9e4160227a54cf0a58d1ed5a0cdf287874b1a15d2dd04a1a1595fff585e9be253e55de0d72369d69a51
|
7
|
+
data.tar.gz: a39420c7ac1802edfdc07e7d4d9a92e5b91f36bedb92800f5cbff1418111a3d97c23631c8803bb8385bfde87ed4589f900622f1df62878c1cadc0e710aca33b8
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.245
|
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
|
@@ -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)
|
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.245
|
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-02
|
11
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|