files.com 1.0.70 → 1.0.71

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: 354b517bc5f6ddc6a4755e0abc37559b06219ca42b065681e1b1d4382c9454c9
4
- data.tar.gz: 3143fda44f1cd72abc7f2de6a7756040f7c9312845ecb0aa79ae01aa121e7e01
3
+ metadata.gz: ba11ccb193f6c7ada9965b54d78719ccd41523a54c393d6ddd26dd7a95208d4d
4
+ data.tar.gz: 9ab54afdb9798cb42082ee5a8d4f832177146ef18521f101eef2f451dbbeb3e5
5
5
  SHA512:
6
- metadata.gz: 3b630b22648bb86650b8d8ecc73f7115583cb17923befb847c56174e48babc102f1f25bf378628c3e8abd577abc0c9abac1e97e26fc092cea722fad8ae4d27af
7
- data.tar.gz: ea01983e584a06a03d96636d1f1b198aa18660c377732a16d4931673aab4d90a78afbb4e4feec54e4a2e8c284c2d9f6e33d269935f59ebcbf653e9ab945c335b
6
+ metadata.gz: eebe72236cb31ad47a3a54e91236f955d879d1645eb93ce705beb2af7dea5e43d35c5532e6f025257561f8607c4eb79faad37c4f09280969de942e2a32454af7
7
+ data.tar.gz: 72f30ebfafbeca587380f4b88722a108cf8f01b6be4549cd7f03201a8a986c054e8bfb08ed9a2f03ef0073f80d0590e943e33692b142d374e1b950f7594b6708
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.70
1
+ 1.0.71
@@ -22,7 +22,10 @@
22
22
  "backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
23
23
  "backblaze_b2_bucket": "my-bucket",
24
24
  "wasabi_bucket": "us-west-1",
25
- "wasabi_region": "my-bucket"
25
+ "wasabi_region": "my-bucket",
26
+ "rackspace_username": "rackspaceuser",
27
+ "rackspace_region": "dfw",
28
+ "rackspace_container": "my-container"
26
29
  }
27
30
  ```
28
31
 
@@ -45,6 +48,9 @@
45
48
  * `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
46
49
  * `wasabi_bucket` (string): Wasabi region
47
50
  * `wasabi_region` (string): Wasabi Bucket name
51
+ * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
52
+ * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
53
+ * `rackspace_container` (string): The name of the container (top level directory) where files will sync.
48
54
  * `aws_access_key` (string): AWS Access Key.
49
55
  * `aws_secret_key` (string): AWS secret key.
50
56
  * `password` (string): Password if needed.
@@ -54,6 +60,7 @@
54
60
  * `wasabi_secret_key` (string): Wasabi secret key.
55
61
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
56
62
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
63
+ * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
57
64
 
58
65
 
59
66
  ---
@@ -109,7 +116,10 @@ Files::RemoteServer.create(
109
116
  backblaze_b2_bucket: "my-bucket",
110
117
  backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
111
118
  wasabi_bucket: "us-west-1",
112
- wasabi_region: "my-bucket"
119
+ wasabi_region: "my-bucket",
120
+ rackspace_username: "rackspaceuser",
121
+ rackspace_region: "dfw",
122
+ rackspace_container: "my-container"
113
123
  )
114
124
  ```
115
125
 
@@ -124,6 +134,7 @@ Files::RemoteServer.create(
124
134
  * `wasabi_secret_key` (string): Wasabi secret key.
125
135
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
126
136
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
137
+ * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
127
138
  * `hostname` (string): Hostname or IP address
128
139
  * `name` (string): Internal name for your reference
129
140
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -141,6 +152,9 @@ Files::RemoteServer.create(
141
152
  * `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
142
153
  * `wasabi_bucket` (string): Wasabi region
143
154
  * `wasabi_region` (string): Wasabi Bucket name
155
+ * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
156
+ * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
157
+ * `rackspace_container` (string): The name of the container (top level directory) where files will sync.
144
158
 
145
159
 
146
160
  ---
