pnap_bmc_api 1.4.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.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/VERSION +1 -1
  4. data/docs/DeleteResult.md +1 -1
  5. data/docs/OsConfigurationCloudInit.md +1 -1
  6. data/docs/OsConfigurationNetrisController.md +1 -1
  7. data/docs/PrivateNetworkConfiguration.md +1 -1
  8. data/docs/QuotaEditLimitRequest.md +1 -1
  9. data/docs/QuotaEditLimitRequestDetails.md +1 -1
  10. data/docs/QuotasApi.md +6 -8
  11. data/docs/SSHKeysApi.md +12 -16
  12. data/docs/Server.md +14 -8
  13. data/docs/ServerCreate.md +7 -5
  14. data/docs/ServerNetworkUpdate.md +2 -2
  15. data/docs/ServerPrivateNetwork.md +3 -3
  16. data/docs/ServerProvision.md +38 -0
  17. data/docs/ServerPublicNetwork.md +2 -2
  18. data/docs/ServersApi.md +173 -111
  19. data/docs/StorageConfiguration.md +18 -0
  20. data/docs/StorageConfigurationRootPartition.md +20 -0
  21. data/lib/pnap_bmc_api/api/quotas_api.rb +11 -7
  22. data/lib/pnap_bmc_api/api/servers_api.rb +200 -75
  23. data/lib/pnap_bmc_api/api/ssh_keys_api.rb +21 -13
  24. data/lib/pnap_bmc_api/api_client.rb +24 -21
  25. data/lib/pnap_bmc_api/api_error.rb +2 -1
  26. data/lib/pnap_bmc_api/configuration.rb +28 -9
  27. data/lib/pnap_bmc_api/models/action_result.rb +16 -19
  28. data/lib/pnap_bmc_api/models/delete_result.rb +18 -19
  29. data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +18 -19
  30. data/lib/pnap_bmc_api/models/error.rb +16 -19
  31. data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +19 -20
  32. data/lib/pnap_bmc_api/models/network_configuration.rb +14 -19
  33. data/lib/pnap_bmc_api/models/os_configuration.rb +19 -20
  34. data/lib/pnap_bmc_api/models/os_configuration_cloud_init.rb +15 -20
  35. data/lib/pnap_bmc_api/models/os_configuration_map.rb +14 -19
  36. data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +19 -20
  37. data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +19 -20
  38. data/lib/pnap_bmc_api/models/os_configuration_netris_controller.rb +16 -21
  39. data/lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb +66 -20
  40. data/lib/pnap_bmc_api/models/os_configuration_windows.rb +19 -20
  41. data/lib/pnap_bmc_api/models/private_network_configuration.rb +15 -20
  42. data/lib/pnap_bmc_api/models/public_network_configuration.rb +14 -19
  43. data/lib/pnap_bmc_api/models/quota.rb +30 -19
  44. data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +40 -20
  45. data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +43 -22
  46. data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +14 -19
  47. data/lib/pnap_bmc_api/models/reset_result.rb +16 -19
  48. data/lib/pnap_bmc_api/models/server.rb +94 -34
  49. data/lib/pnap_bmc_api/models/server_create.rb +43 -27
  50. data/lib/pnap_bmc_api/models/server_ip_block.rb +16 -19
  51. data/lib/pnap_bmc_api/models/server_network_update.rb +15 -20
  52. data/lib/pnap_bmc_api/models/server_patch.rb +27 -24
  53. data/lib/pnap_bmc_api/models/server_private_network.rb +27 -26
  54. data/lib/pnap_bmc_api/models/server_provision.rb +395 -0
  55. data/lib/pnap_bmc_api/models/server_public_network.rb +17 -20
  56. data/lib/pnap_bmc_api/models/server_reserve.rb +16 -19
  57. data/lib/pnap_bmc_api/models/server_reset.rb +14 -19
  58. data/lib/pnap_bmc_api/models/ssh_key.rb +28 -19
  59. data/lib/pnap_bmc_api/models/ssh_key_create.rb +52 -19
  60. data/lib/pnap_bmc_api/models/ssh_key_update.rb +29 -19
  61. data/lib/pnap_bmc_api/models/storage_configuration.rb +215 -0
  62. data/lib/pnap_bmc_api/models/{quota_edit_limit_request_details_all_of.rb → storage_configuration_root_partition.rb} +40 -36
  63. data/lib/pnap_bmc_api/models/tag_assignment.rb +20 -19
  64. data/lib/pnap_bmc_api/models/tag_assignment_request.rb +16 -19
  65. data/lib/pnap_bmc_api/version.rb +1 -1
  66. data/lib/pnap_bmc_api.rb +4 -2
  67. data/pnap_bmc_api.gemspec +2 -2
  68. data/spec/api/quotas_api_spec.rb +6 -6
  69. data/spec/api/servers_api_spec.rb +109 -36
  70. data/spec/api/ssh_keys_api_spec.rb +9 -9
  71. data/spec/models/action_result_spec.rb +6 -4
  72. data/spec/models/delete_result_spec.rb +7 -5
  73. data/spec/models/delete_ssh_key_result_spec.rb +7 -5
  74. data/spec/models/error_spec.rb +7 -5
  75. data/spec/models/ip_blocks_configuration_spec.rb +7 -5
  76. data/spec/models/network_configuration_spec.rb +19 -5
  77. data/spec/models/os_configuration_cloud_init_spec.rb +5 -3
  78. data/spec/models/os_configuration_map_esxi_spec.rb +8 -6
  79. data/spec/models/os_configuration_map_proxmox_spec.rb +8 -6
  80. data/spec/models/os_configuration_map_spec.rb +8 -6
  81. data/spec/models/os_configuration_netris_controller_spec.rb +7 -5
  82. data/spec/models/os_configuration_netris_softgate_spec.rb +8 -6
  83. data/spec/models/os_configuration_spec.rb +33 -7
  84. data/spec/models/os_configuration_windows_spec.rb +6 -4
  85. data/spec/models/private_network_configuration_spec.rb +8 -6
  86. data/spec/models/public_network_configuration_spec.rb +6 -4
  87. data/spec/models/quota_edit_limit_request_details_spec.rb +8 -6
  88. data/spec/models/quota_edit_limit_request_spec.rb +7 -5
  89. data/spec/models/quota_spec.rb +13 -15
  90. data/spec/models/relinquish_ip_block_spec.rb +6 -4
  91. data/spec/models/reset_result_spec.rb +8 -6
  92. data/spec/models/server_create_spec.rb +25 -17
  93. data/spec/models/server_ip_block_spec.rb +7 -5
  94. data/spec/models/server_network_update_spec.rb +5 -3
  95. data/spec/models/server_patch_spec.rb +7 -5
  96. data/spec/models/server_private_network_spec.rb +9 -7
  97. data/spec/models/server_provision_spec.rb +96 -0
  98. data/spec/models/server_public_network_spec.rb +8 -6
  99. data/spec/models/server_reserve_spec.rb +6 -4
  100. data/spec/models/server_reset_spec.rb +9 -7
  101. data/spec/models/server_spec.rb +47 -27
  102. data/spec/models/ssh_key_create_spec.rb +8 -6
  103. data/spec/models/ssh_key_spec.rb +12 -10
  104. data/spec/models/ssh_key_update_spec.rb +7 -5
  105. data/spec/models/storage_configuration_root_partition_spec.rb +42 -0
  106. data/spec/models/storage_configuration_spec.rb +36 -0
  107. data/spec/models/tag_assignment_request_spec.rb +7 -5
  108. data/spec/models/tag_assignment_spec.rb +10 -8
  109. data/spec/spec_helper.rb +1 -1
  110. metadata +41 -37
  111. data/docs/QuotaEditLimitRequestDetailsAllOf.md +0 -18
  112. data/spec/api_client_spec.rb +0 -226
  113. data/spec/configuration_spec.rb +0 -42
  114. data/spec/models/quota_edit_limit_request_details_all_of_spec.rb +0 -34
