files.com 1.0.306 → 1.0.308
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '029fd6443229afde9c000f01bd29c02e9aa0e4b3b39b0fc6b6cdc0ae7985a26c'
|
4
|
+
data.tar.gz: 100d6c345afadfb7e5498e7bda0fc76470f50ff02fc9ad491e275fda9c607add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fd4e49c12bc50fc97831f1848e48c256e07058e3767235520918332c6897953130515adcbce7fb42d313b74c64cdfdc23fc95c87f2f826b148600e1a48cd959
|
7
|
+
data.tar.gz: 105a58fd30159014b17d6b29a1114e979ff800f081e7a694c0aa49afc3cd69194911b28f7f0af9f43e4e4c25f3f308306036a993b722e98c119c905733ace5df
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.308
|
data/docs/remote_server.md
CHANGED
@@ -273,7 +273,8 @@ Files::RemoteServer.configuration_file(id,
|
|
273
273
|
status: "example",
|
274
274
|
config_version: "example",
|
275
275
|
private_key: "example",
|
276
|
-
public_key: "example"
|
276
|
+
public_key: "example",
|
277
|
+
server_host_key: "example"
|
277
278
|
)
|
278
279
|
```
|
279
280
|
|
@@ -289,6 +290,7 @@ Files::RemoteServer.configuration_file(id,
|
|
289
290
|
* `config_version` (string): agent config version
|
290
291
|
* `private_key` (string): private key
|
291
292
|
* `public_key` (string): public key
|
293
|
+
* `server_host_key` (string):
|
292
294
|
|
293
295
|
|
294
296
|
---
|
@@ -423,7 +425,8 @@ remote_server.configuration_file(
|
|
423
425
|
status: "example",
|
424
426
|
config_version: "example",
|
425
427
|
private_key: "example",
|
426
|
-
public_key: "example"
|
428
|
+
public_key: "example",
|
429
|
+
server_host_key: "example"
|
427
430
|
)
|
428
431
|
```
|
429
432
|
|
@@ -439,6 +442,7 @@ remote_server.configuration_file(
|
|
439
442
|
* `config_version` (string): agent config version
|
440
443
|
* `private_key` (string): private key
|
441
444
|
* `public_key` (string): public key
|
445
|
+
* `server_host_key` (string):
|
442
446
|
|
443
447
|
|
444
448
|
---
|
@@ -13,7 +13,8 @@
|
|
13
13
|
"public_key": "example",
|
14
14
|
"private_key": "example",
|
15
15
|
"status": "example",
|
16
|
-
"config_version": "example"
|
16
|
+
"config_version": "example",
|
17
|
+
"server_host_key": "example"
|
17
18
|
}
|
18
19
|
```
|
19
20
|
|
@@ -27,3 +28,4 @@
|
|
27
28
|
* `private_key` (string): private key
|
28
29
|
* `status` (string): either running or shutdown
|
29
30
|
* `config_version` (string): agent config version
|
31
|
+
* `server_host_key` (string):
|
data/lib/files.com/api_client.rb
CHANGED
@@ -287,7 +287,9 @@ module Files
|
|
287
287
|
return APIError.new(error_data[:message], **opts) unless resp&.data&.dig(:type)
|
288
288
|
|
289
289
|
begin
|
290
|
-
|
290
|
+
error_type = resp.data[:type].split("/").last
|
291
|
+
error_class_name = "#{error_type.split("-").map(&:capitalize).join}Error"
|
292
|
+
error_class = Files.const_get(error_class_name)
|
291
293
|
error_class.new(error_data[:message], **opts)
|
292
294
|
rescue NameError
|
293
295
|
APIError.new(error_data[:message], **opts)
|
@@ -561,6 +561,7 @@ module Files
|
|
561
561
|
# config_version - string - agent config version
|
562
562
|
# private_key - string - private key
|
563
563
|
# public_key - string - public key
|
564
|
+
# server_host_key - string
|
564
565
|
def configuration_file(params = {})
|
565
566
|
params ||= {}
|
566
567
|
params[:id] = @attributes[:id]
|
@@ -575,6 +576,7 @@ module Files
|
|
575
576
|
raise InvalidParameterError.new("Bad parameter: config_version must be an String") if params[:config_version] and !params[:config_version].is_a?(String)
|
576
577
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
577
578
|
raise InvalidParameterError.new("Bad parameter: public_key must be an String") if params[:public_key] and !params[:public_key].is_a?(String)
|
579
|
+
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
578
580
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
579
581
|
|
580
582
|
Api.send_request("/remote_servers/#{@attributes[:id]}/configuration_file", :post, params, @options)
|
@@ -875,6 +877,7 @@ module Files
|
|
875
877
|
# config_version - string - agent config version
|
876
878
|
# private_key - string - private key
|
877
879
|
# public_key - string - public key
|
880
|
+
# server_host_key - string
|
878
881
|
def self.configuration_file(id, params = {}, options = {})
|
879
882
|
params ||= {}
|
880
883
|
params[:id] = id
|
@@ -888,6 +891,7 @@ module Files
|
|
888
891
|
raise InvalidParameterError.new("Bad parameter: config_version must be an String") if params[:config_version] and !params[:config_version].is_a?(String)
|
889
892
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
890
893
|
raise InvalidParameterError.new("Bad parameter: public_key must be an String") if params[:public_key] and !params[:public_key].is_a?(String)
|
894
|
+
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
891
895
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
892
896
|
|
893
897
|
response, options = Api.send_request("/remote_servers/#{params[:id]}/configuration_file", :post, 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.308
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|