@@ -165,7 +179,10 @@ Files::RemoteServer.update(id,
165
179
  backblaze_b2_bucket: "my-bucket",
166
180
  backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
167
181
  wasabi_bucket: "us-west-1",
168
- wasabi_region: "my-bucket"
182
+ wasabi_region: "my-bucket",
183
+ rackspace_username: "rackspaceuser",
184
+ rackspace_region: "dfw",
185
+ rackspace_container: "my-container"
169
186
  )
170
187
  ```
171
188
 
@@ -181,6 +198,7 @@ Files::RemoteServer.update(id,
181
198
  * `wasabi_secret_key` (string): Wasabi secret key.
182
199
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
183
200
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
201
+ * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
184
202
  * `hostname` (string): Hostname or IP address
185
203
  * `name` (string): Internal name for your reference
186
204
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -198,6 +216,9 @@ Files::RemoteServer.update(id,
198
216
  * `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
199
217
  * `wasabi_bucket` (string): Wasabi region
200
218
  * `wasabi_region` (string): Wasabi Bucket name
219
+ * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
220
+ * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
221
+ * `rackspace_container` (string): The name of the container (top level directory) where files will sync.
201
222
 
202
223
 
203
224
  ---
@@ -237,7 +258,10 @@ remote_server.update(
237
258
  backblaze_b2_bucket: "my-bucket",
238
259
  backblaze_b2_s3_endpoint: "s3.us-west-001.backblazeb2.com",
239
260
  wasabi_bucket: "us-west-1",
240
- wasabi_region: "my-bucket"
261
+ wasabi_region: "my-bucket",
262
+ rackspace_username: "rackspaceuser",
263
+ rackspace_region: "dfw",
264
+ rackspace_container: "my-container"
241
265
  )
242
266
  ```
243
267
 
@@ -253,6 +277,7 @@ remote_server.update(
253
277
  * `wasabi_secret_key` (string): Wasabi secret key.
254
278
  * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
255
279
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
280
+ * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
256
281
  * `hostname` (string): Hostname or IP address
257
282
  * `name` (string): Internal name for your reference
258
283
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -270,6 +295,9 @@ remote_server.update(
270
295
  * `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
271
296
  * `wasabi_bucket` (string): Wasabi region
272
297
  * `wasabi_region` (string): Wasabi Bucket name
