pnap_bmc_api 1.1.0 → 1.2.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/VERSION +1 -1
  4. data/docs/OsConfiguration.md +3 -1
  5. data/docs/OsConfigurationCloudInit.md +18 -0
  6. data/docs/Server.md +1 -1
  7. data/lib/pnap_bmc_api/api/quotas_api.rb +1 -1
  8. data/lib/pnap_bmc_api/api/servers_api.rb +1 -1
  9. data/lib/pnap_bmc_api/api/ssh_keys_api.rb +1 -1
  10. data/lib/pnap_bmc_api/api_client.rb +4 -2
  11. data/lib/pnap_bmc_api/api_error.rb +1 -1
  12. data/lib/pnap_bmc_api/configuration.rb +3 -2
  13. data/lib/pnap_bmc_api/models/action_result.rb +2 -1
  14. data/lib/pnap_bmc_api/models/delete_result.rb +2 -1
  15. data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +2 -1
  16. data/lib/pnap_bmc_api/models/error.rb +2 -1
  17. data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +2 -1
  18. data/lib/pnap_bmc_api/models/network_configuration.rb +2 -1
  19. data/lib/pnap_bmc_api/models/os_configuration.rb +15 -5
  20. data/lib/pnap_bmc_api/models/os_configuration_cloud_init.rb +221 -0
  21. data/lib/pnap_bmc_api/models/os_configuration_map.rb +2 -1
  22. data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +2 -1
  23. data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +2 -1
  24. data/lib/pnap_bmc_api/models/os_configuration_windows.rb +2 -1
  25. data/lib/pnap_bmc_api/models/private_network_configuration.rb +2 -1
  26. data/lib/pnap_bmc_api/models/public_network_configuration.rb +2 -1
  27. data/lib/pnap_bmc_api/models/quota.rb +2 -1
  28. data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +2 -1
  29. data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +2 -1
  30. data/lib/pnap_bmc_api/models/quota_edit_limit_request_details_all_of.rb +2 -1
  31. data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +2 -1
  32. data/lib/pnap_bmc_api/models/reset_result.rb +2 -1
  33. data/lib/pnap_bmc_api/models/server.rb +7 -15
  34. data/lib/pnap_bmc_api/models/server_create.rb +2 -1
  35. data/lib/pnap_bmc_api/models/server_ip_block.rb +2 -1
  36. data/lib/pnap_bmc_api/models/server_patch.rb +2 -1
  37. data/lib/pnap_bmc_api/models/server_private_network.rb +2 -1
  38. data/lib/pnap_bmc_api/models/server_public_network.rb +2 -1
  39. data/lib/pnap_bmc_api/models/server_reserve.rb +2 -1
  40. data/lib/pnap_bmc_api/models/server_reset.rb +2 -1
  41. data/lib/pnap_bmc_api/models/ssh_key.rb +2 -1
  42. data/lib/pnap_bmc_api/models/ssh_key_create.rb +2 -1
  43. data/lib/pnap_bmc_api/models/ssh_key_update.rb +2 -1
  44. data/lib/pnap_bmc_api/models/tag_assignment.rb +2 -1
  45. data/lib/pnap_bmc_api/models/tag_assignment_request.rb +2 -1
  46. data/lib/pnap_bmc_api/version.rb +1 -1
  47. data/lib/pnap_bmc_api.rb +2 -1
  48. data/pnap_bmc_api.gemspec +1 -1
  49. data/spec/api_client_spec.rb +1 -1
  50. data/spec/configuration_spec.rb +1 -1
  51. data/spec/models/os_configuration_cloud_init_spec.rb +34 -0
  52. data/spec/spec_helper.rb +1 -1
  53. metadata +33 -29
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -111,6 +111,7 @@ module BmcApi
111
111
  # @return [Object] Returns the model itself
112
112
  def build_from_hash(attributes)
113
113
  return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
114
115
  self.class.openapi_types.each_pair do |key, type|
115
116
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
116
117
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -292,6 +292,7 @@ module BmcApi
292
292
  # @return [Object] Returns the model itself
293
293
  def build_from_hash(attributes)
294
294
  return nil unless attributes.is_a?(Hash)
295
+ attributes = attributes.transform_keys(&:to_sym)
295
296
  self.class.openapi_types.each_pair do |key, type|
296
297
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
297
298
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -148,6 +148,7 @@ module BmcApi
148
148
  # @return [Object] Returns the model itself
149
149
  def build_from_hash(attributes)
150
150
  return nil unless attributes.is_a?(Hash)
151
+ attributes = attributes.transform_keys(&:to_sym)
151
152
  self.class.openapi_types.each_pair do |key, type|
152
153
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
153
154
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -170,6 +170,7 @@ module BmcApi
170
170
  # @return [Object] Returns the model itself
171
171
  def build_from_hash(attributes)
