pnap_bmc_api 2.3.0 → 2.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.
@@ -28,7 +28,7 @@ module BmcApi
28
28
  # Description of server.
29
29
  attr_accessor :description
30
30
 
31
- # The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `windows/srv2025std`, `windows/srv2025dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `debian/trixie`, `proxmox/bullseye`, `proxmox/proxmox8`, `proxmox/proxmox9`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
31
+ # The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `windows/srv2025std`, `windows/srv2025dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `debian/trixie`, `proxmox/bullseye`, `proxmox/proxmox8`, `proxmox/proxmox9`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` , `netris/softgate_25g` or `ipxe`.
32
32
  attr_accessor :os
33
33
 
34
34
  # Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c4.small`, `d1.c4.medium`, `d1.c4.large`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `a1.c5.xlarge`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`, `d3.c6.medium`, `d3.c1.large`, `d3.c2.large`, `d3.c3.large`, `d3.m1.xlarge`, `d3.m2.xlarge`, `d3.m3.xlarge`, `d3.g2.c1.xlarge`, `d3.g2.c2.xlarge`, `d3.g2.c3.xlarge`, `d3.g3.c2.medium`, `s4.x6.c6.large`, `s4.x6.m6.xlarge`, `s5.x6.c3.medium`, `s5.x6.c3.large`, `s5.x6.c8.medium`, `s5.x6.c9.medium`, `s5.x6.c8.large`, `s5.x6.c9.large`, `s5.x6.m8.xlarge`, `s5.x6.m9.xlarge`, `s4.c3.medium`, `s4.c6.medium`, `s4.c6.large`, `s4.c6.xlarge`, `s4.s2.large`, `a2.c9.large` or `a2.c9.xlarge`.
@@ -64,7 +64,7 @@ module BmcApi
64
64
  # The reservation reference id if any.
65
65
  attr_accessor :reservation_id
66
66
 
67
- # The pricing model this server is being billed. Currently this field should be set to `HOURLY`, `ONE_MONTH_RESERVATION`, `TWELVE_MONTHS_RESERVATION`, `TWENTY_FOUR_MONTHS_RESERVATION` or `THIRTY_SIX_MONTHS_RESERVATION`.
67
+ # The pricing model this server is being billed. Currently this field should be set to `HOURLY`, `ONE_MONTH_RESERVATION`, `TWELVE_MONTHS_RESERVATION`, `TWENTY_FOUR_MONTHS_RESERVATION`, `THIRTY_SIX_MONTHS_RESERVATION` or `CUSTOM_TERM_RESERVATION`.
68
68
  attr_accessor :pricing_model
69
69
 
70
70
  # Auto-generated password set for user `Admin` on Windows server, user `root` on ESXi servers, user `root` on Proxmox server and user `netris` on Netris servers.<br> The password is not stored and therefore will only be returned in response to provisioning a server. Copy and save it for future reference.
@@ -22,7 +22,7 @@ module BmcApi
22
22
  # Description of server.
23
23
  attr_accessor :description
24
24
 
25
- # The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `windows/srv2025std`, `windows/srv2025dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `debian/trixie`, `proxmox/bullseye`, `proxmox/proxmox8`, `proxmox/proxmox9`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
25
+ # The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `windows/srv2025std`, `windows/srv2025dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `debian/trixie`, `proxmox/bullseye`, `proxmox/proxmox8`, `proxmox/proxmox9`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g`, `netris/softgate_25g` or `ipxe`.
26
26
  attr_accessor :os
27
27
 
28
28
  # Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c4.small`, `d1.c4.medium`, `d1.c4.large`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `a1.c5.xlarge`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`, `d3.c6.medium`, `d3.c1.large`, `d3.c2.large`, `d3.c3.large`, `d3.m1.xlarge`, `d3.m2.xlarge`, `d3.m3.xlarge`, `d3.g2.c1.xlarge`, `d3.g2.c2.xlarge`, `d3.g2.c3.xlarge`,`d3.g3.c2.medium`, `s4.x6.c6.large`, `s4.x6.m6.xlarge`, `s5.x6.c3.medium`, `s5.x6.c3.large`, `s5.x6.c8.medium`, `s5.x6.c9.medium`, `s5.x6.c8.large`, `s5.x6.c9.large`, `s5.x6.m8.xlarge`, `s5.x6.m9.xlarge`, `s4.c3.medium`, `s4.c6.medium`, `s4.c6.large`, `s4.c6.xlarge`, `s4.s2.large`, `a2.c9.large` or `a2.c9.xlarge`.
