pnap_bmc_api 1.5.0 → 2.0.0
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/README.md +5 -1
- data/VERSION +1 -1
- data/docs/DeleteResult.md +1 -1
- data/docs/OsConfigurationCloudInit.md +1 -1
- data/docs/QuotasApi.md +6 -8
- data/docs/SSHKeysApi.md +12 -16
- data/docs/Server.md +11 -7
- data/docs/ServerCreate.md +3 -3
- data/docs/ServerNetworkUpdate.md +2 -2
- data/docs/ServerPrivateNetwork.md +3 -3
- data/docs/ServerProvision.md +38 -0
- data/docs/ServerPublicNetwork.md +2 -2
- data/docs/ServersApi.md +173 -111
- data/docs/StorageConfigurationRootPartition.md +2 -2
- data/lib/pnap_bmc_api/api/quotas_api.rb +11 -7
- data/lib/pnap_bmc_api/api/servers_api.rb +200 -75
- data/lib/pnap_bmc_api/api/ssh_keys_api.rb +21 -13
- data/lib/pnap_bmc_api/api_client.rb +24 -21
- data/lib/pnap_bmc_api/api_error.rb +2 -1
- data/lib/pnap_bmc_api/configuration.rb +28 -9
- data/lib/pnap_bmc_api/models/action_result.rb +16 -19
- data/lib/pnap_bmc_api/models/delete_result.rb +18 -19
- data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +18 -19
- data/lib/pnap_bmc_api/models/error.rb +16 -19
- data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +19 -20
- data/lib/pnap_bmc_api/models/network_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/os_configuration.rb +19 -20
- data/lib/pnap_bmc_api/models/os_configuration_cloud_init.rb +15 -20
- data/lib/pnap_bmc_api/models/os_configuration_map.rb +14 -19
- data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +19 -20
- data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +19 -20
- data/lib/pnap_bmc_api/models/os_configuration_netris_controller.rb +14 -19
- data/lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb +25 -22
- data/lib/pnap_bmc_api/models/os_configuration_windows.rb +19 -20
- data/lib/pnap_bmc_api/models/private_network_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/public_network_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/quota.rb +30 -19
- data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +39 -19
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +42 -21
- data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +14 -19
- data/lib/pnap_bmc_api/models/reset_result.rb +16 -19
- data/lib/pnap_bmc_api/models/server.rb +79 -33
- data/lib/pnap_bmc_api/models/server_create.rb +29 -22
- data/lib/pnap_bmc_api/models/server_ip_block.rb +16 -19
- data/lib/pnap_bmc_api/models/server_network_update.rb +15 -20
- data/lib/pnap_bmc_api/models/server_patch.rb +27 -24
- data/lib/pnap_bmc_api/models/server_private_network.rb +23 -22
- data/lib/pnap_bmc_api/models/server_provision.rb +395 -0
- data/lib/pnap_bmc_api/models/server_public_network.rb +17 -20
- data/lib/pnap_bmc_api/models/server_reserve.rb +16 -19
- data/lib/pnap_bmc_api/models/server_reset.rb +14 -19
- data/lib/pnap_bmc_api/models/ssh_key.rb +28 -19
- data/lib/pnap_bmc_api/models/ssh_key_create.rb +52 -19
- data/lib/pnap_bmc_api/models/ssh_key_update.rb +29 -19
- data/lib/pnap_bmc_api/models/storage_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/storage_configuration_root_partition.rb +14 -19
- data/lib/pnap_bmc_api/models/tag_assignment.rb +20 -19
- data/lib/pnap_bmc_api/models/tag_assignment_request.rb +16 -19
- data/lib/pnap_bmc_api/version.rb +1 -1
- data/lib/pnap_bmc_api.rb +2 -2
- data/pnap_bmc_api.gemspec +2 -2
- data/spec/api/quotas_api_spec.rb +6 -6
- data/spec/api/servers_api_spec.rb +109 -36
- data/spec/api/ssh_keys_api_spec.rb +9 -9
- data/spec/models/action_result_spec.rb +6 -4
- data/spec/models/delete_result_spec.rb +7 -5
- data/spec/models/delete_ssh_key_result_spec.rb +7 -5
- data/spec/models/error_spec.rb +7 -5
- data/spec/models/ip_blocks_configuration_spec.rb +7 -5
- data/spec/models/network_configuration_spec.rb +19 -5
- data/spec/models/os_configuration_cloud_init_spec.rb +5 -3
- data/spec/models/os_configuration_map_esxi_spec.rb +8 -6
- data/spec/models/os_configuration_map_proxmox_spec.rb +8 -6
- data/spec/models/os_configuration_map_spec.rb +8 -6
- data/spec/models/os_configuration_netris_controller_spec.rb +7 -5
- data/spec/models/os_configuration_netris_softgate_spec.rb +8 -6
- data/spec/models/os_configuration_spec.rb +33 -7
- data/spec/models/os_configuration_windows_spec.rb +6 -4
- data/spec/models/private_network_configuration_spec.rb +8 -6
- data/spec/models/public_network_configuration_spec.rb +6 -4
- data/spec/models/quota_edit_limit_request_details_spec.rb +8 -6
- data/spec/models/quota_edit_limit_request_spec.rb +7 -5
- data/spec/models/quota_spec.rb +13 -15
- data/spec/models/relinquish_ip_block_spec.rb +6 -4
- data/spec/models/reset_result_spec.rb +8 -6
- data/spec/models/server_create_spec.rb +25 -17
- data/spec/models/server_ip_block_spec.rb +7 -5
- data/spec/models/server_network_update_spec.rb +5 -3
- data/spec/models/server_patch_spec.rb +7 -5
- data/spec/models/server_private_network_spec.rb +9 -7
- data/spec/models/server_provision_spec.rb +96 -0
- data/spec/models/server_public_network_spec.rb +8 -6
- data/spec/models/server_reserve_spec.rb +6 -4
- data/spec/models/server_reset_spec.rb +9 -7
- data/spec/models/server_spec.rb +47 -27
- data/spec/models/ssh_key_create_spec.rb +8 -6
- data/spec/models/ssh_key_spec.rb +12 -10
- data/spec/models/ssh_key_update_spec.rb +7 -5
- data/spec/models/storage_configuration_root_partition_spec.rb +6 -4
- data/spec/models/storage_configuration_spec.rb +5 -3
- data/spec/models/tag_assignment_request_spec.rb +7 -5
- data/spec/models/tag_assignment_spec.rb +10 -8
- data/spec/spec_helper.rb +1 -1
- metadata +38 -42
- data/docs/QuotaEditLimitRequestDetailsAllOf.md +0 -18
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details_all_of.rb +0 -226
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/quota_edit_limit_request_details_all_of_spec.rb +0 -34
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,14 +34,14 @@ describe 'ServersApi' do
|
|
34
34
|
|
35
35
|
# unit tests for delete_private_network
|
36
36
|
# Removes the server from private network.
|
37
|
-
# Removes the server from private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure.
|
37
|
+
# Removes the server from private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>
|
38
38
|
# @param server_id The server's ID.
|
39
39
|
# @param private_network_id The private network identifier.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [String]
|
42
42
|
describe 'delete_private_network test' do
|
43
43
|
it 'should work' do
|
44
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -53,19 +53,20 @@ describe 'ServersApi' do
|
|
53
53
|
# @return [Array<Server>]
|
54
54
|
describe 'servers_get test' do
|
55
55
|
it 'should work' do
|
56
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
# unit tests for servers_post
|
61
61
|
# Create new server.
|
62
|
-
# Create (request) new server for account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 .
|
62
|
+
# Create (request) a new server for the account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 . Note that the product availability API can be used prior to doing the provision request. Refer to https://developers.phoenixnap.com/docs/bmc-billing/1/routes/product-availability/get.
|
63
|
+
# @param server_create
|
63
64
|
# @param [Hash] opts the optional parameters
|
64
|
-
# @option opts [
|
65
|
+
# @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
65
66
|
# @return [Server]
|
66
67
|
describe 'servers_post test' do
|
67
68
|
it 'should work' do
|
68
|
-
# assertion here. ref: https://
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
70
|
end
|
70
71
|
end
|
71
72
|
|
@@ -73,12 +74,12 @@ describe 'ServersApi' do
|
|
73
74
|
# Deprovision a server.
|
74
75
|
# Deprovision the server. Supports advanced deprovision configuration.
|
75
76
|
# @param server_id The server's ID.
|
77
|
+
# @param relinquish_ip_block
|
76
78
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @option opts [RelinquishIpBlock] :relinquish_ip_block
|
78
79
|
# @return [String]
|
79
80
|
describe 'servers_server_id_actions_deprovision_post test' do
|
80
81
|
it 'should work' do
|
81
|
-
# assertion here. ref: https://
|
82
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
82
83
|
end
|
83
84
|
end
|
84
85
|
|
@@ -90,7 +91,7 @@ describe 'ServersApi' do
|
|
90
91
|
# @return [ActionResult]
|
91
92
|
describe 'servers_server_id_actions_power_off_post test' do
|
92
93
|
it 'should work' do
|
93
|
-
# assertion here. ref: https://
|
94
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
94
95
|
end
|
95
96
|
end
|
96
97
|
|
@@ -102,7 +103,21 @@ describe 'ServersApi' do
|
|
102
103
|
# @return [ActionResult]
|
103
104
|
describe 'servers_server_id_actions_power_on_post test' do
|
104
105
|
it 'should work' do
|
105
|
-
# assertion here. ref: https://
|
106
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# unit tests for servers_server_id_actions_provision_post
|
111
|
+
# Provision server.
|
112
|
+
# Provision reserved server. Server DNS will be configured to access Google's public DNS at 8.8.8.8.
|
113
|
+
# @param server_id The server's ID.
|
114
|
+
# @param server_provision
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
117
|
+
# @return [Server]
|
118
|
+
describe 'servers_server_id_actions_provision_post test' do
|
119
|
+
it 'should work' do
|
120
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
106
121
|
end
|
107
122
|
end
|
108
123
|
|
@@ -114,7 +129,7 @@ describe 'ServersApi' do
|
|
114
129
|
# @return [ActionResult]
|
115
130
|
describe 'servers_server_id_actions_reboot_post test' do
|
116
131
|
it 'should work' do
|
117
|
-
# assertion here. ref: https://
|
132
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
118
133
|
end
|
119
134
|
end
|
120
135
|
|
@@ -122,25 +137,25 @@ describe 'ServersApi' do
|
|
122
137
|
# Reserve server.
|
123
138
|
# Reserve specific server.
|
124
139
|
# @param server_id The server's ID.
|
140
|
+
# @param server_reserve
|
125
141
|
# @param [Hash] opts the optional parameters
|
126
|
-
# @option opts [ServerReserve] :server_reserve
|
127
142
|
# @return [Server]
|
128
143
|
describe 'servers_server_id_actions_reserve_post test' do
|
129
144
|
it 'should work' do
|
130
|
-
# assertion here. ref: https://
|
145
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
131
146
|
end
|
132
147
|
end
|
133
148
|
|
134
149
|
# unit tests for servers_server_id_actions_reset_post
|
135
150
|
# Reset server.
|
136
|
-
# Reset specific server.
|
151
|
+
# Deprecated: Reset specific server. Reset only supports network configurations of type 'private network' or 'IP blocks'. As an alternative, the suggested action is to deprovision the server and provision a new one with the same configuration.
|
137
152
|
# @param server_id The server's ID.
|
153
|
+
# @param server_reset
|
138
154
|
# @param [Hash] opts the optional parameters
|
139
|
-
# @option opts [ServerReset] :server_reset
|
140
155
|
# @return [ResetResult]
|
141
156
|
describe 'servers_server_id_actions_reset_post test' do
|
142
157
|
it 'should work' do
|
143
|
-
# assertion here. ref: https://
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
144
159
|
end
|
145
160
|
end
|
146
161
|
|
@@ -152,7 +167,7 @@ describe 'ServersApi' do
|
|
152
167
|
# @return [ActionResult]
|
153
168
|
describe 'servers_server_id_actions_shutdown_post test' do
|
154
169
|
it 'should work' do
|
155
|
-
# assertion here. ref: https://
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
156
171
|
end
|
157
172
|
end
|
158
173
|
|
@@ -164,7 +179,7 @@ describe 'ServersApi' do
|
|
164
179
|
# @return [DeleteResult]
|
165
180
|
describe 'servers_server_id_delete test' do
|
166
181
|
it 'should work' do
|
167
|
-
# assertion here. ref: https://
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
168
183
|
end
|
169
184
|
end
|
170
185
|
|
@@ -176,34 +191,34 @@ describe 'ServersApi' do
|
|
176
191
|
# @return [Server]
|
177
192
|
describe 'servers_server_id_get test' do
|
178
193
|
it 'should work' do
|
179
|
-
# assertion here. ref: https://
|
194
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
180
195
|
end
|
181
196
|
end
|
182
197
|
|
183
198
|
# unit tests for servers_server_id_ip_blocks_ip_block_id_delete
|
184
199
|
# Unassign IP Block from Server.
|
185
|
-
# Removes the IP block from the server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure.
|
200
|
+
# Removes the IP block from the server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>
|
186
201
|
# @param server_id The server's ID.
|
187
202
|
# @param ip_block_id The IP Block identifier.
|
203
|
+
# @param relinquish_ip_block
|
188
204
|
# @param [Hash] opts the optional parameters
|
189
|
-
# @option opts [RelinquishIpBlock] :relinquish_ip_block
|
190
205
|
# @return [String]
|
191
206
|
describe 'servers_server_id_ip_blocks_ip_block_id_delete test' do
|
192
207
|
it 'should work' do
|
193
|
-
# assertion here. ref: https://
|
208
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
194
209
|
end
|
195
210
|
end
|
196
211
|
|
197
212
|
# unit tests for servers_server_id_ip_blocks_post
|
198
213
|
# Assign IP Block to Server.
|
199
|
-
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure.
|
214
|
+
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
200
215
|
# @param server_id The server's ID.
|
216
|
+
# @param server_ip_block
|
201
217
|
# @param [Hash] opts the optional parameters
|
202
|
-
# @option opts [ServerIpBlock] :server_ip_block
|
203
218
|
# @return [ServerIpBlock]
|
204
219
|
describe 'servers_server_id_ip_blocks_post test' do
|
205
220
|
it 'should work' do
|
206
|
-
# assertion here. ref: https://
|
221
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
207
222
|
end
|
208
223
|
end
|
209
224
|
|
@@ -211,38 +226,96 @@ describe 'ServersApi' do
|
|
211
226
|
# Patch a Server.
|
212
227
|
# Any changes to the hostname or description using the BMC API will reflect solely in the BMC API and portal. The changes are intended to keep the BMC data up to date with your server. We do not have access to your server's settings. Local changes to the server's hostname will not be reflected in the API or portal.
|
213
228
|
# @param server_id The server's ID.
|
229
|
+
# @param server_patch
|
214
230
|
# @param [Hash] opts the optional parameters
|
215
|
-
# @option opts [ServerPatch] :server_patch
|
216
231
|
# @return [Server]
|
217
232
|
describe 'servers_server_id_patch test' do
|
218
233
|
it 'should work' do
|
219
|
-
# assertion here. ref: https://
|
234
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
# unit tests for servers_server_id_private_networks_patch
|
239
|
+
# Updates the server's private network's IP addresses
|
240
|
+
# IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>
|
241
|
+
# @param server_id The server's ID.
|
242
|
+
# @param private_network_id The private network identifier.
|
243
|
+
# @param server_network_update
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
246
|
+
# @return [ServerPrivateNetwork]
|
247
|
+
describe 'servers_server_id_private_networks_patch test' do
|
248
|
+
it 'should work' do
|
249
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
220
250
|
end
|
221
251
|
end
|
222
252
|
|
223
253
|
# unit tests for servers_server_id_private_networks_post
|
224
254
|
# Adds the server to a private network.
|
225
|
-
# Adds the server to a private network.
|
255
|
+
# Adds the server to a private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.
|
226
256
|
# @param server_id The server's ID.
|
257
|
+
# @param server_private_network
|
227
258
|
# @param [Hash] opts the optional parameters
|
228
|
-
# @option opts [
|
259
|
+
# @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
229
260
|
# @return [ServerPrivateNetwork]
|
230
261
|
describe 'servers_server_id_private_networks_post test' do
|
231
262
|
it 'should work' do
|
232
|
-
# assertion here. ref: https://
|
263
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
# unit tests for servers_server_id_public_networks_delete
|
268
|
+
# Removes the server from the Public Network
|
269
|
+
# Removes the server from the Public Network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>
|
270
|
+
# @param server_id The server's ID.
|
271
|
+
# @param public_network_id The Public Network identifier.
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [String]
|
274
|
+
describe 'servers_server_id_public_networks_delete test' do
|
275
|
+
it 'should work' do
|
276
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
# unit tests for servers_server_id_public_networks_patch
|
281
|
+
# Updates the server's public network's IP addresses.
|
282
|
+
# IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>
|
283
|
+
# @param server_id The server's ID.
|
284
|
+
# @param public_network_id The Public Network identifier.
|
285
|
+
# @param server_network_update
|
286
|
+
# @param [Hash] opts the optional parameters
|
287
|
+
# @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
288
|
+
# @return [ServerPublicNetwork]
|
289
|
+
describe 'servers_server_id_public_networks_patch test' do
|
290
|
+
it 'should work' do
|
291
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
# unit tests for servers_server_id_public_networks_post
|
296
|
+
# Adds the server to a Public Network.
|
297
|
+
# Adds the server to a Public Network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.
|
298
|
+
# @param server_id The server's ID.
|
299
|
+
# @param server_public_network
|
300
|
+
# @param [Hash] opts the optional parameters
|
301
|
+
# @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
302
|
+
# @return [ServerPublicNetwork]
|
303
|
+
describe 'servers_server_id_public_networks_post test' do
|
304
|
+
it 'should work' do
|
305
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
233
306
|
end
|
234
307
|
end
|
235
308
|
|
236
309
|
# unit tests for servers_server_id_tags_put
|
237
|
-
#
|
238
|
-
#
|
310
|
+
# Overwrite tags assigned for Server.
|
311
|
+
# Overwrites tags assigned for Server and unassigns any tags not part of the request.
|
239
312
|
# @param server_id The server's ID.
|
313
|
+
# @param tag_assignment_request
|
240
314
|
# @param [Hash] opts the optional parameters
|
241
|
-
# @option opts [Array<TagAssignmentRequest>] :tag_assignment_request
|
242
315
|
# @return [Server]
|
243
316
|
describe 'servers_server_id_tags_put test' do
|
244
317
|
it 'should work' do
|
245
|
-
# assertion here. ref: https://
|
318
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
246
319
|
end
|
247
320
|
end
|
248
321
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,19 +39,19 @@ describe 'SSHKeysApi' do
|
|
39
39
|
# @return [Array<SshKey>]
|
40
40
|
describe 'ssh_keys_get test' do
|
41
41
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
# unit tests for ssh_keys_post
|
47
47
|
# Create SSH Key.
|
48
48
|
# Create an SSH Key. SSH Keys created can be used for server creation and reset functionality.
|
49
|
+
# @param ssh_key_create
|
49
50
|
# @param [Hash] opts the optional parameters
|
50
|
-
# @option opts [SshKeyCreate] :ssh_key_create
|
51
51
|
# @return [SshKey]
|
52
52
|
describe 'ssh_keys_post test' do
|
53
53
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
@@ -63,7 +63,7 @@ describe 'SSHKeysApi' do
|
|
63
63
|
# @return [DeleteSshKeyResult]
|
64
64
|
describe 'ssh_keys_ssh_key_id_delete test' do
|
65
65
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
@@ -75,7 +75,7 @@ describe 'SSHKeysApi' do
|
|
75
75
|
# @return [SshKey]
|
76
76
|
describe 'ssh_keys_ssh_key_id_get test' do
|
77
77
|
it 'should work' do
|
78
|
-
# assertion here. ref: https://
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
@@ -83,12 +83,12 @@ describe 'SSHKeysApi' do
|
|
83
83
|
# Edit SSH Key.
|
84
84
|
# Edit SSH Key details.
|
85
85
|
# @param ssh_key_id The SSH Key's ID.
|
86
|
+
# @param ssh_key_update
|
86
87
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @option opts [SshKeyUpdate] :ssh_key_update
|
88
88
|
# @return [SshKey]
|
89
89
|
describe 'ssh_keys_ssh_key_id_put test' do
|
90
90
|
it 'should work' do
|
91
|
-
# assertion here. ref: https://
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,12 +22,14 @@ describe BmcApi::ActionResult do
|
|
22
22
|
|
23
23
|
describe 'test an instance of ActionResult' do
|
24
24
|
it 'should create an instance of ActionResult' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::ActionResult)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "result"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe BmcApi::DeleteResult do
|
|
22
22
|
|
23
23
|
describe 'test an instance of DeleteResult' do
|
24
24
|
it 'should create an instance of DeleteResult' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::DeleteResult)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "result"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "server_id"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe BmcApi::DeleteSshKeyResult do
|
|
22
22
|
|
23
23
|
describe 'test an instance of DeleteSshKeyResult' do
|
24
24
|
it 'should create an instance of DeleteSshKeyResult' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::DeleteSshKeyResult)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "result"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "ssh_key_id"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
data/spec/models/error_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe BmcApi::Error do
|
|
22
22
|
|
23
23
|
describe 'test an instance of Error' do
|
24
24
|
it 'should create an instance of Error' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::Error)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "message"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "validation_errors"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,12 +22,14 @@ describe BmcApi::IpBlocksConfiguration do
|
|
22
22
|
|
23
23
|
describe 'test an instance of IpBlocksConfiguration' do
|
24
24
|
it 'should create an instance of IpBlocksConfiguration' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::IpBlocksConfiguration)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "configuration_type"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PURCHASE_NEW", "USER_DEFINED", "NONE"])
|
32
34
|
# validator.allowable_values.each do |value|
|
33
35
|
# expect { instance.configuration_type = value }.not_to raise_error
|
@@ -37,7 +39,7 @@ describe BmcApi::IpBlocksConfiguration do
|
|
37
39
|
|
38
40
|
describe 'test attribute "ip_blocks"' do
|
39
41
|
it 'should work' do
|
40
|
-
# assertion here. ref: https://
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
41
43
|
end
|
42
44
|
end
|
43
45
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,32 @@ describe BmcApi::NetworkConfiguration do
|
|
22
22
|
|
23
23
|
describe 'test an instance of NetworkConfiguration' do
|
24
24
|
it 'should create an instance of NetworkConfiguration' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::NetworkConfiguration)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
30
|
+
describe 'test attribute "gateway_address"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
28
36
|
describe 'test attribute "private_network_configuration"' do
|
29
37
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
39
|
end
|
32
40
|
end
|
33
41
|
|
34
42
|
describe 'test attribute "ip_blocks_configuration"' do
|
35
43
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "public_network_configuration"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
51
|
end
|
38
52
|
end
|
39
53
|
|