files.com 1.0.71 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/remote_server.md +25 -4
- data/lib/files.com/models/remote_server.rb +54 -0
- 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: 5397e4d501363c18da150487abd53f51c5598e1164c72f6fc931b889e30e369b
|
|
4
|
+
data.tar.gz: 86bd4ab54c0414bd15c193b5d1edaeafe2ae4a8941bf45264f510a0d876c6a8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1dbbc3649577ee65f36d4bb1447b7151cd82c8a27bc90927cede2528fcbc74e46f3c9af5dcd55ddf4a92653b9daac4cc5301ea3aa9edff005398efc7c7d7abcf
|
|
7
|
+
data.tar.gz: cdf2076851cf376f29f2970dae6afcdb0a4fbb98e5ca83ccbf50e8bfed8524a96cac5551a435ed17ef1b99a66122199b873a190766b88971e53fcd1dae184f14
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.72
|
data/docs/remote_server.md
CHANGED
|
@@ -25,7 +25,11 @@
|
|
|
25
25
|
"wasabi_region": "my-bucket",
|
|
26
26
|
"rackspace_username": "rackspaceuser",
|
|
27
27
|
"rackspace_region": "dfw",
|
|
28
|
-
"rackspace_container": "my-container"
|
|
28
|
+
"rackspace_container": "my-container",
|
|
29
|
+
"auth_setup_link": "auth/:provider",
|
|
30
|
+
"auth_status": "in_setup",
|
|
31
|
+
"auth_account_name": "me@example.com",
|
|
32
|
+
"one_drive_account_type": "personnel"
|
|
29
33
|
}
|
|
30
34
|
```
|
|
31
35
|
|
|
@@ -51,6 +55,10 @@
|
|
|
51
55
|
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
52
56
|
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
53
57
|
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
|
58
|
+
* `auth_setup_link` (string): Returns link to login with an Oauth provider
|
|
59
|
+
* `auth_status` (string): Either `in_setup` or `complete`
|
|
60
|
+
* `auth_account_name` (string): Describes the authorized account
|
|
61
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
|
54
62
|
* `aws_access_key` (string): AWS Access Key.
|
|
55
63
|
* `aws_secret_key` (string): AWS secret key.
|
|
56
64
|
* `password` (string): Password if needed.
|
|
@@ -61,6 +69,7 @@
|
|
|
61
69
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
|
62
70
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
|
63
71
|
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
|
72
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
|
64
73
|
|
|
65
74
|
|
|
66
75
|
---
|
|
@@ -100,6 +109,7 @@ Files::RemoteServer.find(id)
|
|
|
100
109
|
|
|
101
110
|
```
|
|
102
111
|
Files::RemoteServer.create(
|
|
112
|
+
reset_authentication: true,
|
|
103
113
|
hostname: "remote-server.com",
|
|
104
114
|
name: "My Remote server",
|
|
105
115
|
max_connections: 1,
|
|
@@ -119,7 +129,8 @@ Files::RemoteServer.create(
|
|
|
119
129
|
wasabi_region: "my-bucket",
|
|
120
130
|
rackspace_username: "rackspaceuser",
|
|
121
131
|
rackspace_region: "dfw",
|
|
122
|
-
rackspace_container: "my-container"
|
|
132
|
+
rackspace_container: "my-container",
|
|
133
|
+
one_drive_account_type: "personnel"
|
|
123
134
|
)
|
|
124
135
|
```
|
|
125
136
|
|
|
@@ -135,6 +146,7 @@ Files::RemoteServer.create(
|
|
|
135
146
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
|
136
147
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
|
137
148
|
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
|
149
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
|
138
150
|
* `hostname` (string): Hostname or IP address
|
|
139
151
|
* `name` (string): Internal name for your reference
|
|
140
152
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
@@ -155,6 +167,7 @@ Files::RemoteServer.create(
|
|
|
155
167
|
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
156
168
|
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
157
169
|
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
|
170
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
|
158
171
|
|
|
159
172
|
|
|
160
173
|
---
|
|
@@ -163,6 +176,7 @@ Files::RemoteServer.create(
|
|
|
163
176
|
|
|
164
177
|
```
|
|
165
178
|
Files::RemoteServer.update(id,
|
|
179
|
+
reset_authentication: true,
|
|
166
180
|
hostname: "remote-server.com",
|
|
167
181
|
name: "My Remote server",
|
|
168
182
|
max_connections: 1,
|
|
@@ -182,7 +196,8 @@ Files::RemoteServer.update(id,
|
|
|
182
196
|
wasabi_region: "my-bucket",
|
|
183
197
|
rackspace_username: "rackspaceuser",
|
|
184
198
|
rackspace_region: "dfw",
|
|
185
|
-
rackspace_container: "my-container"
|
|
199
|
+
rackspace_container: "my-container",
|
|
200
|
+
one_drive_account_type: "personnel"
|
|
186
201
|
)
|
|
187
202
|
```
|
|
188
203
|
|
|
@@ -199,6 +214,7 @@ Files::RemoteServer.update(id,
|
|
|
199
214
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
|
200
215
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
|
201
216
|
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
|
217
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
|
202
218
|
* `hostname` (string): Hostname or IP address
|
|
203
219
|
* `name` (string): Internal name for your reference
|
|
204
220
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
@@ -219,6 +235,7 @@ Files::RemoteServer.update(id,
|
|
|
219
235
|
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
220
236
|
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
221
237
|
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
|
238
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
|
222
239
|
|
|
223
240
|
|
|
224
241
|
---
|
|
@@ -242,6 +259,7 @@ Files::RemoteServer.delete(id)
|
|
|
242
259
|
remote_server = Files::RemoteServer.list_for(path).first
|
|
243
260
|
|
|
244
261
|
remote_server.update(
|
|
262
|
+
reset_authentication: true,
|
|
245
263
|
hostname: "remote-server.com",
|
|
246
264
|
name: "My Remote server",
|
|
247
265
|
max_connections: 1,
|
|
@@ -261,7 +279,8 @@ remote_server.update(
|
|
|
261
279
|
wasabi_region: "my-bucket",
|
|
262
280
|
rackspace_username: "rackspaceuser",
|
|
263
281
|
rackspace_region: "dfw",
|
|
264
|
-
rackspace_container: "my-container"
|
|
282
|
+
rackspace_container: "my-container",
|
|
283
|
+
one_drive_account_type: "personnel"
|
|
265
284
|
)
|
|
266
285
|
```
|
|
267
286
|
|
|
@@ -278,6 +297,7 @@ remote_server.update(
|
|
|
278
297
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
|
279
298
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
|
280
299
|
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
|
300
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
|
281
301
|
* `hostname` (string): Hostname or IP address
|
|
282
302
|
* `name` (string): Internal name for your reference
|
|
283
303
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
@@ -298,6 +318,7 @@ remote_server.update(
|
|
|
298
318
|
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
299
319
|
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
300
320
|
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
|
321
|
+
* `one_drive_account_type` (string): Either personnel or business_other account types
|
|
301
322
|
|
|
302
323
|
|
|
303
324
|
---
|
|
@@ -207,6 +207,42 @@ module Files
|
|
|
207
207
|
@attributes[:rackspace_container] = value
|
|
208
208
|
end
|
|
209
209
|
|
|
210
|
+
# string - Returns link to login with an Oauth provider
|
|
211
|
+
def auth_setup_link
|
|
212
|
+
@attributes[:auth_setup_link]
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
def auth_setup_link=(value)
|
|
216
|
+
@attributes[:auth_setup_link] = value
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# string - Either `in_setup` or `complete`
|
|
220
|
+
def auth_status
|
|
221
|
+
@attributes[:auth_status]
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
def auth_status=(value)
|
|
225
|
+
@attributes[:auth_status] = value
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# string - Describes the authorized account
|
|
229
|
+
def auth_account_name
|
|
230
|
+
@attributes[:auth_account_name]
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
def auth_account_name=(value)
|
|
234
|
+
@attributes[:auth_account_name] = value
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# string - Either personnel or business_other account types
|
|
238
|
+
def one_drive_account_type
|
|
239
|
+
@attributes[:one_drive_account_type]
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
def one_drive_account_type=(value)
|
|
243
|
+
@attributes[:one_drive_account_type] = value
|
|
244
|
+
end
|
|
245
|
+
|
|
210
246
|
# string - AWS Access Key.
|
|
211
247
|
def aws_access_key
|
|
212
248
|
@attributes[:aws_access_key]
|
|
@@ -297,6 +333,15 @@ module Files
|
|
|
297
333
|
@attributes[:rackspace_api_key] = value
|
|
298
334
|
end
|
|
299
335
|
|
|
336
|
+
# boolean - Reset authenticated account
|
|
337
|
+
def reset_authentication
|
|
338
|
+
@attributes[:reset_authentication]
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
def reset_authentication=(value)
|
|
342
|
+
@attributes[:reset_authentication] = value
|
|
343
|
+
end
|
|
344
|
+
|
|
300
345
|
# Parameters:
|
|
301
346
|
# aws_access_key - string - AWS Access Key.
|
|
302
347
|
# aws_secret_key - string - AWS secret key.
|
|
@@ -308,6 +353,7 @@ module Files
|
|
|
308
353
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
|
309
354
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
|
310
355
|
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
|
356
|
+
# reset_authentication - boolean - Reset authenticated account
|
|
311
357
|
# hostname - string - Hostname or IP address
|
|
312
358
|
# name - string - Internal name for your reference
|
|
313
359
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
@@ -328,6 +374,7 @@ module Files
|
|
|
328
374
|
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
329
375
|
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
330
376
|
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
|
377
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
|
331
378
|
def update(params = {})
|
|
332
379
|
params ||= {}
|
|
333
380
|
params[:id] = @attributes[:id]
|
|
@@ -363,6 +410,7 @@ module Files
|
|
|
363
410
|
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
411
|
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
412
|
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
|
413
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
|
366
414
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
367
415
|
|
|
368
416
|
Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options)
|
|
@@ -437,6 +485,7 @@ module Files
|
|
|
437
485
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
|
438
486
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
|
439
487
|
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
|
488
|
+
# reset_authentication - boolean - Reset authenticated account
|
|
440
489
|
# hostname - string - Hostname or IP address
|
|
441
490
|
# name - string - Internal name for your reference
|
|
442
491
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
@@ -457,6 +506,7 @@ module Files
|
|
|
457
506
|
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
458
507
|
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
459
508
|
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
|
509
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
|
460
510
|
def self.create(params = {}, options = {})
|
|
461
511
|
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)
|
|
462
512
|
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)
|
|
@@ -488,6 +538,7 @@ module Files
|
|
|
488
538
|
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
539
|
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
540
|
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
|
541
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
|
491
542
|
|
|
492
543
|
response, options = Api.send_request("/remote_servers", :post, params, options)
|
|
493
544
|
RemoteServer.new(response.data, options)
|
|
@@ -504,6 +555,7 @@ module Files
|
|
|
504
555
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
|
505
556
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
|
506
557
|
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
|
558
|
+
# reset_authentication - boolean - Reset authenticated account
|
|
507
559
|
# hostname - string - Hostname or IP address
|
|
508
560
|
# name - string - Internal name for your reference
|
|
509
561
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
@@ -524,6 +576,7 @@ module Files
|
|
|
524
576
|
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
525
577
|
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
526
578
|
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
|
579
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
|
527
580
|
def self.update(id, params = {}, options = {})
|
|
528
581
|
params ||= {}
|
|
529
582
|
params[:id] = id
|
|
@@ -558,6 +611,7 @@ module Files
|
|
|
558
611
|
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
612
|
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
613
|
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
|
614
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
|
561
615
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
562
616
|
|
|
563
617
|
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.
|
|
4
|
+
version: 1.0.72
|
|
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-
|
|
11
|
+
date: 2020-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|