@@ -22,7 +22,7 @@ module BmcApi
22
22
  # Description of server.
23
23
  attr_accessor :description
24
24
 
25
- # The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `windows/srv2025std`, `windows/srv2025dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux8`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `debian/trixie`, `proxmox/bullseye`, `proxmox/proxmox8`, `proxmox/proxmox9`,`netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
25
+ # The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `windows/srv2025std`, `windows/srv2025dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux8`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `debian/trixie`, `proxmox/bullseye`, `proxmox/proxmox8`, `proxmox/proxmox9`,`netris/controller`, `netris/softgate_1g`, `netris/softgate_10g`, `netris/softgate_25g` or `ipxe`.
26
26
  attr_accessor :os
27
27
 
28
28
  # Whether or not to install SSH keys marked as default in addition to any SSH keys specified in this request.
@@ -19,7 +19,7 @@ module BmcApi
19
19
  # The network identifier.
20
20
  attr_accessor :id
21
21
 
22
- # Configurable/configured IPs on the server.<br> At least 1 IP address is required. Valid IP formats include single IP addresses or IP ranges (IPv4 or IPv6). All IPs must be within the network's range.<br> Setting the `computeSlaacIp` field to `true` allows you to provide an empty array of IPs.<br> Additionally, setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. Note that at least one IP is required for the gateway address to be selected from this network. <li> Assign one or more IP addresses which are already configured on other resource(s) in network.</ul>
22
+ # Configurable/configured IPs on the server.<br> At least 1 IP address is required. Valid IP formats include single IP addresses or IP ranges (IPv4 or IPv6). All IPs must be within the network's range.<br> Setting the `computeSlaacIp` field to `true` allows you to provide an empty array of IPs.<br> Referencing network as OS native network allows you to provide an empty array of IPs.<br> Additionally, setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. Note that at least one IP is required for the gateway address to be selected from this network. <li> Assign one or more IP addresses which are already configured on other resource(s) in network.</ul>
23
23
  attr_accessor :ips
24
24
 
25
25
  # (Read-only) The status of the assignment to the network.
@@ -95,6 +95,8 @@ module BmcApi
95
95
  if (value = attributes[:'ips']).is_a?(Array)
96
96
  self.ips = value
97
97
  end
98
+ else
99
+ self.ips = nil
98
100
  end
99
101
 
100
102
  if attributes.key?(:'status_description')
@@ -119,6 +121,10 @@ module BmcApi
119
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
120
122
  end
121
123
 
124
+ if @ips.nil?
125
+ invalid_properties.push('invalid value for "ips", ips cannot be nil.')
126
+ end
127
+
122
128
  invalid_properties
123
129
  end
124
130
 
@@ -127,6 +133,7 @@ module BmcApi
127
133
  def valid?
128
134
  warn '[DEPRECATED] the `valid?` method is obsolete'
129
135
  return false if @id.nil?
136
+ return false if @ips.nil?
130
137
  true
131
138
  end
132
139
 
@@ -140,6 +147,16 @@ module BmcApi
140
147
  @id = id
141
148
  end
142
149
 
150
+ # Custom attribute writer method with validation
151
+ # @param [Object] ips Value to be assigned
152
+ def ips=(ips)
153
+ if ips.nil?
154
+ fail ArgumentError, 'ips cannot be nil'
155
+ end
156
+
157
+ @ips = ips
158
+ end
159
+
143
160
  # Checks equality by comparing each attribute.
144
161
  # @param [Object] Object to be compared
145
162
  def ==(o)
data/lib/pnap_bmc_api.rb CHANGED
@@ -29,6 +29,8 @@ require 'pnap_bmc_api/models/ip_blocks_configuration'
29
29
  require 'pnap_bmc_api/models/network_configuration'
30
30
  require 'pnap_bmc_api/models/os_configuration'
31
31
  require 'pnap_bmc_api/models/os_configuration_cloud_init'
32
+ require 'pnap_bmc_api/models/os_configuration_ipxe'
33
+ require 'pnap_bmc_api/models/os_configuration_ipxe_native_vlan_configuration'
32
34
  require 'pnap_bmc_api/models/os_configuration_map'
