pnap_bmc_api 1.2.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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/VERSION +1 -1
  4. data/docs/IpBlocksConfiguration.md +1 -1
  5. data/docs/NetworkConfiguration.md +1 -1
  6. data/docs/OsConfiguration.md +8 -4
  7. data/docs/OsConfigurationCloudInit.md +1 -1
  8. data/docs/OsConfigurationMapEsxi.md +2 -2
  9. data/docs/OsConfigurationMapProxmox.md +2 -2
  10. data/docs/OsConfigurationNetrisController.md +22 -0
  11. data/docs/OsConfigurationNetrisSoftgate.md +24 -0
  12. data/docs/PrivateNetworkConfiguration.md +2 -2
  13. data/docs/Server.md +3 -3
  14. data/docs/ServerCreate.md +2 -2
  15. data/docs/ServerIpBlock.md +1 -1
  16. data/docs/ServerNetworkUpdate.md +18 -0
  17. data/docs/ServerPrivateNetwork.md +3 -3
  18. data/docs/ServerPublicNetwork.md +2 -2
  19. data/docs/ServersApi.md +164 -2
  20. data/lib/pnap_bmc_api/api/servers_api.rb +169 -2
  21. data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +1 -1
  22. data/lib/pnap_bmc_api/models/network_configuration.rb +1 -1
  23. data/lib/pnap_bmc_api/models/os_configuration.rb +22 -4
  24. data/lib/pnap_bmc_api/models/os_configuration_cloud_init.rb +1 -1
  25. data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +2 -2
  26. data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +2 -2
  27. data/lib/pnap_bmc_api/models/os_configuration_netris_controller.rb +241 -0
  28. data/lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb +251 -0
  29. data/lib/pnap_bmc_api/models/private_network_configuration.rb +2 -2
  30. data/lib/pnap_bmc_api/models/server.rb +3 -3
  31. data/lib/pnap_bmc_api/models/server_create.rb +2 -2
  32. data/lib/pnap_bmc_api/models/server_ip_block.rb +1 -1
  33. data/lib/pnap_bmc_api/models/server_network_update.rb +223 -0
  34. data/lib/pnap_bmc_api/models/server_private_network.rb +3 -3
  35. data/lib/pnap_bmc_api/models/server_public_network.rb +2 -26
  36. data/lib/pnap_bmc_api.rb +3 -0
  37. data/spec/models/os_configuration_netris_controller_spec.rb +46 -0
  38. data/spec/models/os_configuration_netris_softgate_spec.rb +52 -0
  39. data/spec/models/server_network_update_spec.rb +34 -0
  40. metadata +41 -29
@@ -0,0 +1,52 @@
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::OsConfigurationNetrisSoftgate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BmcApi::OsConfigurationNetrisSoftgate do
21
+ let(:instance) { BmcApi::OsConfigurationNetrisSoftgate.new }
22
+
23
+ describe 'test an instance of OsConfigurationNetrisSoftgate' do
24
+ it 'should create an instance of OsConfigurationNetrisSoftgate' do
25
+ expect(instance).to be_instance_of(BmcApi::OsConfigurationNetrisSoftgate)
26
+ end
27
+ end
28
+ describe 'test attribute "host_os"' 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
+ describe 'test attribute "controller_address"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "controller_version"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "controller_auth_key"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
@@ -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.2.0
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: 2022-12-07 00:00:00.000000000 Z
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/quota_edit_limit_request_details_all_of_spec.rb
212
- - spec/models/delete_result_spec.rb
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
228
+ - spec/models/server_private_network_spec.rb
229
+ - spec/models/network_configuration_spec.rb
230
+ - spec/models/reset_result_spec.rb
231
+ - spec/models/action_result_spec.rb
213
232
  - spec/models/os_configuration_map_proxmox_spec.rb
233
+ - spec/models/tag_assignment_spec.rb
234
+ - spec/models/server_ip_block_spec.rb
214
235
  - spec/models/server_reset_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
215
239
  - spec/models/server_create_spec.rb
216
- - spec/models/public_network_configuration_spec.rb
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
246
+ - spec/models/private_network_configuration_spec.rb
217
247
  - spec/models/ssh_key_create_spec.rb
248
+ - spec/models/ssh_key_spec.rb
218
249
  - spec/models/os_configuration_windows_spec.rb
219
250
  - spec/models/tag_assignment_request_spec.rb
220
- - spec/models/quota_edit_limit_request_details_spec.rb
221
- - spec/models/quota_spec.rb
222
- - spec/models/relinquish_ip_block_spec.rb
223
- - spec/models/ssh_key_spec.rb
224
- - spec/models/os_configuration_spec.rb
225
- - spec/models/quota_edit_limit_request_spec.rb
226
- - spec/models/server_private_network_spec.rb
227
- - spec/models/os_configuration_map_spec.rb
228
- - spec/models/error_spec.rb
229
- - spec/models/os_configuration_map_esxi_spec.rb
230
251
  - spec/models/ssh_key_update_spec.rb
231
- - spec/models/server_reserve_spec.rb
232
- - spec/models/os_configuration_cloud_init_spec.rb
233
- - spec/models/tag_assignment_spec.rb
234
- - spec/models/server_spec.rb
235
- - spec/models/action_result_spec.rb
236
- - spec/models/server_patch_spec.rb
237
- - spec/models/network_configuration_spec.rb
252
+ - spec/models/os_configuration_spec.rb
253
+ - spec/models/delete_result_spec.rb
254
+ - spec/models/quota_edit_limit_request_details_all_of_spec.rb
238
255
  - spec/models/ip_blocks_configuration_spec.rb
239
- - spec/models/server_public_network_spec.rb
240
- - spec/models/server_ip_block_spec.rb
241
- - spec/models/private_network_configuration_spec.rb
242
- - spec/models/delete_ssh_key_result_spec.rb
243
- - spec/models/reset_result_spec.rb
244
256
  - spec/spec_helper.rb