files.com 1.1.724 → 1.1.725
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/custom_domain.md +21 -0
- data/docs/sftp_host_key.md +8 -0
- data/lib/files.com/models/custom_domain.rb +24 -0
- data/lib/files.com/models/sftp_host_key.rb +15 -0
- data/lib/files.com/version.rb +1 -1
- 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: 916065aec7863a49849205c20423a63b8bafbe7ffcb4eebd1865ef6335e3e9f6
|
|
4
|
+
data.tar.gz: fd2ed09e73024f9bc127cea40a494cf0d9601596f8f5f4d43751ec8fe2a5dbe4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f50cff2718f6ee82cf100f1c027a51fa0eea4d073bf83859d253da6446db259485fd96796a895f253e146c6966b3198600bfb5f19791b72cf21f5ef2dccaf62
|
|
7
|
+
data.tar.gz: 047f04d218ffdc4f64fa63b8a970ada731f7b26652262b2e4e35511e67c4416c084bc1a96e7361634e4193c85a53ec7919772e22c48699f677d4169f98193bef
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.725
|
data/docs/custom_domain.md
CHANGED
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"ssl_certificate_id": 1,
|
|
12
12
|
"brick_managed": true,
|
|
13
13
|
"folder_behavior_id": 1,
|
|
14
|
+
"ip_addresses": [
|
|
15
|
+
"203.0.113.1",
|
|
16
|
+
"203.0.113.2"
|
|
17
|
+
],
|
|
14
18
|
"created_at": "2000-01-01T01:00:00Z",
|
|
15
19
|
"updated_at": "2000-01-01T01:00:00Z"
|
|
16
20
|
}
|
|
@@ -23,6 +27,7 @@
|
|
|
23
27
|
* `ssl_certificate_id` (int64): Current SSL certificate ID.
|
|
24
28
|
* `brick_managed` (boolean): Is this domain's SSL certificate automatically managed and renewed by Files.com?
|
|
25
29
|
* `folder_behavior_id` (int64): Public Hosting behavior ID when this domain routes to a specific Public Hosting behavior. Preserved as historical context when `destination` becomes `unassigned`.
|
|
30
|
+
* `ip_addresses` (array(string)): Dedicated public IP addresses allocated to this Custom Domain.
|
|
26
31
|
* `created_at` (date-time): When this Custom Domain was created.
|
|
27
32
|
* `updated_at` (date-time): When this Custom Domain was last updated.
|
|
28
33
|
|
|
@@ -55,6 +60,22 @@ Files::CustomDomain.find(id)
|
|
|
55
60
|
* `id` (int64): Required - Custom Domain ID.
|
|
56
61
|
|
|
57
62
|
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Allocate dedicated IP addresses to this Custom Domain
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Files::CustomDomain.create_allocate_ip(id,
|
|
69
|
+
count: 1
|
|
70
|
+
)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Parameters
|
|
74
|
+
|
|
75
|
+
* `id` (int64): Required - Custom Domain ID.
|
|
76
|
+
* `count` (int64): Required - Number of dedicated IP addresses to allocate.
|
|
77
|
+
|
|
78
|
+
|
|
58
79
|
---
|
|
59
80
|
|
|
60
81
|
## Create Custom Domain
|
data/docs/sftp_host_key.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
```
|
|
6
6
|
{
|
|
7
7
|
"active": true,
|
|
8
|
+
"custom_domain_id": 1,
|
|
8
9
|
"id": 1,
|
|
9
10
|
"name": "My Key",
|
|
10
11
|
"key_type": "ssh-rsa",
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
```
|
|
15
16
|
|
|
16
17
|
* `active` (boolean): If true, use this SFTP Host Key.
|
|
18
|
+
* `custom_domain_id` (int64): Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
17
19
|
* `id` (int64): SFTP Host Key ID
|
|
18
20
|
* `name` (string): The friendly name of this SFTP Host Key.
|
|
19
21
|
* `key_type` (string): SSH key type
|
|
@@ -56,6 +58,7 @@ Files::SftpHostKey.find(id)
|
|
|
56
58
|
```
|
|
57
59
|
Files::SftpHostKey.create(
|
|
58
60
|
active: true,
|
|
61
|
+
custom_domain_id: 1,
|
|
59
62
|
name: "My Key"
|
|
60
63
|
)
|
|
61
64
|
```
|
|
@@ -63,6 +66,7 @@ Files::SftpHostKey.create(
|
|
|
63
66
|
### Parameters
|
|
64
67
|
|
|
65
68
|
* `active` (boolean): If true, use this SFTP Host Key.
|
|
69
|
+
* `custom_domain_id` (int64): Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
66
70
|
* `name` (string): The friendly name of this SFTP Host Key.
|
|
67
71
|
* `private_key` (string): The private key data.
|
|
68
72
|
|
|
@@ -74,6 +78,7 @@ Files::SftpHostKey.create(
|
|
|
74
78
|
```
|
|
75
79
|
Files::SftpHostKey.update(id,
|
|
76
80
|
active: true,
|
|
81
|
+
custom_domain_id: 1,
|
|
77
82
|
name: "My Key"
|
|
78
83
|
)
|
|
79
84
|
```
|
|
@@ -82,6 +87,7 @@ Files::SftpHostKey.update(id,
|
|
|
82
87
|
|
|
83
88
|
* `id` (int64): Required - Sftp Host Key ID.
|
|
84
89
|
* `active` (boolean): If true, use this SFTP Host Key.
|
|
90
|
+
* `custom_domain_id` (int64): Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
85
91
|
* `name` (string): The friendly name of this SFTP Host Key.
|
|
86
92
|
* `private_key` (string): The private key data.
|
|
87
93
|
|
|
@@ -108,6 +114,7 @@ sftp_host_key = Files::SftpHostKey.find(id)
|
|
|
108
114
|
|
|
109
115
|
sftp_host_key.update(
|
|
110
116
|
active: true,
|
|
117
|
+
custom_domain_id: 1,
|
|
111
118
|
name: "My Key"
|
|
112
119
|
)
|
|
113
120
|
```
|
|
@@ -116,6 +123,7 @@ sftp_host_key.update(
|
|
|
116
123
|
|
|
117
124
|
* `id` (int64): Required - Sftp Host Key ID.
|
|
118
125
|
* `active` (boolean): If true, use this SFTP Host Key.
|
|
126
|
+
* `custom_domain_id` (int64): Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
119
127
|
* `name` (string): The friendly name of this SFTP Host Key.
|
|
120
128
|
* `private_key` (string): The private key data.
|
|
121
129
|
|
|
@@ -72,6 +72,15 @@ module Files
|
|
|
72
72
|
@attributes[:folder_behavior_id] = value
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
# array(string) - Dedicated public IP addresses allocated to this Custom Domain.
|
|
76
|
+
def ip_addresses
|
|
77
|
+
@attributes[:ip_addresses]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def ip_addresses=(value)
|
|
81
|
+
@attributes[:ip_addresses] = value
|
|
82
|
+
end
|
|
83
|
+
|
|
75
84
|
# date-time - When this Custom Domain was created.
|
|
76
85
|
def created_at
|
|
77
86
|
@attributes[:created_at]
|
|
@@ -161,6 +170,21 @@ module Files
|
|
|
161
170
|
find(id, params, options)
|
|
162
171
|
end
|
|
163
172
|
|
|
173
|
+
# Parameters:
|
|
174
|
+
# id (required) - int64 - Custom Domain ID.
|
|
175
|
+
# count (required) - int64 - Number of dedicated IP addresses to allocate.
|
|
176
|
+
def self.create_allocate_ip(id, params = {}, options = {})
|
|
177
|
+
params ||= {}
|
|
178
|
+
params[:id] = id
|
|
179
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
180
|
+
raise InvalidParameterError.new("Bad parameter: count must be an Integer") if params[:count] and !params[:count].is_a?(Integer)
|
|
181
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
182
|
+
raise MissingParameterError.new("Parameter missing: count") unless params[:count]
|
|
183
|
+
|
|
184
|
+
response, options = Api.send_request("/custom_domains/#{params[:id]}/allocate_ips", :post, params, options)
|
|
185
|
+
CustomDomain.new(response.data, options)
|
|
186
|
+
end
|
|
187
|
+
|
|
164
188
|
# Parameters:
|
|
165
189
|
# destination - string - Where this custom domain routes. Can be `site_alias`, `public_hosting`, `s3_endpoint`, or `unassigned` (not routing traffic). Set to `unassigned` automatically when a bound `public_hosting` folder behavior is deleted, and can be set manually via the API for any reason.
|
|
166
190
|
# folder_behavior_id - int64 - Public Hosting behavior ID when this domain routes to a specific Public Hosting behavior. Preserved as historical context when `destination` becomes `unassigned`.
|
|
@@ -18,6 +18,15 @@ module Files
|
|
|
18
18
|
@attributes[:active] = value
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
# int64 - Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
22
|
+
def custom_domain_id
|
|
23
|
+
@attributes[:custom_domain_id]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def custom_domain_id=(value)
|
|
27
|
+
@attributes[:custom_domain_id] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
21
30
|
# int64 - SFTP Host Key ID
|
|
22
31
|
def id
|
|
23
32
|
@attributes[:id]
|
|
@@ -74,6 +83,7 @@ module Files
|
|
|
74
83
|
|
|
75
84
|
# Parameters:
|
|
76
85
|
# active - boolean - If true, use this SFTP Host Key.
|
|
86
|
+
# custom_domain_id - int64 - Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
77
87
|
# name - string - The friendly name of this SFTP Host Key.
|
|
78
88
|
# private_key - string - The private key data.
|
|
79
89
|
def update(params = {})
|
|
@@ -81,6 +91,7 @@ module Files
|
|
|
81
91
|
params[:id] = @attributes[:id]
|
|
82
92
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
83
93
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
94
|
+
raise InvalidParameterError.new("Bad parameter: custom_domain_id must be an Integer") if params[:custom_domain_id] and !params[:custom_domain_id].is_a?(Integer)
|
|
84
95
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
85
96
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
86
97
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
@@ -148,9 +159,11 @@ module Files
|
|
|
148
159
|
|
|
149
160
|
# Parameters:
|
|
150
161
|
# active - boolean - If true, use this SFTP Host Key.
|
|
162
|
+
# custom_domain_id - int64 - Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
151
163
|
# name - string - The friendly name of this SFTP Host Key.
|
|
152
164
|
# private_key - string - The private key data.
|
|
153
165
|
def self.create(params = {}, options = {})
|
|
166
|
+
raise InvalidParameterError.new("Bad parameter: custom_domain_id must be an Integer") if params[:custom_domain_id] and !params[:custom_domain_id].is_a?(Integer)
|
|
154
167
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
155
168
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
156
169
|
|
|
@@ -160,12 +173,14 @@ module Files
|
|
|
160
173
|
|
|
161
174
|
# Parameters:
|
|
162
175
|
# active - boolean - If true, use this SFTP Host Key.
|
|
176
|
+
# custom_domain_id - int64 - Custom Domain ID. If set, this key is used only for that Custom Domain.
|
|
163
177
|
# name - string - The friendly name of this SFTP Host Key.
|
|
164
178
|
# private_key - string - The private key data.
|
|
165
179
|
def self.update(id, params = {}, options = {})
|
|
166
180
|
params ||= {}
|
|
167
181
|
params[:id] = id
|
|
168
182
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
183
|
+
raise InvalidParameterError.new("Bad parameter: custom_domain_id must be an Integer") if params[:custom_domain_id] and !params[:custom_domain_id].is_a?(Integer)
|
|
169
184
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
170
185
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
171
186
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
data/lib/files.com/version.rb
CHANGED
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.1.
|
|
4
|
+
version: 1.1.725
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|