33
35
  require 'pnap_bmc_api/models/os_configuration_map_esxi'
34
36
  require 'pnap_bmc_api/models/os_configuration_map_proxmox'
@@ -40,6 +42,7 @@ require 'pnap_bmc_api/models/public_network_configuration'
40
42
  require 'pnap_bmc_api/models/quota'
41
43
  require 'pnap_bmc_api/models/quota_edit_limit_request'
42
44
  require 'pnap_bmc_api/models/quota_edit_limit_request_details'
45
+ require 'pnap_bmc_api/models/reboot_request'
43
46
  require 'pnap_bmc_api/models/relinquish_ip_block'
44
47
  require 'pnap_bmc_api/models/reservation_transfer_details'
45
48
  require 'pnap_bmc_api/models/reset_result'
@@ -50,6 +50,7 @@ describe 'ServersApi' do
50
50
  # List all servers owned by account.
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @option opts [Array<String>] :tag A list of query parameters related to tags in the form of tagName.tagValue
53
+ # @option opts [Array<String>] :location Filters servers by server location
53
54
  # @return [Array<Server>]
54
55
  describe 'servers_get test' do
55
56
  it 'should work' do
@@ -126,6 +127,7 @@ describe 'ServersApi' do
126
127
  # Reboot specific server.
127
128
  # @param server_id The server&#39;s ID.
128
129
  # @param [Hash] opts the optional parameters
130
+ # @option opts [RebootRequest] :reboot_request Configuration option to specify the reboot type: STANDARD or IPXE (default: STANDARD).
129
131
  # @return [ActionResult]
130
132
  describe 'servers_server_id_actions_reboot_post test' do
131
133
  it 'should work' do
@@ -235,6 +237,19 @@ describe 'ServersApi' do
235
237
  end
236
238
  end
237
239
 
240
+ # unit tests for servers_server_id_os_configuration_ipxe_put
241
+ # Updates the iPXE OS configuration.
242
+ # Updates the iPXE OS configuration by updating the URL and the native VLAN configuration.
243
+ # @param server_id The server&#39;s ID.
244
+ # @param os_configuration_ipxe
245
+ # @param [Hash] opts the optional parameters
246
+ # @return [OsConfigurationIPXE]
247
+ describe 'servers_server_id_os_configuration_ipxe_put test' do
248
+ it 'should work' do
249
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
250
+ end
251
+ end
252
+
238
253
  # unit tests for servers_server_id_patch
239
254
  # Patch a Server.
240
255
  # 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&#39;s settings. Local changes to the server&#39;s hostname will not be reflected in the API or portal.
@@ -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
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BmcApi::OsConfigurationIPXENativeVlanConfiguration
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BmcApi::OsConfigurationIPXENativeVlanConfiguration do
21
+ #let(:instance) { BmcApi::OsConfigurationIPXENativeVlanConfiguration.new }
22
+
23
+ describe 'test an instance of OsConfigurationIPXENativeVlanConfiguration' do
24
+ it 'should create an instance of OsConfigurationIPXENativeVlanConfiguration' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(BmcApi::OsConfigurationIPXENativeVlanConfiguration)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "vlan_id"' 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
+
36
+ describe 'test attribute "static_dhcp_address_v4"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "status"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["in-progress", "assigned", "error"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.status = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
52
+ end
@@ -0,0 +1,42 @@
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
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BmcApi::OsConfigurationIPXE
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BmcApi::OsConfigurationIPXE do
21
+ #let(:instance) { BmcApi::OsConfigurationIPXE.new }
22
+
23
+ describe 'test an instance of OsConfigurationIPXE' do
24
+ it 'should create an instance of OsConfigurationIPXE' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(BmcApi::OsConfigurationIPXE)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "url"' 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
+
36
+ describe 'test attribute "native_vlan_configuration"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -81,4 +81,10 @@ describe BmcApi::OsConfiguration do
81
81
  end
82
82
  end
83
83
 
84
+ describe 'test attribute "i_pxe"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
84
90
  end
