files.com 1.0.42 → 1.0.43
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/api_key.md +0 -19
- data/docs/remote_server.md +24 -24
- data/lib/files.com/models/api_key.rb +1 -14
- data/lib/files.com/models/remote_server.rb +40 -40
- 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: 57207586b5d641958b93e539531c3f0a2304e22649a4e9578aa712f1220d0222
|
4
|
+
data.tar.gz: 61467780f22efdda3ef7338a638fc55e0228ef60867fd06a265d4d4a9a09fd9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0965c5f4fd06f13403d1e4a06e9e01a6ea0bff1b933d24489799a62a28bc5b691437a2c92232f50bd500e3046f91b9944c9c5d448780715979699dc9307c6a9
|
7
|
+
data.tar.gz: 50698a543645835718ac12cf1d35499d49e5e9a7448c8ffc89c9e750fc1845d1409592c1f3fb91af8f91ac096c672e4668552cd74c2e5627db66c19e418817e0
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.43
|
data/docs/api_key.md
CHANGED
@@ -111,25 +111,6 @@ Files::ApiKey.update_current(
|
|
111
111
|
* `expires_at` (string): Have the key expire at this date/time.
|
112
112
|
|
113
113
|
|
114
|
-
---
|
115
|
-
|
116
|
-
## Update current API key. (Requires current API connection to be using an API key.)
|
117
|
-
|
118
|
-
```
|
119
|
-
Files::ApiKey.update_current(
|
120
|
-
name: "My Key",
|
121
|
-
permission_set: "full",
|
122
|
-
expires_at: "2000-01-01T01:00:00Z"
|
123
|
-
)
|
124
|
-
```
|
125
|
-
|
126
|
-
### Parameters
|
127
|
-
|
128
|
-
* `name` (string): Internal name for key. For your reference only.
|
129
|
-
* `permission_set` (string): Leave blank, or set to `desktop_app` to restrict the key to only desktop app functions.
|
130
|
-
* `expires_at` (string): Have the key expire at this date/time.
|
131
|
-
|
132
|
-
|
133
114
|
---
|
134
115
|
|
135
116
|
## Update Api Key
|
data/docs/remote_server.md
CHANGED
@@ -18,8 +18,8 @@
|
|
18
18
|
"username": "user",
|
19
19
|
"google_cloud_storage_bucket": "my-bucket",
|
20
20
|
"google_cloud_storage_project_id": "my-project",
|
21
|
-
"
|
22
|
-
"
|
21
|
+
"backblaze_b2_region": "us-west-001",
|
22
|
+
"backblaze_b2_bucket": "my-bucket",
|
23
23
|
"wasabi_bucket": "us-west-1",
|
24
24
|
"wasabi_region": "my-bucket"
|
25
25
|
}
|
@@ -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
|
-
* `
|
42
|
+
* `backblaze_b2_region` (string): b2 region
|
43
|
+
* `backblaze_b2_bucket` (string): b2 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_access_key` (string): Backblaze B2 Cloud Storage access key.
|
54
|
+
* `backblaze_b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
|
55
55
|
|
56
56
|
|
57
57
|
---
|
@@ -103,8 +103,8 @@ Files::RemoteServer.create(
|
|
103
103
|
username: "user",
|
104
104
|
google_cloud_storage_bucket: "my-bucket",
|
105
105
|
google_cloud_storage_project_id: "my-project",
|
106
|
-
|
107
|
-
|
106
|
+
backblaze_b2_bucket: "my-bucket",
|
107
|
+
backblaze_b2_region: "us-west-001",
|
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_access_key` (string): Backblaze B2 Cloud Storage access key.
|
123
|
+
* `backblaze_b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
|
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
|
-
* `
|
137
|
-
* `
|
136
|
+
* `backblaze_b2_bucket` (string): b2 Bucket name
|
137
|
+
* `backblaze_b2_region` (string): b2 region
|
138
138
|
* `wasabi_bucket` (string): Wasabi region
|
139
139
|
* `wasabi_region` (string): Wasabi Bucket name
|
140
140
|
|
@@ -157,8 +157,8 @@ Files::RemoteServer.update(id,
|
|
157
157
|
username: "user",
|
158
158
|
google_cloud_storage_bucket: "my-bucket",
|
159
159
|
google_cloud_storage_project_id: "my-project",
|
160
|
-
|
161
|
-
|
160
|
+
backblaze_b2_bucket: "my-bucket",
|
161
|
+
backblaze_b2_region: "us-west-001",
|
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_access_key` (string): Backblaze B2 Cloud Storage access key.
|
178
|
+
* `backblaze_b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
|
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
|
-
* `
|
192
|
-
* `
|
191
|
+
* `backblaze_b2_bucket` (string): b2 Bucket name
|
192
|
+
* `backblaze_b2_region` (string): b2 region
|
193
193
|
* `wasabi_bucket` (string): Wasabi region
|
194
194
|
* `wasabi_region` (string): Wasabi Bucket name
|
195
195
|
|
@@ -226,8 +226,8 @@ remote_server.update(
|
|
226
226
|
username: "user",
|
227
227
|
google_cloud_storage_bucket: "my-bucket",
|
228
228
|
google_cloud_storage_project_id: "my-project",
|
229
|
-
|
230
|
-
|
229
|
+
backblaze_b2_bucket: "my-bucket",
|
230
|
+
backblaze_b2_region: "us-west-001",
|
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_access_key` (string): Backblaze B2 Cloud Storage access key.
|
247
|
+
* `backblaze_b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
|
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
|
-
* `
|
261
|
-
* `
|
260
|
+
* `backblaze_b2_bucket` (string): b2 Bucket name
|
261
|
+
* `backblaze_b2_region` (string): b2 region
|
262
262
|
* `wasabi_bucket` (string): Wasabi region
|
263
263
|
* `wasabi_region` (string): Wasabi Bucket name
|
264
264
|
|
@@ -198,20 +198,7 @@ module Files
|
|
198
198
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params.dig(:permission_set) and !params.dig(:permission_set).is_a?(String)
|
199
199
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params.dig(:expires_at) and !params.dig(:expires_at).is_a?(String)
|
200
200
|
|
201
|
-
response, options = Api.send_request("/api_key", :
|
202
|
-
ApiKey.new(response.data, options)
|
203
|
-
end
|
204
|
-
|
205
|
-
# Parameters:
|
206
|
-
# name - string - Internal name for key. For your reference only.
|
207
|
-
# permission_set - string - Leave blank, or set to `desktop_app` to restrict the key to only desktop app functions.
|
208
|
-
# expires_at - string - Have the key expire at this date/time.
|
209
|
-
def self.update_current(params = {}, options = {})
|
210
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
211
|
-
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params.dig(:permission_set) and !params.dig(:permission_set).is_a?(String)
|
212
|
-
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params.dig(:expires_at) and !params.dig(:expires_at).is_a?(String)
|
213
|
-
|
214
|
-
response, options = Api.send_request("/api_key", :put, params, options)
|
201
|
+
response, options = Api.send_request("/api_key", :patch, params, options)
|
215
202
|
ApiKey.new(response.data, options)
|
216
203
|
end
|
217
204
|
|
@@ -136,21 +136,21 @@ module Files
|
|
136
136
|
end
|
137
137
|
|
138
138
|
# string - b2 region
|
139
|
-
def
|
140
|
-
@attributes[:
|
139
|
+
def backblaze_b2_region
|
140
|
+
@attributes[:backblaze_b2_region]
|
141
141
|
end
|
142
142
|
|
143
|
-
def
|
144
|
-
@attributes[:
|
143
|
+
def backblaze_b2_region=(value)
|
144
|
+
@attributes[:backblaze_b2_region] = value
|
145
145
|
end
|
146
146
|
|
147
147
|
# string - b2 Bucket name
|
148
|
-
def
|
149
|
-
@attributes[:
|
148
|
+
def backblaze_b2_bucket
|
149
|
+
@attributes[:backblaze_b2_bucket]
|
150
150
|
end
|
151
151
|
|
152
|
-
def
|
153
|
-
@attributes[:
|
152
|
+
def backblaze_b2_bucket=(value)
|
153
|
+
@attributes[:backblaze_b2_bucket] = value
|
154
154
|
end
|
155
155
|
|
156
156
|
# string - Wasabi region
|
@@ -235,21 +235,21 @@ module Files
|
|
235
235
|
end
|
236
236
|
|
237
237
|
# string - Backblaze B2 Cloud Storage access key.
|
238
|
-
def
|
239
|
-
@attributes[:
|
238
|
+
def backblaze_b2_access_key
|
239
|
+
@attributes[:backblaze_b2_access_key]
|
240
240
|
end
|
241
241
|
|
242
|
-
def
|
243
|
-
@attributes[:
|
242
|
+
def backblaze_b2_access_key=(value)
|
243
|
+
@attributes[:backblaze_b2_access_key] = value
|
244
244
|
end
|
245
245
|
|
246
246
|
# string - Backblaze B2 Cloud Storage secret key.
|
247
|
-
def
|
248
|
-
@attributes[:
|
247
|
+
def backblaze_b2_secret_key
|
248
|
+
@attributes[:backblaze_b2_secret_key]
|
249
249
|
end
|
250
250
|
|
251
|
-
def
|
252
|
-
@attributes[:
|
251
|
+
def backblaze_b2_secret_key=(value)
|
252
|
+
@attributes[:backblaze_b2_secret_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_access_key - string - Backblaze B2 Cloud Storage access key.
|
264
|
+
# backblaze_b2_secret_key - string - Backblaze B2 Cloud Storage secret key.
|
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
|
-
#
|
278
|
-
#
|
277
|
+
# backblaze_b2_bucket - string - b2 Bucket name
|
278
|
+
# backblaze_b2_region - string - b2 region
|
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_access_key must be an String") if params.dig(:backblaze_b2_access_key) and !params.dig(:backblaze_b2_access_key).is_a?(String)
|
294
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_secret_key must be an String") if params.dig(:backblaze_b2_secret_key) and !params.dig(:backblaze_b2_secret_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)
|
@@ -304,8 +304,8 @@ module Files
|
|
304
304
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
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
|
-
raise InvalidParameterError.new("Bad parameter:
|
308
|
-
raise InvalidParameterError.new("Bad parameter:
|
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: backblaze_b2_region must be an String") if params.dig(:backblaze_b2_region) and !params.dig(:backblaze_b2_region).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_access_key - string - Backblaze B2 Cloud Storage access key.
|
380
|
+
# backblaze_b2_secret_key - string - Backblaze B2 Cloud Storage secret key.
|
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
|
-
#
|
394
|
-
#
|
393
|
+
# backblaze_b2_bucket - string - b2 Bucket name
|
394
|
+
# backblaze_b2_region - string - b2 region
|
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_access_key must be an String") if params.dig(:backblaze_b2_access_key) and !params.dig(:backblaze_b2_access_key).is_a?(String)
|
406
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_secret_key must be an String") if params.dig(:backblaze_b2_secret_key) and !params.dig(:backblaze_b2_secret_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)
|
@@ -416,8 +416,8 @@ module Files
|
|
416
416
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
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
|
-
raise InvalidParameterError.new("Bad parameter:
|
420
|
-
raise InvalidParameterError.new("Bad parameter:
|
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: backblaze_b2_region must be an String") if params.dig(:backblaze_b2_region) and !params.dig(:backblaze_b2_region).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_access_key - string - Backblaze B2 Cloud Storage access key.
|
437
|
+
# backblaze_b2_secret_key - string - Backblaze B2 Cloud Storage secret key.
|
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
|
-
#
|
451
|
-
#
|
450
|
+
# backblaze_b2_bucket - string - b2 Bucket name
|
451
|
+
# backblaze_b2_region - string - b2 region
|
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_access_key must be an String") if params.dig(:backblaze_b2_access_key) and !params.dig(:backblaze_b2_access_key).is_a?(String)
|
466
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_secret_key must be an String") if params.dig(:backblaze_b2_secret_key) and !params.dig(:backblaze_b2_secret_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)
|
@@ -476,8 +476,8 @@ module Files
|
|
476
476
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
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
|
-
raise InvalidParameterError.new("Bad parameter:
|
480
|
-
raise InvalidParameterError.new("Bad parameter:
|
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: backblaze_b2_region must be an String") if params.dig(:backblaze_b2_region) and !params.dig(:backblaze_b2_region).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)
|