files.com 1.0.45 → 1.0.46
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/docs/remote_server.md +20 -20
- data/lib/files.com/models/remote_server.rb +37 -37
- 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: e2586721582cad1d4d26e6810a89aa572ba83459769d17f01b451a41cf573125
|
4
|
+
data.tar.gz: 15bb7c419a0da849c3a63fbdb3e5215ac580fd2e9d0575474758861af16681a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4143de2a40ba6833b1ef69a77f99c4276a11702e39d1019bd200a1461108fd874c8ff3ec4015030376088a04c7312abe0a0518763158910854790bb24ed3014
|
7
|
+
data.tar.gz: 97af2c5a3e862ffba254fc58d1510ea3f60daf3aac77d7d9a3435170ba2616471b1215c55ba7781b4f5fbd6ad0dff1dcc2da3e849991a1ce3a1381b57a1678d0
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.46
|
data/docs/remote_server.md
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
"username": "user",
|
19
19
|
"google_cloud_storage_bucket": "my-bucket",
|
20
20
|
"google_cloud_storage_project_id": "my-project",
|
21
|
-
"
|
21
|
+
"backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
|
22
22
|
"backblaze_b2_bucket": "my-bucket",
|
23
23
|
"wasabi_bucket": "us-west-1",
|
24
24
|
"wasabi_region": "my-bucket"
|
@@ -39,8 +39,8 @@
|
|
39
39
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
40
40
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
41
41
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
42
|
-
* `
|
43
|
-
* `backblaze_b2_bucket` (string):
|
42
|
+
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
43
|
+
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
44
44
|
* `wasabi_bucket` (string): Wasabi region
|
45
45
|
* `wasabi_region` (string): Wasabi Bucket name
|
46
46
|
* `aws_access_key` (string): AWS Access Key.
|
@@ -50,8 +50,8 @@
|
|
50
50
|
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
51
51
|
* `wasabi_access_key` (string): Wasabi access key.
|
52
52
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
53
|
-
* `
|
54
|
-
* `
|
53
|
+
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
54
|
+
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
55
55
|
|
56
56
|
|
57
57
|
---
|
@@ -104,7 +104,7 @@ Files::RemoteServer.create(
|
|
104
104
|
google_cloud_storage_bucket: "my-bucket",
|
105
105
|
google_cloud_storage_project_id: "my-project",
|
106
106
|
backblaze_b2_bucket: "my-bucket",
|
107
|
-
|
107
|
+
backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
|
108
108
|
wasabi_bucket: "us-west-1",
|
109
109
|
wasabi_region: "my-bucket"
|
110
110
|
)
|
@@ -119,8 +119,8 @@ Files::RemoteServer.create(
|
|
119
119
|
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
120
120
|
* `wasabi_access_key` (string): Wasabi access key.
|
121
121
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
122
|
-
* `
|
123
|
-
* `
|
122
|
+
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
123
|
+
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
124
124
|
* `hostname` (string): Hostname or IP address
|
125
125
|
* `name` (string): Internal name for your reference
|
126
126
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -133,8 +133,8 @@ Files::RemoteServer.create(
|
|
133
133
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
134
134
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
135
135
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
136
|
-
* `backblaze_b2_bucket` (string):
|
137
|
-
* `
|
136
|
+
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
137
|
+
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
138
138
|
* `wasabi_bucket` (string): Wasabi region
|
139
139
|
* `wasabi_region` (string): Wasabi Bucket name
|
140
140
|
|
@@ -158,7 +158,7 @@ Files::RemoteServer.update(id,
|
|
158
158
|
google_cloud_storage_bucket: "my-bucket",
|
159
159
|
google_cloud_storage_project_id: "my-project",
|
160
160
|
backblaze_b2_bucket: "my-bucket",
|
161
|
-
|
161
|
+
backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
|
162
162
|
wasabi_bucket: "us-west-1",
|
163
163
|
wasabi_region: "my-bucket"
|
164
164
|
)
|
@@ -174,8 +174,8 @@ Files::RemoteServer.update(id,
|
|
174
174
|
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
175
175
|
* `wasabi_access_key` (string): Wasabi access key.
|
176
176
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
177
|
-
* `
|
178
|
-
* `
|
177
|
+
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
178
|
+
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
179
179
|
* `hostname` (string): Hostname or IP address
|
180
180
|
* `name` (string): Internal name for your reference
|
181
181
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -188,8 +188,8 @@ Files::RemoteServer.update(id,
|
|
188
188
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
189
189
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
190
190
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
191
|
-
* `backblaze_b2_bucket` (string):
|
192
|
-
* `
|
191
|
+
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
192
|
+
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
193
193
|
* `wasabi_bucket` (string): Wasabi region
|
194
194
|
* `wasabi_region` (string): Wasabi Bucket name
|
195
195
|
|
@@ -227,7 +227,7 @@ remote_server.update(
|
|
227
227
|
google_cloud_storage_bucket: "my-bucket",
|
228
228
|
google_cloud_storage_project_id: "my-project",
|
229
229
|
backblaze_b2_bucket: "my-bucket",
|
230
|
-
|
230
|
+
backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
|
231
231
|
wasabi_bucket: "us-west-1",
|
232
232
|
wasabi_region: "my-bucket"
|
233
233
|
)
|
@@ -243,8 +243,8 @@ remote_server.update(
|
|
243
243
|
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
244
244
|
* `wasabi_access_key` (string): Wasabi access key.
|
245
245
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
246
|
-
* `
|
247
|
-
* `
|
246
|
+
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
247
|
+
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
248
248
|
* `hostname` (string): Hostname or IP address
|
249
249
|
* `name` (string): Internal name for your reference
|
250
250
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -257,8 +257,8 @@ remote_server.update(
|
|
257
257
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
258
258
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
259
259
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
260
|
-
* `backblaze_b2_bucket` (string):
|
261
|
-
* `
|
260
|
+
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
261
|
+
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
262
262
|
* `wasabi_bucket` (string): Wasabi region
|
263
263
|
* `wasabi_region` (string): Wasabi Bucket name
|
264
264
|
|
@@ -135,16 +135,16 @@ module Files
|
|
135
135
|
@attributes[:google_cloud_storage_project_id] = value
|
136
136
|
end
|
137
137
|
|
138
|
-
# string -
|
139
|
-
def
|
140
|
-
@attributes[:
|
138
|
+
# string - Backblaze B2 Cloud Storage S3 Endpoint
|
139
|
+
def backblaze_b2_s3_endpoint
|
140
|
+
@attributes[:backblaze_b2_s3_endpoint]
|
141
141
|
end
|
142
142
|
|
143
|
-
def
|
144
|
-
@attributes[:
|
143
|
+
def backblaze_b2_s3_endpoint=(value)
|
144
|
+
@attributes[:backblaze_b2_s3_endpoint] = value
|
145
145
|
end
|
146
146
|
|
147
|
-
# string -
|
147
|
+
# string - Backblaze B2 Cloud Storage Bucket name
|
148
148
|
def backblaze_b2_bucket
|
149
149
|
@attributes[:backblaze_b2_bucket]
|
150
150
|
end
|
@@ -234,22 +234,22 @@ module Files
|
|
234
234
|
@attributes[:wasabi_secret_key] = value
|
235
235
|
end
|
236
236
|
|
237
|
-
# string - Backblaze B2 Cloud Storage
|
238
|
-
def
|
239
|
-
@attributes[:
|
237
|
+
# string - Backblaze B2 Cloud Storage keyID.
|
238
|
+
def backblaze_b2_key_id
|
239
|
+
@attributes[:backblaze_b2_key_id]
|
240
240
|
end
|
241
241
|
|
242
|
-
def
|
243
|
-
@attributes[:
|
242
|
+
def backblaze_b2_key_id=(value)
|
243
|
+
@attributes[:backblaze_b2_key_id] = value
|
244
244
|
end
|
245
245
|
|
246
|
-
# string - Backblaze B2 Cloud Storage
|
247
|
-
def
|
248
|
-
@attributes[:
|
246
|
+
# string - Backblaze B2 Cloud Storage applicationKey.
|
247
|
+
def backblaze_b2_application_key
|
248
|
+
@attributes[:backblaze_b2_application_key]
|
249
249
|
end
|
250
250
|
|
251
|
-
def
|
252
|
-
@attributes[:
|
251
|
+
def backblaze_b2_application_key=(value)
|
252
|
+
@attributes[:backblaze_b2_application_key] = value
|
253
253
|
end
|
254
254
|
|
255
255
|
# Parameters:
|
@@ -260,8 +260,8 @@ module Files
|
|
260
260
|
# google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
261
261
|
# wasabi_access_key - string - Wasabi access key.
|
262
262
|
# wasabi_secret_key - string - Wasabi secret key.
|
263
|
-
#
|
264
|
-
#
|
263
|
+
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
264
|
+
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
265
265
|
# hostname - string - Hostname or IP address
|
266
266
|
# name - string - Internal name for your reference
|
267
267
|
# max_connections - integer - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -274,8 +274,8 @@ module Files
|
|
274
274
|
# username - string - Remote server username. Not needed for S3 buckets.
|
275
275
|
# google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
276
276
|
# google_cloud_storage_project_id - string - Google Cloud Project ID
|
277
|
-
# backblaze_b2_bucket - string -
|
278
|
-
#
|
277
|
+
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage Bucket name
|
278
|
+
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
279
279
|
# wasabi_bucket - string - Wasabi region
|
280
280
|
# wasabi_region - string - Wasabi Bucket name
|
281
281
|
def update(params = {})
|
@@ -290,8 +290,8 @@ module Files
|
|
290
290
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
|
291
291
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
|
292
292
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
293
|
-
raise InvalidParameterError.new("Bad parameter:
|
294
|
-
raise InvalidParameterError.new("Bad parameter:
|
293
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
294
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
295
295
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
296
296
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
297
297
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -305,7 +305,7 @@ module Files
|
|
305
305
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params.dig(:google_cloud_storage_bucket) and !params.dig(:google_cloud_storage_bucket).is_a?(String)
|
306
306
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params.dig(:google_cloud_storage_project_id) and !params.dig(:google_cloud_storage_project_id).is_a?(String)
|
307
307
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params.dig(:backblaze_b2_bucket) and !params.dig(:backblaze_b2_bucket).is_a?(String)
|
308
|
-
raise InvalidParameterError.new("Bad parameter:
|
308
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
309
309
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
310
310
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
311
311
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
@@ -376,8 +376,8 @@ module Files
|
|
376
376
|
# google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
377
377
|
# wasabi_access_key - string - Wasabi access key.
|
378
378
|
# wasabi_secret_key - string - Wasabi secret key.
|
379
|
-
#
|
380
|
-
#
|
379
|
+
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
380
|
+
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
381
381
|
# hostname - string - Hostname or IP address
|
382
382
|
# name - string - Internal name for your reference
|
383
383
|
# max_connections - integer - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -390,8 +390,8 @@ module Files
|
|
390
390
|
# username - string - Remote server username. Not needed for S3 buckets.
|
391
391
|
# google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
392
392
|
# google_cloud_storage_project_id - string - Google Cloud Project ID
|
393
|
-
# backblaze_b2_bucket - string -
|
394
|
-
#
|
393
|
+
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage Bucket name
|
394
|
+
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
395
395
|
# wasabi_bucket - string - Wasabi region
|
396
396
|
# wasabi_region - string - Wasabi Bucket name
|
397
397
|
def self.create(params = {}, options = {})
|
@@ -402,8 +402,8 @@ module Files
|
|
402
402
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
|
403
403
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
|
404
404
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
405
|
-
raise InvalidParameterError.new("Bad parameter:
|
406
|
-
raise InvalidParameterError.new("Bad parameter:
|
405
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
406
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
407
407
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
408
408
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
409
409
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -417,7 +417,7 @@ module Files
|
|
417
417
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params.dig(:google_cloud_storage_bucket) and !params.dig(:google_cloud_storage_bucket).is_a?(String)
|
418
418
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params.dig(:google_cloud_storage_project_id) and !params.dig(:google_cloud_storage_project_id).is_a?(String)
|
419
419
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params.dig(:backblaze_b2_bucket) and !params.dig(:backblaze_b2_bucket).is_a?(String)
|
420
|
-
raise InvalidParameterError.new("Bad parameter:
|
420
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
421
421
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
422
422
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
423
423
|
|
@@ -433,8 +433,8 @@ module Files
|
|
433
433
|
# google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
434
434
|
# wasabi_access_key - string - Wasabi access key.
|
435
435
|
# wasabi_secret_key - string - Wasabi secret key.
|
436
|
-
#
|
437
|
-
#
|
436
|
+
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
437
|
+
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
438
438
|
# hostname - string - Hostname or IP address
|
439
439
|
# name - string - Internal name for your reference
|
440
440
|
# max_connections - integer - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -447,8 +447,8 @@ module Files
|
|
447
447
|
# username - string - Remote server username. Not needed for S3 buckets.
|
448
448
|
# google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
449
449
|
# google_cloud_storage_project_id - string - Google Cloud Project ID
|
450
|
-
# backblaze_b2_bucket - string -
|
451
|
-
#
|
450
|
+
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage Bucket name
|
451
|
+
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
452
452
|
# wasabi_bucket - string - Wasabi region
|
453
453
|
# wasabi_region - string - Wasabi Bucket name
|
454
454
|
def self.update(id, params = {}, options = {})
|
@@ -462,8 +462,8 @@ module Files
|
|
462
462
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
|
463
463
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
|
464
464
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
465
|
-
raise InvalidParameterError.new("Bad parameter:
|
466
|
-
raise InvalidParameterError.new("Bad parameter:
|
465
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
466
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
467
467
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
468
468
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
469
469
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -477,7 +477,7 @@ module Files
|
|
477
477
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params.dig(:google_cloud_storage_bucket) and !params.dig(:google_cloud_storage_bucket).is_a?(String)
|
478
478
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params.dig(:google_cloud_storage_project_id) and !params.dig(:google_cloud_storage_project_id).is_a?(String)
|
479
479
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params.dig(:backblaze_b2_bucket) and !params.dig(:backblaze_b2_bucket).is_a?(String)
|
480
|
-
raise InvalidParameterError.new("Bad parameter:
|
480
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
481
481
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
482
482
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
483
483
|
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.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|