298
+ * `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
299
+ * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
300
+ * `rackspace_container` (string): The name of the container (top level directory) where files will sync.
273
301
 
274
302
 
275
303
  ---
@@ -116,7 +116,9 @@ module Files
116
116
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
117
117
 
118
118
  response, options = Api.send_request("/file_actions/begin_upload/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
119
- FilePartUpload.new(response.data, options)
119
+ response.data.map do |entity_data|
120
+ FilePartUpload.new(entity_data, options)
121
+ end
120
122
  end
121
123
  end
122
124
  end
@@ -180,6 +180,33 @@ module Files
180
180
  @attributes[:wasabi_region] = value
181
181
  end
182
182
 
183
+ # string - Rackspace username used to login to the Rackspace Cloud Control Panel.
184
+ def rackspace_username
185
+ @attributes[:rackspace_username]
186
+ end
187
+
188
+ def rackspace_username=(value)
189
+ @attributes[:rackspace_username] = value
190
+ end
191
+
192
+ # string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
193
+ def rackspace_region
194
+ @attributes[:rackspace_region]
195
+ end
196
+
197
+ def rackspace_region=(value)
198
+ @attributes[:rackspace_region] = value
199
+ end
200
+
201
+ # string - The name of the container (top level directory) where files will sync.
202
+ def rackspace_container
203
+ @attributes[:rackspace_container]
204
+ end
205
+
206
+ def rackspace_container=(value)
207
+ @attributes[:rackspace_container] = value
208
+ end
209
+
183
210
  # string - AWS Access Key.
184
211
  def aws_access_key
185
212
  @attributes[:aws_access_key]
@@ -261,6 +288,15 @@ module Files
261
288
  @attributes[:backblaze_b2_application_key] = value
262
289
  end
263
290
 
291
+ # string - Rackspace API key from the Rackspace Cloud Control Panel.
292
+ def rackspace_api_key
293
+ @attributes[:rackspace_api_key]
294
+ end
295
+
296
+ def rackspace_api_key=(value)
297
+ @attributes[:rackspace_api_key] = value
298
+ end
299
+
264
300
  # Parameters:
265
301
  # aws_access_key - string - AWS Access Key.
266
302
  # aws_secret_key - string - AWS secret key.
@@ -271,6 +307,7 @@ module Files
271
307
  # wasabi_secret_key - string - Wasabi secret key.
272
308
  # backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
273
309
  # backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
310
+ # rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
274
311
  # hostname - string - Hostname or IP address
275
312
  # name - string - Internal name for your reference
276
313
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -288,6 +325,9 @@ module Files
288
325
  # backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
289
326
  # wasabi_bucket - string - Wasabi region
290
327
  # wasabi_region - string - Wasabi Bucket name
328
+ # rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
329
+ # rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
330
+ # rackspace_container - string - The name of the container (top level directory) where files will sync.
291
331
  def update(params = {})
292
332
  params ||= {}
293
333
  params[:id] = @attributes[:id]
@@ -302,6 +342,7 @@ module Files
302
342
  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)
303
343
  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)
304
344
  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)
345
+ raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
305
346
  raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
306
347
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
307
348
  raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
@@ -319,6 +360,9 @@ module Files
319
360
  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)
320
361
  raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
321
362
  raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
363
+ raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
364
+ raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
365
+ raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
322
366
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
323
367
 
324
368
  Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options)
@@ -392,6 +436,7 @@ module Files
392
436
  # wasabi_secret_key - string - Wasabi secret key.
393
437
  # backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
394
438
  # backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
439
+ # rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
395
440
  # hostname - string - Hostname or IP address
396
441
  # name - string - Internal name for your reference
397
442
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -409,6 +454,9 @@ module Files
409
454
  # backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
410
455
  # wasabi_bucket - string - Wasabi region
411
456
  # wasabi_region - string - Wasabi Bucket name
457
+ # rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
458
+ # rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
459
+ # rackspace_container - string - The name of the container (top level directory) where files will sync.
412
460
  def self.create(params = {}, options = {})
413
461
  raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params.dig(:aws_access_key) and !params.dig(:aws_access_key).is_a?(String)
414
462
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
@@ -419,6 +467,7 @@ module Files
419
467
  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)
420
468
  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)
421
469
  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)
470
+ raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
422
471
  raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
423
472
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
424
473
  raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
@@ -436,6 +485,9 @@ module Files
436
485
  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)
437
486
  raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
438
487
  raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
488
+ raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
489
+ raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
490
+ raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
439
491
 
440
492
  response, options = Api.send_request("/remote_servers", :post, params, options)
441
493
  RemoteServer.new(response.data, options)
@@ -451,6 +503,7 @@ module Files
451
503
  # wasabi_secret_key - string - Wasabi secret key.
452
504
  # backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
453
505
  # backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
506
+ # rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
454
507
  # hostname - string - Hostname or IP address
455
508
  # name - string - Internal name for your reference
456
509
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -468,6 +521,9 @@ module Files
468
521
  # backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
469
522
  # wasabi_bucket - string - Wasabi region
470
523
  # wasabi_region - string - Wasabi Bucket name
524
+ # rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
525
+ # rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
526
+ # rackspace_container - string - The name of the container (top level directory) where files will sync.
471
527
  def self.update(id, params = {}, options = {})
472
528
  params ||= {}
473
529
  params[:id] = id
@@ -481,6 +537,7 @@ module Files
481
537
  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)
482
538
  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)
483
539
  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)
540
+ raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
484
541
  raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
485
542
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
486
543
  raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
@@ -498,6 +555,9 @@ module Files
498
555
  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)
499
556
  raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
500
557
  raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
558
+ raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
559
+ raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
560
+ raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
501
561
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
502
562
 
503
563
  response, options = Api.send_request("/remote_servers/#{params[:id]}", :patch, params, options)
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.70
4
+ version: 1.0.71
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-06-17 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday