files.com 1.0.323 → 1.0.325
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14809cada3b9d391a1e3bac43e9d84a1eed3cb88e4bc7500b3007559fda31d3b
|
4
|
+
data.tar.gz: 76eaad97227fd79d4251408d1de96d4bc3a3e736a640195ad0a3f346b9f03aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 716371888ddcd13e3483362710cd81828b55d2f3a56426716358b49aaf9fc3ead4a7d853ee538f621c67d2fc961c92532fdb78aad48ad3c7e747a6a856848752
|
7
|
+
data.tar.gz: 76671a098b12a2e386e6fa47a8401753cec72db94f726eab9381d261ad299c4e79ff83dce87ede40fe77f108bb1ca31a46ff889eeae7dcb180271d58d74caa67
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.325
|
data/docs/remote_server.md
CHANGED
@@ -49,7 +49,8 @@
|
|
49
49
|
"enable_dedicated_ips": true,
|
50
50
|
"files_agent_permission_set": "read_write",
|
51
51
|
"files_agent_root": "example",
|
52
|
-
"files_agent_api_token": "example"
|
52
|
+
"files_agent_api_token": "example",
|
53
|
+
"filebase_bucket": "my-bucket"
|
53
54
|
}
|
54
55
|
```
|
55
56
|
|
@@ -99,6 +100,7 @@
|
|
99
100
|
* `files_agent_permission_set` (string): Local permissions for files agent. read_only, write_only, or read_write
|
100
101
|
* `files_agent_root` (string): Agent local root path
|
101
102
|
* `files_agent_api_token` (string): Files Agent API Token
|
103
|
+
* `filebase_bucket` (string): Filebase Bucket name
|
102
104
|
* `aws_secret_key` (string): AWS secret key.
|
103
105
|
* `password` (string): Password if needed.
|
104
106
|
* `private_key` (string): Private key if needed.
|
@@ -274,7 +276,8 @@ Files::RemoteServer.configuration_file(id,
|
|
274
276
|
config_version: "example",
|
275
277
|
private_key: "example",
|
276
278
|
public_key: "example",
|
277
|
-
server_host_key: "example"
|
279
|
+
server_host_key: "example",
|
280
|
+
subdomain: "example"
|
278
281
|
)
|
279
282
|
```
|
280
283
|
|
@@ -291,6 +294,7 @@ Files::RemoteServer.configuration_file(id,
|
|
291
294
|
* `private_key` (string): private key
|
292
295
|
* `public_key` (string): public key
|
293
296
|
* `server_host_key` (string):
|
297
|
+
* `subdomain` (string):
|
294
298
|
|
295
299
|
|
296
300
|
---
|
@@ -426,7 +430,8 @@ remote_server.configuration_file(
|
|
426
430
|
config_version: "example",
|
427
431
|
private_key: "example",
|
428
432
|
public_key: "example",
|
429
|
-
server_host_key: "example"
|
433
|
+
server_host_key: "example",
|
434
|
+
subdomain: "example"
|
430
435
|
)
|
431
436
|
```
|
432
437
|
|
@@ -443,6 +448,7 @@ remote_server.configuration_file(
|
|
443
448
|
* `private_key` (string): private key
|
444
449
|
* `public_key` (string): public key
|
445
450
|
* `server_host_key` (string):
|
451
|
+
* `subdomain` (string):
|
446
452
|
|
447
453
|
|
448
454
|
---
|
@@ -14,7 +14,8 @@
|
|
14
14
|
"private_key": "example",
|
15
15
|
"status": "example",
|
16
16
|
"config_version": "example",
|
17
|
-
"server_host_key": "example"
|
17
|
+
"server_host_key": "example",
|
18
|
+
"subdomain": "example"
|
18
19
|
}
|
19
20
|
```
|
20
21
|
|
@@ -29,3 +30,4 @@
|
|
29
30
|
* `status` (string): either running or shutdown
|
30
31
|
* `config_version` (string): agent config version
|
31
32
|
* `server_host_key` (string):
|
33
|
+
* `subdomain` (string):
|
@@ -423,6 +423,15 @@ module Files
|
|
423
423
|
@attributes[:files_agent_api_token] = value
|
424
424
|
end
|
425
425
|
|
426
|
+
# string - Filebase Bucket name
|
427
|
+
def filebase_bucket
|
428
|
+
@attributes[:filebase_bucket]
|
429
|
+
end
|
430
|
+
|
431
|
+
def filebase_bucket=(value)
|
432
|
+
@attributes[:filebase_bucket] = value
|
433
|
+
end
|
434
|
+
|
426
435
|
# string - AWS secret key.
|
427
436
|
def aws_secret_key
|
428
437
|
@attributes[:aws_secret_key]
|
@@ -562,6 +571,7 @@ module Files
|
|
562
571
|
# private_key - string - private key
|
563
572
|
# public_key - string - public key
|
564
573
|
# server_host_key - string
|
574
|
+
# subdomain - string
|
565
575
|
def configuration_file(params = {})
|
566
576
|
params ||= {}
|
567
577
|
params[:id] = @attributes[:id]
|
@@ -577,6 +587,7 @@ module Files
|
|
577
587
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
578
588
|
raise InvalidParameterError.new("Bad parameter: public_key must be an String") if params[:public_key] and !params[:public_key].is_a?(String)
|
579
589
|
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)
|
590
|
+
raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params[:subdomain] and !params[:subdomain].is_a?(String)
|
580
591
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
581
592
|
|
582
593
|
Api.send_request("/remote_servers/#{@attributes[:id]}/configuration_file", :post, params, @options)
|
@@ -878,6 +889,7 @@ module Files
|
|
878
889
|
# private_key - string - private key
|
879
890
|
# public_key - string - public key
|
880
891
|
# server_host_key - string
|
892
|
+
# subdomain - string
|
881
893
|
def self.configuration_file(id, params = {}, options = {})
|
882
894
|
params ||= {}
|
883
895
|
params[:id] = id
|
@@ -892,6 +904,7 @@ module Files
|
|
892
904
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
893
905
|
raise InvalidParameterError.new("Bad parameter: public_key must be an String") if params[:public_key] and !params[:public_key].is_a?(String)
|
894
906
|
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)
|
907
|
+
raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params[:subdomain] and !params[:subdomain].is_a?(String)
|
895
908
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
896
909
|
|
897
910
|
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.325
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|