172
172
  return nil unless attributes.is_a?(Hash)
173
+ attributes = attributes.transform_keys(&:to_sym)
173
174
  self.class.openapi_types.each_pair do |key, type|
174
175
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
175
176
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -114,6 +114,7 @@ module BmcApi
114
114
  # @return [Object] Returns the model itself
115
115
  def build_from_hash(attributes)
116
116
  return nil unless attributes.is_a?(Hash)
117
+ attributes = attributes.transform_keys(&:to_sym)
117
118
  self.class.openapi_types.each_pair do |key, type|
118
119
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
119
120
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -111,6 +111,7 @@ module BmcApi
111
111
  # @return [Object] Returns the model itself
112
112
  def build_from_hash(attributes)
113
113
  return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
114
115
  self.class.openapi_types.each_pair do |key, type|
115
116
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
116
117
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -133,6 +133,7 @@ module BmcApi
133
133
  # @return [Object] Returns the model itself
134
134
  def build_from_hash(attributes)
135
135
  return nil unless attributes.is_a?(Hash)
136
+ attributes = attributes.transform_keys(&:to_sym)
136
137
  self.class.openapi_types.each_pair do |key, type|
137
138
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
138
139
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -368,12 +368,8 @@ module BmcApi
368
368
  invalid_properties.push('invalid value for "private_ip_addresses", number of items must be greater than or equal to 1.')
369
369
  end
370
370
 
371
- if @public_ip_addresses.nil?
372
- invalid_properties.push('invalid value for "public_ip_addresses", public_ip_addresses cannot be nil.')
373
- end
374
-
375
- if @public_ip_addresses.length < 1
376
- invalid_properties.push('invalid value for "public_ip_addresses", number of items must be greater than or equal to 1.')
371
+ if !@public_ip_addresses.nil? && @public_ip_addresses.length < 0
372
+ invalid_properties.push('invalid value for "public_ip_addresses", number of items must be greater than or equal to 0.')
377
373
  end
378
374
 
379
375
  if @pricing_model.nil?
@@ -411,8 +407,7 @@ module BmcApi
411
407
  return false if @storage.nil?
412
408
  return false if @private_ip_addresses.nil?
413
409
  return false if @private_ip_addresses.length < 1
414
- return false if @public_ip_addresses.nil?
415
- return false if @public_ip_addresses.length < 1
410
+ return false if !@public_ip_addresses.nil? && @public_ip_addresses.length < 0
416
411
  return false if @pricing_model.nil?
417
412
  return false if @network_configuration.nil?
418
413
  true
@@ -510,12 +505,8 @@ module BmcApi
510
505
  # Custom attribute writer method with validation
511
506
  # @param [Object] public_ip_addresses Value to be assigned
512
507
  def public_ip_addresses=(public_ip_addresses)
513
- if public_ip_addresses.nil?
514
- fail ArgumentError, 'public_ip_addresses cannot be nil'
515
- end
516
-
517
- if public_ip_addresses.length < 1
518
- fail ArgumentError, 'invalid value for "public_ip_addresses", number of items must be greater than or equal to 1.'
508
+ if !public_ip_addresses.nil? && public_ip_addresses.length < 0
509
+ fail ArgumentError, 'invalid value for "public_ip_addresses", number of items must be greater than or equal to 0.'
519
510
  end
520
511
 
521
512
  @public_ip_addresses = public_ip_addresses
@@ -576,6 +567,7 @@ module BmcApi
576
567
  # @return [Object] Returns the model itself
577
568
  def build_from_hash(attributes)
578
569
  return nil unless attributes.is_a?(Hash)
570
+ attributes = attributes.transform_keys(&:to_sym)
579
571
  self.class.openapi_types.each_pair do |key, type|
580
572
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
581
573
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -323,6 +323,7 @@ module BmcApi
323
323
  # @return [Object] Returns the model itself
324
324
  def build_from_hash(attributes)
325
325
  return nil unless attributes.is_a?(Hash)
326
+ attributes = attributes.transform_keys(&:to_sym)
326
327
  self.class.openapi_types.each_pair do |key, type|
327
328
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
328
329
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -124,6 +124,7 @@ module BmcApi
124
124
  # @return [Object] Returns the model itself
125
125
  def build_from_hash(attributes)
126
126
  return nil unless attributes.is_a?(Hash)
127
+ attributes = attributes.transform_keys(&:to_sym)
127
128
  self.class.openapi_types.each_pair do |key, type|
128
129
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
129
130
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -169,6 +169,7 @@ module BmcApi
169
169
  # @return [Object] Returns the model itself
170
170
  def build_from_hash(attributes)
171
171
  return nil unless attributes.is_a?(Hash)
172
+ attributes = attributes.transform_keys(&:to_sym)
172
173
  self.class.openapi_types.each_pair do |key, type|
