pnap_bmc_api 1.3.0 → 1.4.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 -0
- data/VERSION +1 -1
- data/docs/IpBlocksConfiguration.md +1 -1
- data/docs/OsConfiguration.md +8 -4
- data/docs/OsConfigurationMapEsxi.md +2 -2
- data/docs/OsConfigurationMapProxmox.md +2 -2
- data/docs/OsConfigurationNetrisController.md +22 -0
- data/docs/OsConfigurationNetrisSoftgate.md +24 -0
- data/docs/PrivateNetworkConfiguration.md +1 -1
- data/docs/Server.md +3 -3
- data/docs/ServerCreate.md +2 -2
- data/docs/ServerIpBlock.md +1 -1
- data/docs/ServerNetworkUpdate.md +18 -0
- data/docs/ServerPrivateNetwork.md +1 -1
- data/docs/ServerPublicNetwork.md +1 -1
- data/docs/ServersApi.md +156 -0
- data/lib/pnap_bmc_api/api/servers_api.rb +158 -0
- data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +1 -1
- data/lib/pnap_bmc_api/models/os_configuration.rb +22 -4
- data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +2 -2
- data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +2 -2
- data/lib/pnap_bmc_api/models/os_configuration_netris_controller.rb +241 -0
- data/lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb +251 -0
- data/lib/pnap_bmc_api/models/private_network_configuration.rb +1 -1
- data/lib/pnap_bmc_api/models/server.rb +3 -3
- data/lib/pnap_bmc_api/models/server_create.rb +2 -2
- data/lib/pnap_bmc_api/models/server_ip_block.rb +1 -1
- data/lib/pnap_bmc_api/models/server_network_update.rb +223 -0
- data/lib/pnap_bmc_api/models/server_private_network.rb +1 -1
- data/lib/pnap_bmc_api/models/server_public_network.rb +1 -1
- data/lib/pnap_bmc_api.rb +3 -0
- data/spec/models/os_configuration_netris_controller_spec.rb +46 -0
- data/spec/models/os_configuration_netris_softgate_spec.rb +52 -0
- data/spec/models/server_network_update_spec.rb +34 -0
- metadata +42 -30
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Bare Metal Cloud API
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: 0.1
|
7
|
+
Contact: support@phoenixnap.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for BmcApi::ServerNetworkUpdate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BmcApi::ServerNetworkUpdate do
|
21
|
+
let(:instance) { BmcApi::ServerNetworkUpdate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ServerNetworkUpdate' do
|
24
|
+
it 'should create an instance of ServerNetworkUpdate' do
|
25
|
+
expect(instance).to be_instance_of(BmcApi::ServerNetworkUpdate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "ips"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnap_bmc_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -72,6 +72,8 @@ files:
|
|
72
72
|
- docs/OsConfigurationMap.md
|
73
73
|
- docs/OsConfigurationMapEsxi.md
|
74
74
|
- docs/OsConfigurationMapProxmox.md
|
75
|
+
- docs/OsConfigurationNetrisController.md
|
76
|
+
- docs/OsConfigurationNetrisSoftgate.md
|
75
77
|
- docs/OsConfigurationWindows.md
|
76
78
|
- docs/PrivateNetworkConfiguration.md
|
77
79
|
- docs/PublicNetworkConfiguration.md
|
@@ -86,6 +88,7 @@ files:
|
|
86
88
|
- docs/Server.md
|
87
89
|
- docs/ServerCreate.md
|
88
90
|
- docs/ServerIpBlock.md
|
91
|
+
- docs/ServerNetworkUpdate.md
|
89
92
|
- docs/ServerPatch.md
|
90
93
|
- docs/ServerPrivateNetwork.md
|
91
94
|
- docs/ServerPublicNetwork.md
|
@@ -115,6 +118,8 @@ files:
|
|
115
118
|
- lib/pnap_bmc_api/models/os_configuration_map.rb
|
116
119
|
- lib/pnap_bmc_api/models/os_configuration_map_esxi.rb
|
117
120
|
- lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb
|
121
|
+
- lib/pnap_bmc_api/models/os_configuration_netris_controller.rb
|
122
|
+
- lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb
|
118
123
|
- lib/pnap_bmc_api/models/os_configuration_windows.rb
|
119
124
|
- lib/pnap_bmc_api/models/private_network_configuration.rb
|
120
125
|
- lib/pnap_bmc_api/models/public_network_configuration.rb
|
@@ -127,6 +132,7 @@ files:
|
|
127
132
|
- lib/pnap_bmc_api/models/server.rb
|
128
133
|
- lib/pnap_bmc_api/models/server_create.rb
|
129
134
|
- lib/pnap_bmc_api/models/server_ip_block.rb
|
135
|
+
- lib/pnap_bmc_api/models/server_network_update.rb
|
130
136
|
- lib/pnap_bmc_api/models/server_patch.rb
|
131
137
|
- lib/pnap_bmc_api/models/server_private_network.rb
|
132
138
|
- lib/pnap_bmc_api/models/server_public_network.rb
|
@@ -154,6 +160,8 @@ files:
|
|
154
160
|
- spec/models/os_configuration_map_esxi_spec.rb
|
155
161
|
- spec/models/os_configuration_map_proxmox_spec.rb
|
156
162
|
- spec/models/os_configuration_map_spec.rb
|
163
|
+
- spec/models/os_configuration_netris_controller_spec.rb
|
164
|
+
- spec/models/os_configuration_netris_softgate_spec.rb
|
157
165
|
- spec/models/os_configuration_spec.rb
|
158
166
|
- spec/models/os_configuration_windows_spec.rb
|
159
167
|
- spec/models/private_network_configuration_spec.rb
|
@@ -166,6 +174,7 @@ files:
|
|
166
174
|
- spec/models/reset_result_spec.rb
|
167
175
|
- spec/models/server_create_spec.rb
|
168
176
|
- spec/models/server_ip_block_spec.rb
|
177
|
+
- spec/models/server_network_update_spec.rb
|
169
178
|
- spec/models/server_patch_spec.rb
|
170
179
|
- spec/models/server_private_network_spec.rb
|
171
180
|
- spec/models/server_public_network_spec.rb
|
@@ -203,42 +212,45 @@ signing_key:
|
|
203
212
|
specification_version: 4
|
204
213
|
summary: Bare Metal Cloud API Ruby Gem
|
205
214
|
test_files:
|
206
|
-
- spec/api/ssh_keys_api_spec.rb
|
207
|
-
- spec/api/servers_api_spec.rb
|
208
215
|
- spec/api/quotas_api_spec.rb
|
216
|
+
- spec/api/servers_api_spec.rb
|
217
|
+
- spec/api/ssh_keys_api_spec.rb
|
209
218
|
- spec/api_client_spec.rb
|
210
219
|
- spec/configuration_spec.rb
|
211
|
-
- spec/models/
|
212
|
-
- spec/models/
|
213
|
-
- spec/models/
|
220
|
+
- spec/models/public_network_configuration_spec.rb
|
221
|
+
- spec/models/server_reserve_spec.rb
|
222
|
+
- spec/models/relinquish_ip_block_spec.rb
|
223
|
+
- spec/models/quota_edit_limit_request_details_spec.rb
|
224
|
+
- spec/models/delete_ssh_key_result_spec.rb
|
225
|
+
- spec/models/server_patch_spec.rb
|
226
|
+
- spec/models/server_spec.rb
|
227
|
+
- spec/models/error_spec.rb
|
214
228
|
- spec/models/server_private_network_spec.rb
|
215
|
-
- spec/models/
|
216
|
-
- spec/models/
|
217
|
-
- spec/models/
|
218
|
-
- spec/models/
|
219
|
-
- spec/models/
|
229
|
+
- spec/models/network_configuration_spec.rb
|
230
|
+
- spec/models/reset_result_spec.rb
|
231
|
+
- spec/models/action_result_spec.rb
|
232
|
+
- spec/models/os_configuration_map_proxmox_spec.rb
|
233
|
+
- spec/models/tag_assignment_spec.rb
|
220
234
|
- spec/models/server_ip_block_spec.rb
|
221
235
|
- spec/models/server_reset_spec.rb
|
222
|
-
- spec/models/
|
223
|
-
- spec/models/
|
224
|
-
- spec/models/
|
225
|
-
- spec/models/quota_edit_limit_request_details_spec.rb
|
226
|
-
- spec/models/os_configuration_map_spec.rb
|
236
|
+
- spec/models/os_configuration_netris_softgate_spec.rb
|
237
|
+
- spec/models/server_network_update_spec.rb
|
238
|
+
- spec/models/server_public_network_spec.rb
|
227
239
|
- spec/models/server_create_spec.rb
|
228
|
-
- spec/models/
|
229
|
-
- spec/models/
|
240
|
+
- spec/models/quota_edit_limit_request_spec.rb
|
241
|
+
- spec/models/os_configuration_cloud_init_spec.rb
|
242
|
+
- spec/models/os_configuration_netris_controller_spec.rb
|
243
|
+
- spec/models/os_configuration_map_esxi_spec.rb
|
244
|
+
- spec/models/quota_spec.rb
|
245
|
+
- spec/models/os_configuration_map_spec.rb
|
230
246
|
- spec/models/private_network_configuration_spec.rb
|
247
|
+
- spec/models/ssh_key_create_spec.rb
|
248
|
+
- spec/models/ssh_key_spec.rb
|
249
|
+
- spec/models/os_configuration_windows_spec.rb
|
231
250
|
- spec/models/tag_assignment_request_spec.rb
|
232
|
-
- spec/models/
|
233
|
-
- spec/models/network_configuration_spec.rb
|
234
|
-
- spec/models/ip_blocks_configuration_spec.rb
|
235
|
-
- spec/models/relinquish_ip_block_spec.rb
|
236
|
-
- spec/models/os_configuration_cloud_init_spec.rb
|
237
|
-
- spec/models/server_patch_spec.rb
|
238
|
-
- spec/models/delete_ssh_key_result_spec.rb
|
251
|
+
- spec/models/ssh_key_update_spec.rb
|
239
252
|
- spec/models/os_configuration_spec.rb
|
240
|
-
- spec/models/
|
241
|
-
- spec/models/
|
242
|
-
- spec/models/
|
243
|
-
- spec/models/quota_edit_limit_request_spec.rb
|
253
|
+
- spec/models/delete_result_spec.rb
|
254
|
+
- spec/models/quota_edit_limit_request_details_all_of_spec.rb
|
255
|
+
- spec/models/ip_blocks_configuration_spec.rb
|
244
256
|
- spec/spec_helper.rb
|