files.com 1.1.617 → 1.1.618
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_credential.md +4 -1
- data/lib/files.com/models/remote_server_credential.rb +11 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afe9d4d6b18bbcba449858c6c92133eddcb6abc0b5e72e6d52a918e05f6c6a29
|
|
4
|
+
data.tar.gz: 156c0c0d6a5954db41879b76f979fd834d611210e8a3de47c8fe803da8a500e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4f5981d50eb9f9cc31a0bb389a3ccb0875d5765fb1e7ae4f75372aa8f62d68183a226eb27e0c793d9a3e075cc0c62e902c3d3341a1d896e347f25474244764b
|
|
7
|
+
data.tar.gz: 57ae686c9bfedd053132a77637aa72d7bc8d461229d25aeb981c0efcc0c490fda587414a08d0c566374361f0ad7c2cd2f0e29b066943c9c805379704da5329c0
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.618
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
57
57
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
58
58
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
59
|
+
* `copy_values_from_credential_id` (int64): ID of Remote Server Credential to copy omitted values from.
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
---
|
|
@@ -107,7 +108,8 @@ Files::RemoteServerCredential.create(
|
|
|
107
108
|
s3_compatible_access_key: "example",
|
|
108
109
|
username: "user",
|
|
109
110
|
wasabi_access_key: "example",
|
|
110
|
-
workspace_id: 0
|
|
111
|
+
workspace_id: 0,
|
|
112
|
+
copy_values_from_credential_id: 1
|
|
111
113
|
)
|
|
112
114
|
```
|
|
113
115
|
|
|
@@ -144,6 +146,7 @@ Files::RemoteServerCredential.create(
|
|
|
144
146
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
145
147
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
146
148
|
* `workspace_id` (int64): Workspace ID (0 for default workspace)
|
|
149
|
+
* `copy_values_from_credential_id` (int64): ID of Remote Server Credential to copy omitted values from.
|
|
147
150
|
|
|
148
151
|
|
|
149
152
|
---
|
|
@@ -306,6 +306,15 @@ module Files
|
|
|
306
306
|
@attributes[:wasabi_secret_key] = value
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
# int64 - ID of Remote Server Credential to copy omitted values from.
|
|
310
|
+
def copy_values_from_credential_id
|
|
311
|
+
@attributes[:copy_values_from_credential_id]
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
def copy_values_from_credential_id=(value)
|
|
315
|
+
@attributes[:copy_values_from_credential_id] = value
|
|
316
|
+
end
|
|
317
|
+
|
|
309
318
|
# Parameters:
|
|
310
319
|
# name - string - Internal name for your reference
|
|
311
320
|
# description - string - Internal description for your reference
|
|
@@ -473,6 +482,7 @@ module Files
|
|
|
473
482
|
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
474
483
|
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
475
484
|
# workspace_id - int64 - Workspace ID (0 for default workspace)
|
|
485
|
+
# copy_values_from_credential_id - int64 - ID of Remote Server Credential to copy omitted values from.
|
|
476
486
|
def self.create(params = {}, options = {})
|
|
477
487
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
478
488
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
@@ -505,6 +515,7 @@ module Files
|
|
|
505
515
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params[:s3_compatible_secret_key] and !params[:s3_compatible_secret_key].is_a?(String)
|
|
506
516
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params[:wasabi_secret_key] and !params[:wasabi_secret_key].is_a?(String)
|
|
507
517
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
518
|
+
raise InvalidParameterError.new("Bad parameter: copy_values_from_credential_id must be an Integer") if params[:copy_values_from_credential_id] and !params[:copy_values_from_credential_id].is_a?(Integer)
|
|
508
519
|
|
|
509
520
|
response, options = Api.send_request("/remote_server_credentials", :post, params, options)
|
|
510
521
|
RemoteServerCredential.new(response.data, options)
|
data/lib/files.com/version.rb
CHANGED