173
174
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
174
175
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -163,6 +163,7 @@ module BmcApi
163
163
  # @return [Object] Returns the model itself
164
164
  def build_from_hash(attributes)
165
165
  return nil unless attributes.is_a?(Hash)
166
+ attributes = attributes.transform_keys(&:to_sym)
166
167
  self.class.openapi_types.each_pair do |key, type|
167
168
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
168
169
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -160,6 +160,7 @@ module BmcApi
160
160
  # @return [Object] Returns the model itself
161
161
  def build_from_hash(attributes)
162
162
  return nil unless attributes.is_a?(Hash)
163
+ attributes = attributes.transform_keys(&:to_sym)
163
164
  self.class.openapi_types.each_pair do |key, type|
164
165
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
165
166
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -114,6 +114,7 @@ module BmcApi
114
114
  # @return [Object] Returns the model itself
115
115
  def build_from_hash(attributes)
116
116
  return nil unless attributes.is_a?(Hash)
117
+ attributes = attributes.transform_keys(&:to_sym)
117
118
  self.class.openapi_types.each_pair do |key, type|
118
119
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
119
120
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -144,6 +144,7 @@ module BmcApi
144
144
  # @return [Object] Returns the model itself
145
145
  def build_from_hash(attributes)
146
146
  return nil unless attributes.is_a?(Hash)
147
+ attributes = attributes.transform_keys(&:to_sym)
147
148
  self.class.openapi_types.each_pair do |key, type|
148
149
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
149
150
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -204,6 +204,7 @@ module BmcApi
204
204
  # @return [Object] Returns the model itself
205
205
  def build_from_hash(attributes)
206
206
  return nil unless attributes.is_a?(Hash)
207
+ attributes = attributes.transform_keys(&:to_sym)
207
208
  self.class.openapi_types.each_pair do |key, type|
208
209
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
209
210
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -172,6 +172,7 @@ module BmcApi
172
172
  # @return [Object] Returns the model itself
173
173
  def build_from_hash(attributes)
174
174
  return nil unless attributes.is_a?(Hash)
175
+ attributes = attributes.transform_keys(&:to_sym)
175
176
  self.class.openapi_types.each_pair do |key, type|
176
177
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
177
178
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -157,6 +157,7 @@ module BmcApi
157
157
  # @return [Object] Returns the model itself
158
158
  def build_from_hash(attributes)
159
159
  return nil unless attributes.is_a?(Hash)
160
+ attributes = attributes.transform_keys(&:to_sym)
160
161
  self.class.openapi_types.each_pair do |key, type|
161
162
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
162
163
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -198,6 +198,7 @@ module BmcApi
198
198
  # @return [Object] Returns the model itself
199
199
  def build_from_hash(attributes)
200
200
  return nil unless attributes.is_a?(Hash)
201
+ attributes = attributes.transform_keys(&:to_sym)
201
202
  self.class.openapi_types.each_pair do |key, type|
202
203
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
203
204
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -124,6 +124,7 @@ module BmcApi
124
124
  # @return [Object] Returns the model itself
125
125
  def build_from_hash(attributes)
126
126
  return nil unless attributes.is_a?(Hash)
127
+ attributes = attributes.transform_keys(&:to_sym)
127
128
  self.class.openapi_types.each_pair do |key, type|
128
129
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
129
130
  self.send("#{key}=", nil)
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -24,6 +24,7 @@ require 'pnap_bmc_api/models/error'
24
24
  require 'pnap_bmc_api/models/ip_blocks_configuration'
25
25
  require 'pnap_bmc_api/models/network_configuration'
26
26
  require 'pnap_bmc_api/models/os_configuration'
27
+ require 'pnap_bmc_api/models/os_configuration_cloud_init'
27
28
  require 'pnap_bmc_api/models/os_configuration_map'
28
29
  require 'pnap_bmc_api/models/os_configuration_map_esxi'
29
30
  require 'pnap_bmc_api/models/os_configuration_map_proxmox'
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: 5.4.0
11
+ OpenAPI Generator version: 6.1.0
12
12
 
13
13
  =end
14
14
 
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -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::OsConfigurationCloudInit
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe BmcApi::OsConfigurationCloudInit do
21
+ let(:instance) { BmcApi::OsConfigurationCloudInit.new }
22
+
23
+ describe 'test an instance of OsConfigurationCloudInit' do
24
+ it 'should create an instance of OsConfigurationCloudInit' do
25
+ expect(instance).to be_instance_of(BmcApi::OsConfigurationCloudInit)
26
+ end
27
+ end
28
+ describe 'test attribute "user_data"' 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
data/spec/spec_helper.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: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
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.1.0
4
+ version: 1.2.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-09-27 00:00:00.000000000 Z
11
+ date: 2022-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -68,6 +68,7 @@ files:
68
68
  - docs/IpBlocksConfiguration.md
