files.com 1.0.42 → 1.0.43

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10dc1016d21d7320dcc3d84d15dfec29a3da54d82a0baeaa953e2b3ef8ca10aa
4
- data.tar.gz: eb7264487bfd2b001cab69d03b692496eddd6f0d8f4196f4e128192a3db211df
3
+ metadata.gz: 57207586b5d641958b93e539531c3f0a2304e22649a4e9578aa712f1220d0222
4
+ data.tar.gz: 61467780f22efdda3ef7338a638fc55e0228ef60867fd06a265d4d4a9a09fd9c
5
5
  SHA512:
6
- metadata.gz: baaad039f6e58730857ac2f25494cf3a17206493eb888fb9808647af31924903cae55c7eae9919ab079d486396ab4e795bcb9822b7bfc0ac1c0417c7ac192df1
7
- data.tar.gz: 3d141b7fadb56aebe7e053bd6379d060665a7ae1987280962b5f5734612cd07c52e6428f4cb79f72e348f1016cfc0918a90e71bb9f90f49404d6a3082b5f6c13
6
+ metadata.gz: d0965c5f4fd06f13403d1e4a06e9e01a6ea0bff1b933d24489799a62a28bc5b691437a2c92232f50bd500e3046f91b9944c9c5d448780715979699dc9307c6a9
7
+ data.tar.gz: 50698a543645835718ac12cf1d35499d49e5e9a7448c8ffc89c9e750fc1845d1409592c1f3fb91af8f91ac096c672e4668552cd74c2e5627db66c19e418817e0
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.42
1
+ 1.0.43
@@ -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
@@ -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
- "b2_region": "us-west-001",
22
- "b2_bucket": "my-bucket",
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
- * `b2_region` (string): b2 region
43
- * `b2_bucket` (string): b2 Bucket name
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
- * `b2_access_key` (string): Backblaze B2 Cloud Storage access key.
54
- * `b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
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
- b2_bucket: "my-bucket",
107
- b2_region: "us-west-001",
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
- * `b2_access_key` (string): Backblaze B2 Cloud Storage access key.
123
- * `b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
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
- * `b2_bucket` (string): b2 Bucket name
137
- * `b2_region` (string): b2 region
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
- b2_bucket: "my-bucket",
161
- b2_region: "us-west-001",
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
- * `b2_access_key` (string): Backblaze B2 Cloud Storage access key.
178
- * `b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
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
- * `b2_bucket` (string): b2 Bucket name
192
- * `b2_region` (string): b2 region
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
- b2_bucket: "my-bucket",
230
- b2_region: "us-west-001",
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
- * `b2_access_key` (string): Backblaze B2 Cloud Storage access key.
247
- * `b2_secret_key` (string): Backblaze B2 Cloud Storage secret key.
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
- * `b2_bucket` (string): b2 Bucket name
261
- * `b2_region` (string): b2 region
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", :put, params, options)
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 b2_region
140
- @attributes[:b2_region]
139
+ def backblaze_b2_region
140
+ @attributes[:backblaze_b2_region]
141
141
  end
142
142
 
143
- def b2_region=(value)
144
- @attributes[:b2_region] = value
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 b2_bucket
149
- @attributes[:b2_bucket]
148
+ def backblaze_b2_bucket
149
+ @attributes[:backblaze_b2_bucket]
150
150
  end
151
151
 
152
- def b2_bucket=(value)
153
- @attributes[:b2_bucket] = value
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 b2_access_key
239
- @attributes[:b2_access_key]
238
+ def backblaze_b2_access_key
239
+ @attributes[:backblaze_b2_access_key]
240
240
  end
241
241
 
242
- def b2_access_key=(value)
243
- @attributes[:b2_access_key] = value
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 b2_secret_key
248
- @attributes[:b2_secret_key]
247
+ def backblaze_b2_secret_key
248
+ @attributes[:backblaze_b2_secret_key]
249
249
  end
250
250
 
251
- def b2_secret_key=(value)
252
- @attributes[:b2_secret_key] = value
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
- # b2_access_key - string - Backblaze B2 Cloud Storage access key.
264
- # b2_secret_key - string - Backblaze B2 Cloud Storage secret key.
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
- # b2_bucket - string - b2 Bucket name
278
- # b2_region - string - b2 region
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: b2_access_key must be an String") if params.dig(:b2_access_key) and !params.dig(:b2_access_key).is_a?(String)
294
- raise InvalidParameterError.new("Bad parameter: b2_secret_key must be an String") if params.dig(:b2_secret_key) and !params.dig(:b2_secret_key).is_a?(String)
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: b2_bucket must be an String") if params.dig(:b2_bucket) and !params.dig(:b2_bucket).is_a?(String)
308
- raise InvalidParameterError.new("Bad parameter: b2_region must be an String") if params.dig(:b2_region) and !params.dig(:b2_region).is_a?(String)
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
- # b2_access_key - string - Backblaze B2 Cloud Storage access key.
380
- # b2_secret_key - string - Backblaze B2 Cloud Storage secret key.
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
- # b2_bucket - string - b2 Bucket name
394
- # b2_region - string - b2 region
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: b2_access_key must be an String") if params.dig(:b2_access_key) and !params.dig(:b2_access_key).is_a?(String)
406
- raise InvalidParameterError.new("Bad parameter: b2_secret_key must be an String") if params.dig(:b2_secret_key) and !params.dig(:b2_secret_key).is_a?(String)
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: b2_bucket must be an String") if params.dig(:b2_bucket) and !params.dig(:b2_bucket).is_a?(String)
420
- raise InvalidParameterError.new("Bad parameter: b2_region must be an String") if params.dig(:b2_region) and !params.dig(:b2_region).is_a?(String)
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
- # b2_access_key - string - Backblaze B2 Cloud Storage access key.
437
- # b2_secret_key - string - Backblaze B2 Cloud Storage secret key.
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
- # b2_bucket - string - b2 Bucket name
451
- # b2_region - string - b2 region
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: b2_access_key must be an String") if params.dig(:b2_access_key) and !params.dig(:b2_access_key).is_a?(String)
466
- raise InvalidParameterError.new("Bad parameter: b2_secret_key must be an String") if params.dig(:b2_secret_key) and !params.dig(:b2_secret_key).is_a?(String)
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: b2_bucket must be an String") if params.dig(:b2_bucket) and !params.dig(:b2_bucket).is_a?(String)
480
- raise InvalidParameterError.new("Bad parameter: b2_region must be an String") if params.dig(:b2_region) and !params.dig(:b2_region).is_a?(String)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.42
4
+ version: 1.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com