@@ -6,7 +6,7 @@
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: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -14,15 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module BmcApi
17
- # Pending quota modification requests yet to be reviewed.
18
- class QuotaEditLimitRequestDetailsAllOf
19
- # The point in time the request was submitted.
20
- attr_accessor :requested_on
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
21
24
 
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
25
- :'requested_on' => :'requestedOn'
28
+ :'raid' => :'raid',
29
+ :'size' => :'size'
26
30
  }
27
31
  end
28
32
 
@@ -34,7 +38,8 @@ module BmcApi
34
38
  # Attribute type mapping.
35
39
  def self.openapi_types
36
40
  {
37
- :'requested_on' => :'Time'
41
+ :'raid' => :'String',
42
+ :'size' => :'Integer'
38
43
  }
39
44
  end
40
45
 
@@ -48,37 +53,42 @@ module BmcApi
48
53
  # @param [Hash] attributes Model attributes in the form of hash
49
54
  def initialize(attributes = {})
50
55
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `BmcApi::QuotaEditLimitRequestDetailsAllOf` initialize method"
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `BmcApi::StorageConfigurationRootPartition` initialize method"
52
57
  end
53
58
 
54
59
  # check to see if the attribute exists and convert string to symbol for hash key
55
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
61
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `BmcApi::QuotaEditLimitRequestDetailsAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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
58
63
  end
59
64
  h[k.to_sym] = v
60
65
  }
61
66
 
62
- if attributes.key?(:'requested_on')
63
- self.requested_on = attributes[:'requested_on']
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
64
77
  end
65
78
  end
66
79
 
67
80
  # Show invalid properties with the reasons. Usually used together with valid?
68
81
  # @return Array for valid properties with the reasons
69
82
  def list_invalid_properties
83
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
70
84
  invalid_properties = Array.new
71
- if @requested_on.nil?
72
- invalid_properties.push('invalid value for "requested_on", requested_on cannot be nil.')
73
- end
74
-
75
85
  invalid_properties
76
86
  end
77
87
 
78
88
  # Check to see if the all the properties in the model are valid
79
89
  # @return true if the model is valid
80
90
  def valid?
81
- return false if @requested_on.nil?
91
+ warn '[DEPRECATED] the `valid?` method is obsolete'
82
92
  true
83
93
  end
84
94
 
@@ -87,7 +97,8 @@ module BmcApi
87
97
  def ==(o)
88
98
  return true if self.equal?(o)
89
99
  self.class == o.class &&
90
- requested_on == o.requested_on
100
+ raid == o.raid &&
101
+ size == o.size
91
102
  end
92
103
 
93
104
  # @see the `==` method
@@ -99,44 +110,37 @@ module BmcApi
99
110
  # Calculates hash code according to all attributes.
100
111
  # @return [Integer] Hash code
101
112
  def hash
102
- [requested_on].hash
113
+ [raid, size].hash
103
114
  end
104
115
 
105
116
  # Builds the object from hash
106
117
  # @param [Hash] attributes Model attributes in the form of hash
107
118
  # @return [Object] Returns the model itself
108
119
  def self.build_from_hash(attributes)
109
- new.build_from_hash(attributes)
110
- end
111
-
112
- # Builds the object from hash
113
- # @param [Hash] attributes Model attributes in the form of hash
114
- # @return [Object] Returns the model itself
115
- def build_from_hash(attributes)
116
120
  return nil unless attributes.is_a?(Hash)
117
121
  attributes = attributes.transform_keys(&:to_sym)
118
- self.class.openapi_types.each_pair do |key, type|
119
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
120
- self.send("#{key}=", nil)
122
+ transformed_hash = {}
123
+ openapi_types.each_pair do |key, type|
124
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
125
+ transformed_hash["#{key}"] = nil
121
126
  elsif type =~ /\AArray<(.*)>/i
122
127
  # check to ensure the input is an array given that the attribute
123
128
  # is documented as an array but the input is not
124
- if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ if attributes[attribute_map[key]].is_a?(Array)
130
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
126
131
  end
127
- elsif !attributes[self.class.attribute_map[key]].nil?
128
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ elsif !attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
129
134
  end
130
135
  end
131
-
132
- self
136
+ new(transformed_hash)
133
137
  end
134
138
 
135
139
  # Deserializes the data based on type
136
140
  # @param string type Data type
137
141
  # @param string value Value to be deserialized
138
142
  # @return [Object] Deserialized data
139
- def _deserialize(type, value)
143
+ def self._deserialize(type, value)
140
144
  case type.to_sym
141
145
  when :Time
142
146
  Time.parse(value)
@@ -171,7 +175,7 @@ module BmcApi
171
175
  else # model
172
176
  # models (e.g. Pet) or oneOf
173
177
  klass = BmcApi.const_get(type)
174
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
175
179
  end
176
180
  end
177
181
 
@@ -6,7 +6,7 @@
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: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -103,10 +103,14 @@ module BmcApi
103
103
 
104
104
  if attributes.key?(:'id')
105
105
  self.id = attributes[:'id']
106
+ else
107
+ self.id = nil
106
108
  end
107
109
 
108
110
  if attributes.key?(:'name')
109
111
  self.name = attributes[:'name']
112
+ else
113
+ self.name = nil
110
114
  end
111
115
 
112
116
  if attributes.key?(:'value')
@@ -115,6 +119,8 @@ module BmcApi
115
119
 
116
120
  if attributes.key?(:'is_billing_tag')
117
121
  self.is_billing_tag = attributes[:'is_billing_tag']
122
+ else
123
+ self.is_billing_tag = nil
118
124
  end
119
125
 
120
126
  if attributes.key?(:'created_by')
@@ -125,6 +131,7 @@ module BmcApi
125
131
  # Show invalid properties with the reasons. Usually used together with valid?
126
132
  # @return Array for valid properties with the reasons
127
133
  def list_invalid_properties
134
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
128
135
  invalid_properties = Array.new
129
136
  if @id.nil?
130
137
  invalid_properties.push('invalid value for "id", id cannot be nil.')
@@ -144,6 +151,7 @@ module BmcApi
144
151
  # Check to see if the all the properties in the model are valid
145
152
  # @return true if the model is valid
146
153
  def valid?
154
+ warn '[DEPRECATED] the `valid?` method is obsolete'
147
155
  return false if @id.nil?
148
156
  return false if @name.nil?
149
157
  return false if @is_billing_tag.nil?
@@ -190,37 +198,30 @@ module BmcApi
190
198
  # @param [Hash] attributes Model attributes in the form of hash
191
199
  # @return [Object] Returns the model itself
192
200
  def self.build_from_hash(attributes)
193
- new.build_from_hash(attributes)
194
- end
195
-
196
- # Builds the object from hash
197
- # @param [Hash] attributes Model attributes in the form of hash
198
- # @return [Object] Returns the model itself
199
- def build_from_hash(attributes)
200
201
  return nil unless attributes.is_a?(Hash)
201
202
  attributes = attributes.transform_keys(&:to_sym)
202
- self.class.openapi_types.each_pair do |key, type|
203
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
204
- self.send("#{key}=", nil)
203
+ transformed_hash = {}
204
+ openapi_types.each_pair do |key, type|
205
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
206
+ transformed_hash["#{key}"] = nil
205
207
  elsif type =~ /\AArray<(.*)>/i
206
208
  # check to ensure the input is an array given that the attribute
207
209
  # is documented as an array but the input is not
208
- if attributes[self.class.attribute_map[key]].is_a?(Array)
209
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
210
+ if attributes[attribute_map[key]].is_a?(Array)
211
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
210
212
  end
211
- elsif !attributes[self.class.attribute_map[key]].nil?
212
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
213
+ elsif !attributes[attribute_map[key]].nil?
214
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
213
215
  end
214
216
  end
215
-
216
- self
217
+ new(transformed_hash)
217
218
  end
218
219
 
219
220
  # Deserializes the data based on type
220
221
  # @param string type Data type
221
222
  # @param string value Value to be deserialized
222
223
  # @return [Object] Deserialized data
223
- def _deserialize(type, value)
224
+ def self._deserialize(type, value)
224
225
  case type.to_sym
225
226
  when :Time
226
227
  Time.parse(value)
@@ -255,7 +256,7 @@ module BmcApi
255
256
  else # model
256
257
  # models (e.g. Pet) or oneOf
257
258
  klass = BmcApi.const_get(type)
258
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
259
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
259
260
  end
260
261
  end
261
262
 
@@ -6,7 +6,7 @@
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: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -66,6 +66,8 @@ module BmcApi
66
66
 
67
67
  if attributes.key?(:'name')
68
68
  self.name = attributes[:'name']
69
+ else
70
+ self.name = nil
69
71
  end
70
72
 
71
73
  if attributes.key?(:'value')
@@ -76,6 +78,7 @@ module BmcApi
76
78
  # Show invalid properties with the reasons. Usually used together with valid?
77
79
  # @return Array for valid properties with the reasons
78
80
  def list_invalid_properties
81
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
79
82
  invalid_properties = Array.new
80
83
  if @name.nil?
81
84
  invalid_properties.push('invalid value for "name", name cannot be nil.')
@@ -87,6 +90,7 @@ module BmcApi
87
90
  # Check to see if the all the properties in the model are valid
88
91
  # @return true if the model is valid
89
92
  def valid?
93
+ warn '[DEPRECATED] the `valid?` method is obsolete'
90
94
  return false if @name.nil?
91
95
  true
92
96
  end
@@ -116,37 +120,30 @@ module BmcApi
116
120
  # @param [Hash] attributes Model attributes in the form of hash
117
121
  # @return [Object] Returns the model itself
118
122
  def self.build_from_hash(attributes)
119
- new.build_from_hash(attributes)
120
- end
121
-
122
- # Builds the object from hash
123
- # @param [Hash] attributes Model attributes in the form of hash
124
- # @return [Object] Returns the model itself
125
- def build_from_hash(attributes)
126
123
  return nil unless attributes.is_a?(Hash)
127
124
  attributes = attributes.transform_keys(&:to_sym)
128
- self.class.openapi_types.each_pair do |key, type|
129
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
130
- self.send("#{key}=", nil)
125
+ transformed_hash = {}
126
+ openapi_types.each_pair do |key, type|
127
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
128
+ transformed_hash["#{key}"] = nil
131
129
  elsif type =~ /\AArray<(.*)>/i
132
130
  # check to ensure the input is an array given that the attribute
133
131
  # is documented as an array but the input is not
134
- if attributes[self.class.attribute_map[key]].is_a?(Array)
135
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
+ if attributes[attribute_map[key]].is_a?(Array)
133
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
136
134
  end
137
- elsif !attributes[self.class.attribute_map[key]].nil?
138
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
+ elsif !attributes[attribute_map[key]].nil?
136
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
139
137
  end
140
138
  end
141
-
142
- self
139
+ new(transformed_hash)
143
140
  end
144
141
 
145
142
  # Deserializes the data based on type
146
143
  # @param string type Data type
147
144
  # @param string value Value to be deserialized
148
145
  # @return [Object] Deserialized data
149
- def _deserialize(type, value)
146
+ def self._deserialize(type, value)
150
147
  case type.to_sym
151
148
  when :Time
152
149
  Time.parse(value)
@@ -181,7 +178,7 @@ module BmcApi
181
178
  else # model
182
179
  # models (e.g. Pet) or oneOf
183
180
  klass = BmcApi.const_get(type)
184
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
181
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
185
182
  end
186
183
  end
187
184
 
@@ -6,7 +6,7 @@
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: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
data/lib/pnap_bmc_api.rb CHANGED
@@ -6,7 +6,7 @@
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: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -36,7 +36,6 @@ require 'pnap_bmc_api/models/public_network_configuration'
36
36
  require 'pnap_bmc_api/models/quota'
37
37
  require 'pnap_bmc_api/models/quota_edit_limit_request'
38
38
  require 'pnap_bmc_api/models/quota_edit_limit_request_details'
39
- require 'pnap_bmc_api/models/quota_edit_limit_request_details_all_of'
40
39
  require 'pnap_bmc_api/models/relinquish_ip_block'
41
40
  require 'pnap_bmc_api/models/reset_result'
42
41
  require 'pnap_bmc_api/models/server'
@@ -45,12 +44,15 @@ require 'pnap_bmc_api/models/server_ip_block'
45
44
  require 'pnap_bmc_api/models/server_network_update'
46
45
  require 'pnap_bmc_api/models/server_patch'
47
46
  require 'pnap_bmc_api/models/server_private_network'
47
+ require 'pnap_bmc_api/models/server_provision'
48
48
  require 'pnap_bmc_api/models/server_public_network'
49
49
  require 'pnap_bmc_api/models/server_reserve'
50
50
  require 'pnap_bmc_api/models/server_reset'
51
51
  require 'pnap_bmc_api/models/ssh_key'
52
52
  require 'pnap_bmc_api/models/ssh_key_create'
53
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'
54
56
  require 'pnap_bmc_api/models/tag_assignment'
55
57
  require 'pnap_bmc_api/models/tag_assignment_request'
56
58
 
data/pnap_bmc_api.gemspec CHANGED
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 0.1
9
9
  Contact: support@phoenixnap.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 6.1.0
11
+ OpenAPI Generator version: 7.2.0
12
12
 
13
13
  =end
14
14
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.summary = "Bare Metal Cloud API Ruby Gem"
26
26
  s.description = "Bare Metal Cloud API Ruby Gem"
27
27
  s.license = "MPL-2.0"
28
- s.required_ruby_version = ">= 2.4"
28
+ s.required_ruby_version = ">= 2.7"
29
29
  s.metadata = { "source_code_uri" => "https://github.com/phoenixnap/ruby-sdk-bmc" }
30
30
 
31
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
@@ -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. Deprovision servers, get or edit SSH key details, 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>
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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -39,7 +39,7 @@ describe 'QuotasApi' do
39
39
  # @return [Array<Quota>]
40
40
  describe 'quotas_get test' do
41
41
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
43
  end
44
44
  end
45
45
 
@@ -47,12 +47,12 @@ describe 'QuotasApi' do
47
47
  # Request quota limit change.
48
48
  # Sends a request to edit the limit of a quota.
49
49
  # @param quota_id The ID of the Quota.
50
+ # @param quota_edit_limit_request
50
51
  # @param [Hash] opts the optional parameters
51
- # @option opts [QuotaEditLimitRequest] :quota_edit_limit_request
52
52
  # @return [nil]
53
53
  describe 'quotas_quota_id_actions_request_edit_post test' do
54
54
  it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
56
  end
57
57
  end
58
58
 
@@ -64,7 +64,7 @@ describe 'QuotasApi' do
64
64
  # @return [Quota]
65
65
  describe 'quotas_quota_id_get test' do
66
66
  it 'should work' do
67
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
68
  end
69
69
  end
70
70