69
69
  - docs/NetworkConfiguration.md
70
70
  - docs/OsConfiguration.md
71
+ - docs/OsConfigurationCloudInit.md
71
72
  - docs/OsConfigurationMap.md
72
73
  - docs/OsConfigurationMapEsxi.md
73
74
  - docs/OsConfigurationMapProxmox.md
@@ -110,6 +111,7 @@ files:
110
111
  - lib/pnap_bmc_api/models/ip_blocks_configuration.rb
111
112
  - lib/pnap_bmc_api/models/network_configuration.rb
112
113
  - lib/pnap_bmc_api/models/os_configuration.rb
114
+ - lib/pnap_bmc_api/models/os_configuration_cloud_init.rb
113
115
  - lib/pnap_bmc_api/models/os_configuration_map.rb
114
116
  - lib/pnap_bmc_api/models/os_configuration_map_esxi.rb
115
117
  - lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb
@@ -148,6 +150,7 @@ files:
148
150
  - spec/models/error_spec.rb
149
151
  - spec/models/ip_blocks_configuration_spec.rb
150
152
  - spec/models/network_configuration_spec.rb
153
+ - spec/models/os_configuration_cloud_init_spec.rb
151
154
  - spec/models/os_configuration_map_esxi_spec.rb
152
155
  - spec/models/os_configuration_map_proxmox_spec.rb
153
156
  - spec/models/os_configuration_map_spec.rb
@@ -195,46 +198,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
198
  - !ruby/object:Gem::Version
196
199
  version: '0'
197
200
  requirements: []
198
- rubygems_version: 3.1.2
201
+ rubygems_version: 3.3.5
199
202
  signing_key:
200
203
  specification_version: 4
201
204
  summary: Bare Metal Cloud API Ruby Gem
202
205
  test_files:
203
- - spec/api/quotas_api_spec.rb
204
- - spec/api/servers_api_spec.rb
205
206
  - spec/api/ssh_keys_api_spec.rb
207
+ - spec/api/servers_api_spec.rb
208
+ - spec/api/quotas_api_spec.rb
206
209
  - spec/api_client_spec.rb
207
210
  - spec/configuration_spec.rb
211
+ - spec/models/quota_edit_limit_request_details_all_of_spec.rb
212
+ - spec/models/delete_result_spec.rb
213
+ - spec/models/os_configuration_map_proxmox_spec.rb
214
+ - spec/models/server_reset_spec.rb
215
+ - spec/models/server_create_spec.rb
216
+ - spec/models/public_network_configuration_spec.rb
208
217
  - spec/models/ssh_key_create_spec.rb
209
- - spec/models/network_configuration_spec.rb
210
- - spec/models/server_spec.rb
218
+ - spec/models/os_configuration_windows_spec.rb
219
+ - 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
211
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
212
229
  - spec/models/os_configuration_map_esxi_spec.rb
213
230
  - spec/models/ssh_key_update_spec.rb
214
- - spec/models/public_network_configuration_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
215
235
  - spec/models/action_result_spec.rb
216
- - spec/models/quota_edit_limit_request_details_spec.rb
217
- - spec/models/server_reset_spec.rb
218
- - spec/models/os_configuration_map_proxmox_spec.rb
219
- - spec/models/server_ip_block_spec.rb
236
+ - spec/models/server_patch_spec.rb
237
+ - spec/models/network_configuration_spec.rb
220
238
  - spec/models/ip_blocks_configuration_spec.rb
221
- - spec/models/error_spec.rb
222
- - spec/models/delete_result_spec.rb
223
- - spec/models/tag_assignment_request_spec.rb
224
- - spec/models/ssh_key_spec.rb
225
- - spec/models/tag_assignment_spec.rb
226
- - spec/models/quota_edit_limit_request_details_all_of_spec.rb
227
- - spec/models/server_reserve_spec.rb
228
- - spec/models/reset_result_spec.rb
229
- - spec/models/server_private_network_spec.rb
230
- - spec/models/server_create_spec.rb
231
- - spec/models/os_configuration_map_spec.rb
232
- - spec/models/os_configuration_spec.rb
233
- - spec/models/quota_spec.rb
239
+ - spec/models/server_public_network_spec.rb
240
+ - spec/models/server_ip_block_spec.rb
234
241
  - spec/models/private_network_configuration_spec.rb
235
242
  - spec/models/delete_ssh_key_result_spec.rb
236
- - spec/models/server_public_network_spec.rb
237
- - spec/models/relinquish_ip_block_spec.rb
238
- - spec/models/server_patch_spec.rb
239
- - spec/models/os_configuration_windows_spec.rb
243
+ - spec/models/reset_result_spec.rb
240
244
  - spec/spec_helper.rb