@@ -0,0 +1,46 @@
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
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BmcApi::RebootRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BmcApi::RebootRequest do
21
+ #let(:instance) { BmcApi::RebootRequest.new }
22
+
23
+ describe 'test an instance of RebootRequest' do
24
+ it 'should create an instance of RebootRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(BmcApi::RebootRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "boot_type"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IPXE", "STANDARD"])
34
+ # validator.allowable_values.each do |value|
35
+ # expect { instance.boot_type = value }.not_to raise_error
36
+ # end
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "ipxe_url"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ 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: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-07 00:00:00.000000000 Z
11
+ date: 2026-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -77,6 +77,8 @@ files:
77
77
  - docs/NetworkConfiguration.md
78
78
  - docs/OsConfiguration.md
79
79
  - docs/OsConfigurationCloudInit.md
80
+ - docs/OsConfigurationIPXE.md
81
+ - docs/OsConfigurationIPXENativeVlanConfiguration.md
80
82
  - docs/OsConfigurationMap.md
81
83
  - docs/OsConfigurationMapEsxi.md
82
84
  - docs/OsConfigurationMapProxmox.md
@@ -89,6 +91,7 @@ files:
89
91
  - docs/QuotaEditLimitRequest.md
90
92
  - docs/QuotaEditLimitRequestDetails.md
91
93
  - docs/QuotasApi.md
94
+ - docs/RebootRequest.md
92
95
  - docs/RelinquishIpBlock.md
93
96
  - docs/ReservationTransferDetails.md
94
97
  - docs/ResetResult.md
@@ -130,6 +133,8 @@ files:
130
133
  - lib/pnap_bmc_api/models/network_configuration.rb
131
134
  - lib/pnap_bmc_api/models/os_configuration.rb
132
135
  - lib/pnap_bmc_api/models/os_configuration_cloud_init.rb
136
+ - lib/pnap_bmc_api/models/os_configuration_ipxe.rb
137
+ - lib/pnap_bmc_api/models/os_configuration_ipxe_native_vlan_configuration.rb
133
138
  - lib/pnap_bmc_api/models/os_configuration_map.rb
134
139
  - lib/pnap_bmc_api/models/os_configuration_map_esxi.rb
135
140
  - lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb
@@ -141,6 +146,7 @@ files:
141
146
  - lib/pnap_bmc_api/models/quota.rb
142
147
  - lib/pnap_bmc_api/models/quota_edit_limit_request.rb
143
148
  - lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb
149
+ - lib/pnap_bmc_api/models/reboot_request.rb
144
150
  - lib/pnap_bmc_api/models/relinquish_ip_block.rb
145
151
  - lib/pnap_bmc_api/models/reservation_transfer_details.rb
146
152
  - lib/pnap_bmc_api/models/reset_result.rb
@@ -176,6 +182,8 @@ files:
176
182
  - spec/models/ip_blocks_configuration_spec.rb
177
183
  - spec/models/network_configuration_spec.rb
178
184
  - spec/models/os_configuration_cloud_init_spec.rb
185
+ - spec/models/os_configuration_ipxe_native_vlan_configuration_spec.rb
186
+ - spec/models/os_configuration_ipxe_spec.rb
179
187
  - spec/models/os_configuration_map_esxi_spec.rb
180
188
  - spec/models/os_configuration_map_proxmox_spec.rb
181
189
  - spec/models/os_configuration_map_spec.rb
@@ -188,6 +196,7 @@ files:
188
196
  - spec/models/quota_edit_limit_request_details_spec.rb
189
197
  - spec/models/quota_edit_limit_request_spec.rb
190
198
  - spec/models/quota_spec.rb
199
+ - spec/models/reboot_request_spec.rb
191
200
  - spec/models/relinquish_ip_block_spec.rb
192
201
  - spec/models/reservation_transfer_details_spec.rb
193
202
  - spec/models/reset_result_spec.rb
@@ -236,46 +245,49 @@ test_files:
236
245
  - spec/api/servers_api_spec.rb
237
246
  - spec/api/quotas_api_spec.rb
238
247
  - spec/api/ssh_keys_api_spec.rb
