files.com 1.0.36 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/remote_server.md +8 -12
- data/lib/files.com/models/remote_server.rb +15 -15
- 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: 0eddd8414056371480f1e28f70a4b7db7d1e49ba4eada9f98733e1d1636e5f28
|
4
|
+
data.tar.gz: 8098b511025d04917dce2a299d1c5b0016c60accadf710d4eea117d42b2b1e85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34acba5bd568cd1f1e07f6a26290fca646476fda38eedab3e7ebaf0c8fb6b6ef7d2e837e1a5cdf2984f7a4ffb5c0cb7e8452a02e3713dc3bc0788cad69afa710
|
7
|
+
data.tar.gz: 42d1798ee48f1315543a08a1321244b9527f289b84e7d48c9d16297bdb8c78bdbf3d64baf37c2554cdc554eee5156f5968af470de84932d0189e0219be6ab0ab
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.37
|
data/docs/remote_server.md
CHANGED
@@ -17,8 +17,7 @@
|
|
17
17
|
"ssl": "always",
|
18
18
|
"username": "user",
|
19
19
|
"google_cloud_storage_bucket": "my-bucket",
|
20
|
-
"google_cloud_storage_project_id": "my-project"
|
21
|
-
"google_cloud_storage_credentials_json": "{}"
|
20
|
+
"google_cloud_storage_project_id": "my-project"
|
22
21
|
}
|
23
22
|
```
|
24
23
|
|
@@ -36,11 +35,11 @@
|
|
36
35
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
37
36
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
38
37
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
39
|
-
* `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
|
40
38
|
* `aws_access_key` (string): AWS Access Key.
|
41
39
|
* `aws_secret_key` (string): AWS secret key.
|
42
40
|
* `password` (string): Password if needed.
|
43
41
|
* `private_key` (string): Private key if needed.
|
42
|
+
* `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
|
44
43
|
|
45
44
|
|
46
45
|
---
|
@@ -91,8 +90,7 @@ Files::RemoteServer.create(
|
|
91
90
|
ssl: "always",
|
92
91
|
username: "user",
|
93
92
|
google_cloud_storage_bucket: "my-bucket",
|
94
|
-
google_cloud_storage_project_id: "my-project"
|
95
|
-
google_cloud_storage_credentials_json: "{}"
|
93
|
+
google_cloud_storage_project_id: "my-project"
|
96
94
|
)
|
97
95
|
```
|
98
96
|
|
@@ -102,6 +100,7 @@ Files::RemoteServer.create(
|
|
102
100
|
* `aws_secret_key` (string): AWS secret key.
|
103
101
|
* `password` (string): Password if needed.
|
104
102
|
* `private_key` (string): Private key if needed.
|
103
|
+
* `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
|
105
104
|
* `hostname` (string): Hostname or IP address
|
106
105
|
* `name` (string): Internal name for your reference
|
107
106
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -114,7 +113,6 @@ Files::RemoteServer.create(
|
|
114
113
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
115
114
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
116
115
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
117
|
-
* `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
|
118
116
|
|
119
117
|
|
120
118
|
---
|
@@ -134,8 +132,7 @@ Files::RemoteServer.update(id,
|
|
134
132
|
ssl: "always",
|
135
133
|
username: "user",
|
136
134
|
google_cloud_storage_bucket: "my-bucket",
|
137
|
-
google_cloud_storage_project_id: "my-project"
|
138
|
-
google_cloud_storage_credentials_json: "{}"
|
135
|
+
google_cloud_storage_project_id: "my-project"
|
139
136
|
)
|
140
137
|
```
|
141
138
|
|
@@ -146,6 +143,7 @@ Files::RemoteServer.update(id,
|
|
146
143
|
* `aws_secret_key` (string): AWS secret key.
|
147
144
|
* `password` (string): Password if needed.
|
148
145
|
* `private_key` (string): Private key if needed.
|
146
|
+
* `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
|
149
147
|
* `hostname` (string): Hostname or IP address
|
150
148
|
* `name` (string): Internal name for your reference
|
151
149
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -158,7 +156,6 @@ Files::RemoteServer.update(id,
|
|
158
156
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
159
157
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
160
158
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
161
|
-
* `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
|
162
159
|
|
163
160
|
|
164
161
|
---
|
@@ -192,8 +189,7 @@ remote_server.update(
|
|
192
189
|
ssl: "always",
|
193
190
|
username: "user",
|
194
191
|
google_cloud_storage_bucket: "my-bucket",
|
195
|
-
google_cloud_storage_project_id: "my-project"
|
196
|
-
google_cloud_storage_credentials_json: "{}"
|
192
|
+
google_cloud_storage_project_id: "my-project"
|
197
193
|
)
|
198
194
|
```
|
199
195
|
|
@@ -204,6 +200,7 @@ remote_server.update(
|
|
204
200
|
* `aws_secret_key` (string): AWS secret key.
|
205
201
|
* `password` (string): Password if needed.
|
206
202
|
* `private_key` (string): Private key if needed.
|
203
|
+
* `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
|
207
204
|
* `hostname` (string): Hostname or IP address
|
208
205
|
* `name` (string): Internal name for your reference
|
209
206
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -216,7 +213,6 @@ remote_server.update(
|
|
216
213
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
217
214
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
218
215
|
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
219
|
-
* `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
|
220
216
|
|
221
217
|
|
222
218
|
---
|
@@ -135,15 +135,6 @@ module Files
|
|
135
135
|
@attributes[:google_cloud_storage_project_id] = value
|
136
136
|
end
|
137
137
|
|
138
|
-
# 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
|
139
|
-
def google_cloud_storage_credentials_json
|
140
|
-
@attributes[:google_cloud_storage_credentials_json]
|
141
|
-
end
|
142
|
-
|
143
|
-
def google_cloud_storage_credentials_json=(value)
|
144
|
-
@attributes[:google_cloud_storage_credentials_json] = value
|
145
|
-
end
|
146
|
-
|
147
138
|
# string - AWS Access Key.
|
148
139
|
def aws_access_key
|
149
140
|
@attributes[:aws_access_key]
|
@@ -180,11 +171,21 @@ module Files
|
|
180
171
|
@attributes[:private_key] = value
|
181
172
|
end
|
182
173
|
|
174
|
+
# 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
|
+
def google_cloud_storage_credentials_json
|
176
|
+
@attributes[:google_cloud_storage_credentials_json]
|
177
|
+
end
|
178
|
+
|
179
|
+
def google_cloud_storage_credentials_json=(value)
|
180
|
+
@attributes[:google_cloud_storage_credentials_json] = value
|
181
|
+
end
|
182
|
+
|
183
183
|
# Parameters:
|
184
184
|
# aws_access_key - string - AWS Access Key.
|
185
185
|
# aws_secret_key - string - AWS secret key.
|
186
186
|
# password - string - Password if needed.
|
187
187
|
# private_key - string - Private key if needed.
|
188
|
+
# 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
|
188
189
|
# hostname - string - Hostname or IP address
|
189
190
|
# name - string - Internal name for your reference
|
190
191
|
# max_connections - integer - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -197,7 +198,6 @@ module Files
|
|
197
198
|
# username - string - Remote server username. Not needed for S3 buckets.
|
198
199
|
# google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
199
200
|
# google_cloud_storage_project_id - string - Google Cloud Project ID
|
200
|
-
# 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
|
201
201
|
def update(params = {})
|
202
202
|
params ||= {}
|
203
203
|
params[:id] = @attributes[:id]
|
@@ -207,6 +207,7 @@ module Files
|
|
207
207
|
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)
|
208
208
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
209
209
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
|
210
|
+
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)
|
210
211
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
211
212
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
212
213
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -219,7 +220,6 @@ module Files
|
|
219
220
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
220
221
|
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)
|
221
222
|
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)
|
222
|
-
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)
|
223
223
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
224
224
|
|
225
225
|
Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options)
|
@@ -285,6 +285,7 @@ module Files
|
|
285
285
|
# aws_secret_key - string - AWS secret key.
|
286
286
|
# password - string - Password if needed.
|
287
287
|
# private_key - string - Private key if needed.
|
288
|
+
# 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
|
288
289
|
# hostname - string - Hostname or IP address
|
289
290
|
# name - string - Internal name for your reference
|
290
291
|
# max_connections - integer - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -297,12 +298,12 @@ module Files
|
|
297
298
|
# username - string - Remote server username. Not needed for S3 buckets.
|
298
299
|
# google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
299
300
|
# google_cloud_storage_project_id - string - Google Cloud Project ID
|
300
|
-
# 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
|
301
301
|
def self.create(params = {}, options = {})
|
302
302
|
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)
|
303
303
|
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)
|
304
304
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
305
305
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
|
306
|
+
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)
|
306
307
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
307
308
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
308
309
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -315,7 +316,6 @@ module Files
|
|
315
316
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
316
317
|
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)
|
317
318
|
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)
|
318
|
-
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)
|
319
319
|
|
320
320
|
response, options = Api.send_request("/remote_servers", :post, params, options)
|
321
321
|
RemoteServer.new(response.data, options)
|
@@ -326,6 +326,7 @@ module Files
|
|
326
326
|
# aws_secret_key - string - AWS secret key.
|
327
327
|
# password - string - Password if needed.
|
328
328
|
# private_key - string - Private key if needed.
|
329
|
+
# 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
|
329
330
|
# hostname - string - Hostname or IP address
|
330
331
|
# name - string - Internal name for your reference
|
331
332
|
# max_connections - integer - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -338,7 +339,6 @@ module Files
|
|
338
339
|
# username - string - Remote server username. Not needed for S3 buckets.
|
339
340
|
# google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
340
341
|
# google_cloud_storage_project_id - string - Google Cloud Project ID
|
341
|
-
# 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
|
342
342
|
def self.update(id, params = {}, options = {})
|
343
343
|
params ||= {}
|
344
344
|
params[:id] = id
|
@@ -347,6 +347,7 @@ module Files
|
|
347
347
|
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)
|
348
348
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
349
349
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
|
350
|
+
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)
|
350
351
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
351
352
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
352
353
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -359,7 +360,6 @@ module Files
|
|
359
360
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
360
361
|
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)
|
361
362
|
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)
|
362
|
-
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)
|
363
363
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
364
364
|
|
365
365
|
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.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|