pnap_bmc_api 1.3.0 → 1.5.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 +7 -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/QuotaEditLimitRequest.md +1 -1
- data/docs/QuotaEditLimitRequestDetails.md +1 -1
- data/docs/Server.md +7 -5
- data/docs/ServerCreate.md +6 -4
- 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/docs/StorageConfiguration.md +18 -0
- data/docs/StorageConfigurationRootPartition.md +20 -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 +294 -0
- data/lib/pnap_bmc_api/models/private_network_configuration.rb +1 -1
- data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +1 -1
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +1 -1
- data/lib/pnap_bmc_api/models/server.rb +22 -8
- data/lib/pnap_bmc_api/models/server_create.rb +16 -7
- 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 +6 -6
- data/lib/pnap_bmc_api/models/server_public_network.rb +1 -1
- data/lib/pnap_bmc_api/models/storage_configuration.rb +220 -0
- data/lib/pnap_bmc_api/models/storage_configuration_root_partition.rb +235 -0
- data/lib/pnap_bmc_api.rb +5 -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
- data/spec/models/storage_configuration_root_partition_spec.rb +40 -0
- data/spec/models/storage_configuration_spec.rb +34 -0
- metadata +48 -28
@@ -0,0 +1,235 @@
|
|
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 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module BmcApi
|
17
|
+
# Root partition configuration.
|
18
|
+
class StorageConfigurationRootPartition
|
19
|
+
# Software RAID configuration. The following RAID options are available: NO_RAID, RAID_0, RAID_1.
|
20
|
+
attr_accessor :raid
|
21
|
+
|
22
|
+
# The size of the root partition in GB. -1 to use all available space.
|
23
|
+
attr_accessor :size
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'raid' => :'raid',
|
29
|
+
:'size' => :'size'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'raid' => :'String',
|
42
|
+
:'size' => :'Integer'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
])
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
if (!attributes.is_a?(Hash))
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BmcApi::StorageConfigurationRootPartition` initialize method"
|
57
|
+
end
|
58
|
+
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BmcApi::StorageConfigurationRootPartition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'raid')
|
68
|
+
self.raid = attributes[:'raid']
|
69
|
+
else
|
70
|
+
self.raid = 'NO_RAID'
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'size')
|
74
|
+
self.size = attributes[:'size']
|
75
|
+
else
|
76
|
+
self.size = -1
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
+
# @return Array for valid properties with the reasons
|
82
|
+
def list_invalid_properties
|
83
|
+
invalid_properties = Array.new
|
84
|
+
invalid_properties
|
85
|
+
end
|
86
|
+
|
87
|
+
# Check to see if the all the properties in the model are valid
|
88
|
+
# @return true if the model is valid
|
89
|
+
def valid?
|
90
|
+
true
|
91
|
+
end
|
92
|
+
|
93
|
+
# Checks equality by comparing each attribute.
|
94
|
+
# @param [Object] Object to be compared
|
95
|
+
def ==(o)
|
96
|
+
return true if self.equal?(o)
|
97
|
+
self.class == o.class &&
|
98
|
+
raid == o.raid &&
|
99
|
+
size == o.size
|
100
|
+
end
|
101
|
+
|
102
|
+
# @see the `==` method
|
103
|
+
# @param [Object] Object to be compared
|
104
|
+
def eql?(o)
|
105
|
+
self == o
|
106
|
+
end
|
107
|
+
|
108
|
+
# Calculates hash code according to all attributes.
|
109
|
+
# @return [Integer] Hash code
|
110
|
+
def hash
|
111
|
+
[raid, size].hash
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def self.build_from_hash(attributes)
|
118
|
+
new.build_from_hash(attributes)
|
119
|
+
end
|
120
|
+
|
121
|
+
# Builds the object from hash
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
+
# @return [Object] Returns the model itself
|
124
|
+
def build_from_hash(attributes)
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
126
|
+
attributes = attributes.transform_keys(&:to_sym)
|
127
|
+
self.class.openapi_types.each_pair do |key, type|
|
128
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
129
|
+
self.send("#{key}=", nil)
|
130
|
+
elsif type =~ /\AArray<(.*)>/i
|
131
|
+
# check to ensure the input is an array given that the attribute
|
132
|
+
# is documented as an array but the input is not
|
133
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
134
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
135
|
+
end
|
136
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
137
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
self
|
142
|
+
end
|
143
|
+
|
144
|
+
# Deserializes the data based on type
|
145
|
+
# @param string type Data type
|
146
|
+
# @param string value Value to be deserialized
|
147
|
+
# @return [Object] Deserialized data
|
148
|
+
def _deserialize(type, value)
|
149
|
+
case type.to_sym
|
150
|
+
when :Time
|
151
|
+
Time.parse(value)
|
152
|
+
when :Date
|
153
|
+
Date.parse(value)
|
154
|
+
when :String
|
155
|
+
value.to_s
|
156
|
+
when :Integer
|
157
|
+
value.to_i
|
158
|
+
when :Float
|
159
|
+
value.to_f
|
160
|
+
when :Boolean
|
161
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
162
|
+
true
|
163
|
+
else
|
164
|
+
false
|
165
|
+
end
|
166
|
+
when :Object
|
167
|
+
# generic object (usually a Hash), return directly
|
168
|
+
value
|
169
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
170
|
+
inner_type = Regexp.last_match[:inner_type]
|
171
|
+
value.map { |v| _deserialize(inner_type, v) }
|
172
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
173
|
+
k_type = Regexp.last_match[:k_type]
|
174
|
+
v_type = Regexp.last_match[:v_type]
|
175
|
+
{}.tap do |hash|
|
176
|
+
value.each do |k, v|
|
177
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
else # model
|
181
|
+
# models (e.g. Pet) or oneOf
|
182
|
+
klass = BmcApi.const_get(type)
|
183
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the string representation of the object
|
188
|
+
# @return [String] String presentation of the object
|
189
|
+
def to_s
|
190
|
+
to_hash.to_s
|
191
|
+
end
|
192
|
+
|
193
|
+
# to_body is an alias to to_hash (backward compatibility)
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_body
|
196
|
+
to_hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Returns the object in the form of hash
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_hash
|
202
|
+
hash = {}
|
203
|
+
self.class.attribute_map.each_pair do |attr, param|
|
204
|
+
value = self.send(attr)
|
205
|
+
if value.nil?
|
206
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
207
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
208
|
+
end
|
209
|
+
|
210
|
+
hash[param] = _to_hash(value)
|
211
|
+
end
|
212
|
+
hash
|
213
|
+
end
|
214
|
+
|
215
|
+
# Outputs non-array value in the form of hash
|
216
|
+
# For object, use to_hash. Otherwise, just return the value
|
217
|
+
# @param [Object] value Any valid value
|
218
|
+
# @return [Hash] Returns the value in the form of hash
|
219
|
+
def _to_hash(value)
|
220
|
+
if value.is_a?(Array)
|
221
|
+
value.compact.map { |v| _to_hash(v) }
|
222
|
+
elsif value.is_a?(Hash)
|
223
|
+
{}.tap do |hash|
|
224
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
225
|
+
end
|
226
|
+
elsif value.respond_to? :to_hash
|
227
|
+
value.to_hash
|
228
|
+
else
|
229
|
+
value
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
end
|
234
|
+
|
235
|
+
end
|
data/lib/pnap_bmc_api.rb
CHANGED
@@ -28,6 +28,8 @@ require 'pnap_bmc_api/models/os_configuration_cloud_init'
|
|
28
28
|
require 'pnap_bmc_api/models/os_configuration_map'
|
29
29
|
require 'pnap_bmc_api/models/os_configuration_map_esxi'
|
30
30
|
require 'pnap_bmc_api/models/os_configuration_map_proxmox'
|
31
|
+
require 'pnap_bmc_api/models/os_configuration_netris_controller'
|
32
|
+
require 'pnap_bmc_api/models/os_configuration_netris_softgate'
|
31
33
|
require 'pnap_bmc_api/models/os_configuration_windows'
|
32
34
|
require 'pnap_bmc_api/models/private_network_configuration'
|
33
35
|
require 'pnap_bmc_api/models/public_network_configuration'
|
@@ -40,6 +42,7 @@ require 'pnap_bmc_api/models/reset_result'
|
|
40
42
|
require 'pnap_bmc_api/models/server'
|
41
43
|
require 'pnap_bmc_api/models/server_create'
|
42
44
|
require 'pnap_bmc_api/models/server_ip_block'
|
45
|
+
require 'pnap_bmc_api/models/server_network_update'
|
43
46
|
require 'pnap_bmc_api/models/server_patch'
|
44
47
|
require 'pnap_bmc_api/models/server_private_network'
|
45
48
|
require 'pnap_bmc_api/models/server_public_network'
|
@@ -48,6 +51,8 @@ require 'pnap_bmc_api/models/server_reset'
|
|
48
51
|
require 'pnap_bmc_api/models/ssh_key'
|
49
52
|
require 'pnap_bmc_api/models/ssh_key_create'
|
50
53
|
require 'pnap_bmc_api/models/ssh_key_update'
|
54
|
+
require 'pnap_bmc_api/models/storage_configuration'
|
55
|
+
require 'pnap_bmc_api/models/storage_configuration_root_partition'
|
51
56
|
require 'pnap_bmc_api/models/tag_assignment'
|
52
57
|
require 'pnap_bmc_api/models/tag_assignment_request'
|
53
58
|
|
@@ -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
|
+
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::OsConfigurationNetrisController
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BmcApi::OsConfigurationNetrisController do
|
21
|
+
let(:instance) { BmcApi::OsConfigurationNetrisController.new }
|
22
|
+
|
23
|
+
describe 'test an instance of OsConfigurationNetrisController' do
|
24
|
+
it 'should create an instance of OsConfigurationNetrisController' do
|
25
|
+
expect(instance).to be_instance_of(BmcApi::OsConfigurationNetrisController)
|
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 "netris_web_console_url"' 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 "netris_user_password"' 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
|
+
end
|
@@ -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
|
@@ -0,0 +1,40 @@
|
|
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::StorageConfigurationRootPartition
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BmcApi::StorageConfigurationRootPartition do
|
21
|
+
let(:instance) { BmcApi::StorageConfigurationRootPartition.new }
|
22
|
+
|
23
|
+
describe 'test an instance of StorageConfigurationRootPartition' do
|
24
|
+
it 'should create an instance of StorageConfigurationRootPartition' do
|
25
|
+
expect(instance).to be_instance_of(BmcApi::StorageConfigurationRootPartition)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "raid"' 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 "size"' 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
|
+
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::StorageConfiguration
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BmcApi::StorageConfiguration do
|
21
|
+
let(:instance) { BmcApi::StorageConfiguration.new }
|
22
|
+
|
23
|
+
describe 'test an instance of StorageConfiguration' do
|
24
|
+
it 'should create an instance of StorageConfiguration' do
|
25
|
+
expect(instance).to be_instance_of(BmcApi::StorageConfiguration)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "root_partition"' 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.5.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-07-20 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
|
@@ -95,6 +98,8 @@ files:
|
|
95
98
|
- docs/SshKey.md
|
96
99
|
- docs/SshKeyCreate.md
|
97
100
|
- docs/SshKeyUpdate.md
|
101
|
+
- docs/StorageConfiguration.md
|
102
|
+
- docs/StorageConfigurationRootPartition.md
|
98
103
|
- docs/TagAssignment.md
|
99
104
|
- docs/TagAssignmentRequest.md
|
100
105
|
- lib/pnap_bmc_api.rb
|
@@ -115,6 +120,8 @@ files:
|
|
115
120
|
- lib/pnap_bmc_api/models/os_configuration_map.rb
|
116
121
|
- lib/pnap_bmc_api/models/os_configuration_map_esxi.rb
|
117
122
|
- lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb
|
123
|
+
- lib/pnap_bmc_api/models/os_configuration_netris_controller.rb
|
124
|
+
- lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb
|
118
125
|
- lib/pnap_bmc_api/models/os_configuration_windows.rb
|
119
126
|
- lib/pnap_bmc_api/models/private_network_configuration.rb
|
120
127
|
- lib/pnap_bmc_api/models/public_network_configuration.rb
|
@@ -127,6 +134,7 @@ files:
|
|
127
134
|
- lib/pnap_bmc_api/models/server.rb
|
128
135
|
- lib/pnap_bmc_api/models/server_create.rb
|
129
136
|
- lib/pnap_bmc_api/models/server_ip_block.rb
|
137
|
+
- lib/pnap_bmc_api/models/server_network_update.rb
|
130
138
|
- lib/pnap_bmc_api/models/server_patch.rb
|
131
139
|
- lib/pnap_bmc_api/models/server_private_network.rb
|
132
140
|
- lib/pnap_bmc_api/models/server_public_network.rb
|
@@ -135,6 +143,8 @@ files:
|
|
135
143
|
- lib/pnap_bmc_api/models/ssh_key.rb
|
136
144
|
- lib/pnap_bmc_api/models/ssh_key_create.rb
|
137
145
|
- lib/pnap_bmc_api/models/ssh_key_update.rb
|
146
|
+
- lib/pnap_bmc_api/models/storage_configuration.rb
|
147
|
+
- lib/pnap_bmc_api/models/storage_configuration_root_partition.rb
|
138
148
|
- lib/pnap_bmc_api/models/tag_assignment.rb
|
139
149
|
- lib/pnap_bmc_api/models/tag_assignment_request.rb
|
140
150
|
- lib/pnap_bmc_api/version.rb
|
@@ -154,6 +164,8 @@ files:
|
|
154
164
|
- spec/models/os_configuration_map_esxi_spec.rb
|
155
165
|
- spec/models/os_configuration_map_proxmox_spec.rb
|
156
166
|
- spec/models/os_configuration_map_spec.rb
|
167
|
+
- spec/models/os_configuration_netris_controller_spec.rb
|
168
|
+
- spec/models/os_configuration_netris_softgate_spec.rb
|
157
169
|
- spec/models/os_configuration_spec.rb
|
158
170
|
- spec/models/os_configuration_windows_spec.rb
|
159
171
|
- spec/models/private_network_configuration_spec.rb
|
@@ -166,6 +178,7 @@ files:
|
|
166
178
|
- spec/models/reset_result_spec.rb
|
167
179
|
- spec/models/server_create_spec.rb
|
168
180
|
- spec/models/server_ip_block_spec.rb
|
181
|
+
- spec/models/server_network_update_spec.rb
|
169
182
|
- spec/models/server_patch_spec.rb
|
170
183
|
- spec/models/server_private_network_spec.rb
|
171
184
|
- spec/models/server_public_network_spec.rb
|
@@ -175,6 +188,8 @@ files:
|
|
175
188
|
- spec/models/ssh_key_create_spec.rb
|
176
189
|
- spec/models/ssh_key_spec.rb
|
177
190
|
- spec/models/ssh_key_update_spec.rb
|
191
|
+
- spec/models/storage_configuration_root_partition_spec.rb
|
192
|
+
- spec/models/storage_configuration_spec.rb
|
178
193
|
- spec/models/tag_assignment_request_spec.rb
|
179
194
|
- spec/models/tag_assignment_spec.rb
|
180
195
|
- spec/spec_helper.rb
|
@@ -203,42 +218,47 @@ signing_key:
|
|
203
218
|
specification_version: 4
|
204
219
|
summary: Bare Metal Cloud API Ruby Gem
|
205
220
|
test_files:
|
206
|
-
- spec/api/ssh_keys_api_spec.rb
|
207
|
-
- spec/api/servers_api_spec.rb
|
208
221
|
- spec/api/quotas_api_spec.rb
|
222
|
+
- spec/api/servers_api_spec.rb
|
223
|
+
- spec/api/ssh_keys_api_spec.rb
|
209
224
|
- spec/api_client_spec.rb
|
210
225
|
- spec/configuration_spec.rb
|
211
|
-
- spec/models/
|
212
|
-
- spec/models/quota_edit_limit_request_details_all_of_spec.rb
|
213
|
-
- spec/models/os_configuration_map_proxmox_spec.rb
|
214
|
-
- spec/models/server_private_network_spec.rb
|
215
|
-
- spec/models/delete_result_spec.rb
|
216
|
-
- spec/models/quota_spec.rb
|
217
|
-
- spec/models/os_configuration_windows_spec.rb
|
226
|
+
- spec/models/action_result_spec.rb
|
218
227
|
- spec/models/ssh_key_create_spec.rb
|
219
228
|
- spec/models/ssh_key_update_spec.rb
|
220
|
-
- spec/models/
|
229
|
+
- spec/models/os_configuration_spec.rb
|
230
|
+
- spec/models/os_configuration_netris_softgate_spec.rb
|
231
|
+
- spec/models/server_network_update_spec.rb
|
221
232
|
- spec/models/server_reset_spec.rb
|
222
233
|
- spec/models/ssh_key_spec.rb
|
223
|
-
- spec/models/
|
224
|
-
- spec/models/
|
225
|
-
- spec/models/quota_edit_limit_request_details_spec.rb
|
226
|
-
- spec/models/os_configuration_map_spec.rb
|
227
|
-
- spec/models/server_create_spec.rb
|
228
|
-
- spec/models/action_result_spec.rb
|
229
|
-
- spec/models/server_reserve_spec.rb
|
230
|
-
- spec/models/private_network_configuration_spec.rb
|
234
|
+
- spec/models/os_configuration_cloud_init_spec.rb
|
235
|
+
- spec/models/reset_result_spec.rb
|
231
236
|
- spec/models/tag_assignment_request_spec.rb
|
232
|
-
- spec/models/
|
237
|
+
- spec/models/server_reserve_spec.rb
|
238
|
+
- spec/models/os_configuration_netris_controller_spec.rb
|
233
239
|
- spec/models/network_configuration_spec.rb
|
234
|
-
- spec/models/
|
240
|
+
- spec/models/quota_edit_limit_request_spec.rb
|
235
241
|
- spec/models/relinquish_ip_block_spec.rb
|
236
|
-
- spec/models/
|
237
|
-
- spec/models/server_patch_spec.rb
|
242
|
+
- spec/models/server_create_spec.rb
|
238
243
|
- spec/models/delete_ssh_key_result_spec.rb
|
239
|
-
- spec/models/
|
240
|
-
- spec/models/
|
244
|
+
- spec/models/error_spec.rb
|
245
|
+
- spec/models/private_network_configuration_spec.rb
|
246
|
+
- spec/models/os_configuration_map_spec.rb
|
247
|
+
- spec/models/quota_spec.rb
|
248
|
+
- spec/models/server_private_network_spec.rb
|
249
|
+
- spec/models/storage_configuration_spec.rb
|
250
|
+
- spec/models/server_patch_spec.rb
|
251
|
+
- spec/models/quota_edit_limit_request_details_spec.rb
|
252
|
+
- spec/models/storage_configuration_root_partition_spec.rb
|
253
|
+
- spec/models/public_network_configuration_spec.rb
|
254
|
+
- spec/models/tag_assignment_spec.rb
|
241
255
|
- spec/models/server_spec.rb
|
242
|
-
- spec/models/
|
243
|
-
- spec/models/
|
256
|
+
- spec/models/os_configuration_windows_spec.rb
|
257
|
+
- spec/models/quota_edit_limit_request_details_all_of_spec.rb
|
258
|
+
- spec/models/os_configuration_map_esxi_spec.rb
|
259
|
+
- spec/models/delete_result_spec.rb
|
260
|
+
- spec/models/ip_blocks_configuration_spec.rb
|
261
|
+
- spec/models/server_ip_block_spec.rb
|
262
|
+
- spec/models/server_public_network_spec.rb
|
263
|
+
- spec/models/os_configuration_map_proxmox_spec.rb
|
244
264
|
- spec/spec_helper.rb
|