239
- - spec/models/reservation_transfer_details_spec.rb
240
- - spec/models/storage_configuration_spec.rb
248
+ - spec/models/ip_blocks_configuration_spec.rb
249
+ - spec/models/server_reset_spec.rb
250
+ - spec/models/os_configuration_netris_softgate_spec.rb
251
+ - spec/models/os_configuration_map_proxmox_spec.rb
252
+ - spec/models/esxi_datastore_configuration_spec.rb
253
+ - spec/models/storage_configuration_root_partition_spec.rb
254
+ - spec/models/os_configuration_spec.rb
255
+ - spec/models/os_configuration_map_esxi_spec.rb
256
+ - spec/models/gpu_configuration_spec.rb
257
+ - spec/models/quota_spec.rb
258
+ - spec/models/quota_edit_limit_request_spec.rb
241
259
  - spec/models/delete_result_spec.rb
242
- - spec/models/server_private_network_spec.rb
243
- - spec/models/ssh_key_create_spec.rb
244
- - spec/models/quota_edit_limit_request_details_spec.rb
245
- - spec/models/error_spec.rb
260
+ - spec/models/server_reserve_spec.rb
261
+ - spec/models/server_patch_spec.rb
262
+ - spec/models/reset_result_spec.rb
246
263
  - spec/models/action_result_spec.rb
247
- - spec/models/tag_assignment_spec.rb
264
+ - spec/models/network_configuration_spec.rb
248
265
  - spec/models/os_configuration_cloud_init_spec.rb
249
- - spec/models/reset_result_spec.rb
266
+ - spec/models/esxi_os_configuration_spec.rb
267
+ - spec/models/tag_assignment_spec.rb
250
268
  - spec/models/os_configuration_map_spec.rb
251
- - spec/models/quota_edit_limit_request_spec.rb
252
- - spec/models/os_configuration_windows_spec.rb
253
- - spec/models/server_reserve_spec.rb
254
- - spec/models/server_create_spec.rb
255
- - spec/models/tag_assignment_request_spec.rb
256
- - spec/models/server_patch_spec.rb
257
- - spec/models/delete_ssh_key_result_spec.rb
258
269
  - spec/models/os_configuration_netris_controller_spec.rb
259
- - spec/models/os_configuration_netris_softgate_spec.rb
260
- - spec/models/public_network_configuration_spec.rb
261
- - spec/models/os_configuration_map_esxi_spec.rb
262
- - spec/models/quota_spec.rb
263
270
  - spec/models/server_network_update_spec.rb
264
- - spec/models/os_configuration_spec.rb
265
- - spec/models/ip_blocks_configuration_spec.rb
266
- - spec/models/server_reset_spec.rb
267
- - spec/models/server_provision_spec.rb
268
- - spec/models/esxi_datastore_configuration_spec.rb
269
- - spec/models/esxi_os_configuration_spec.rb
270
- - spec/models/ssh_key_update_spec.rb
271
- - spec/models/gpu_configuration_spec.rb
271
+ - spec/models/error_spec.rb
272
+ - spec/models/os_configuration_ipxe_native_vlan_configuration_spec.rb
272
273
  - spec/models/server_public_network_spec.rb
273
- - spec/models/os_configuration_map_proxmox_spec.rb
274
+ - spec/models/reboot_request_spec.rb
274
275
  - spec/models/relinquish_ip_block_spec.rb
275
- - spec/models/network_configuration_spec.rb
276
+ - spec/models/server_private_network_spec.rb
276
277
  - spec/models/server_ip_block_spec.rb
277
- - spec/models/server_spec.rb
278
+ - spec/models/delete_ssh_key_result_spec.rb
278
279
  - spec/models/ssh_key_spec.rb
279
- - spec/models/storage_configuration_root_partition_spec.rb
280
+ - spec/models/tag_assignment_request_spec.rb
281
+ - spec/models/public_network_configuration_spec.rb
282
+ - spec/models/server_create_spec.rb
283
+ - spec/models/server_provision_spec.rb
284
+ - spec/models/reservation_transfer_details_spec.rb
285
+ - spec/models/ssh_key_update_spec.rb
286
+ - spec/models/os_configuration_ipxe_spec.rb
287
+ - spec/models/quota_edit_limit_request_details_spec.rb
280
288
  - spec/models/private_network_configuration_spec.rb
289
+ - spec/models/server_spec.rb
290
+ - spec/models/os_configuration_windows_spec.rb
291
+ - spec/models/storage_configuration_spec.rb
292
+ - spec/models/ssh_key_create_spec.rb
281
293
  - spec/spec_helper.rb