pnap_bmc_api 1.1.0 → 1.1.1
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/VERSION +1 -1
- data/docs/Server.md +1 -1
- data/lib/pnap_bmc_api/api/quotas_api.rb +1 -1
- data/lib/pnap_bmc_api/api/servers_api.rb +1 -1
- data/lib/pnap_bmc_api/api/ssh_keys_api.rb +1 -1
- data/lib/pnap_bmc_api/api_client.rb +4 -2
- data/lib/pnap_bmc_api/api_error.rb +1 -1
- data/lib/pnap_bmc_api/configuration.rb +3 -2
- data/lib/pnap_bmc_api/models/action_result.rb +2 -1
- data/lib/pnap_bmc_api/models/delete_result.rb +2 -1
- data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +2 -1
- data/lib/pnap_bmc_api/models/error.rb +2 -1
- data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +2 -1
- data/lib/pnap_bmc_api/models/network_configuration.rb +2 -1
- data/lib/pnap_bmc_api/models/os_configuration.rb +2 -1
- data/lib/pnap_bmc_api/models/os_configuration_map.rb +2 -1
- data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +2 -1
- data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +2 -1
- data/lib/pnap_bmc_api/models/os_configuration_windows.rb +2 -1
- data/lib/pnap_bmc_api/models/private_network_configuration.rb +2 -1
- data/lib/pnap_bmc_api/models/public_network_configuration.rb +2 -1
- data/lib/pnap_bmc_api/models/quota.rb +2 -1
- data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +2 -1
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +2 -1
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details_all_of.rb +2 -1
- data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +2 -1
- data/lib/pnap_bmc_api/models/reset_result.rb +2 -1
- data/lib/pnap_bmc_api/models/server.rb +7 -15
- data/lib/pnap_bmc_api/models/server_create.rb +2 -1
- data/lib/pnap_bmc_api/models/server_ip_block.rb +2 -1
- data/lib/pnap_bmc_api/models/server_patch.rb +2 -1
- data/lib/pnap_bmc_api/models/server_private_network.rb +2 -1
- data/lib/pnap_bmc_api/models/server_public_network.rb +2 -1
- data/lib/pnap_bmc_api/models/server_reserve.rb +2 -1
- data/lib/pnap_bmc_api/models/server_reset.rb +2 -1
- data/lib/pnap_bmc_api/models/ssh_key.rb +2 -1
- data/lib/pnap_bmc_api/models/ssh_key_create.rb +2 -1
- data/lib/pnap_bmc_api/models/ssh_key_update.rb +2 -1
- data/lib/pnap_bmc_api/models/tag_assignment.rb +2 -1
- data/lib/pnap_bmc_api/models/tag_assignment_request.rb +2 -1
- data/lib/pnap_bmc_api/version.rb +1 -1
- data/lib/pnap_bmc_api.rb +1 -1
- data/pnap_bmc_api.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3841d9054027bca48af40d89d6657b3c049884b09835945414cd428c134a01d6
|
4
|
+
data.tar.gz: 231d9d1ca92bc9e44861c6f8f99d2ad797566ebfaa091b9aa7ce3fcf84980c15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28f2fb161b5fc678f8dcd89df2ced16da0608b84d028244de9bc259709d6b8c2aaef47add2fb228747973c35425eae612ed4df0733f9ed64170174351c9f6706
|
7
|
+
data.tar.gz: 51ac942559c3a31c27f4a7e343b9efac71e20b851efe6922a921f5735c11033de6e34e12219a216caab0cf55ab464f76c84458ee5ed5e7aa0b10e4cc5dbf6e2a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/docs/Server.md
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
| **ram** | **String** | A description of the machine RAM. | |
|
19
19
|
| **storage** | **String** | A description of the machine storage. | |
|
20
20
|
| **private_ip_addresses** | **Array<String>** | Private IP addresses assigned to server. | |
|
21
|
-
| **public_ip_addresses** | **Array<String>** | Public IP addresses assigned to server. |
|
21
|
+
| **public_ip_addresses** | **Array<String>** | Public IP addresses assigned to server. | [optional] |
|
22
22
|
| **reservation_id** | **String** | The reservation reference id if any. | [optional] |
|
23
23
|
| **pricing_model** | **String** | 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`. | [default to 'HOURLY'] |
|
24
24
|
| **password** | **String** | Password set for user Admin on Windows server or user root on ESXi server which will only be returned in response to provisioning a server. | [optional] |
|
@@ -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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -95,6 +95,7 @@ module BmcApi
|
|
95
95
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
96
96
|
query_params = opts[:query_params] || {}
|
97
97
|
form_params = opts[:form_params] || {}
|
98
|
+
follow_location = opts[:follow_location] || true
|
98
99
|
|
99
100
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
100
101
|
|
@@ -111,7 +112,8 @@ module BmcApi
|
|
111
112
|
:ssl_verifyhost => _verify_ssl_host,
|
112
113
|
:sslcert => @config.cert_file,
|
113
114
|
:sslkey => @config.key_file,
|
114
|
-
:verbose => @config.debugging
|
115
|
+
:verbose => @config.debugging,
|
116
|
+
:followlocation => follow_location
|
115
117
|
}
|
116
118
|
|
117
119
|
# set custom cert, if provided
|
@@ -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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -133,6 +133,7 @@ module BmcApi
|
|
133
133
|
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
134
134
|
attr_accessor :params_encoding
|
135
135
|
|
136
|
+
|
136
137
|
attr_accessor :inject_format
|
137
138
|
|
138
139
|
attr_accessor :force_ending_format
|
@@ -150,10 +151,10 @@ module BmcApi
|
|
150
151
|
@client_side_validation = true
|
151
152
|
@verify_ssl = true
|
152
153
|
@verify_ssl_host = true
|
153
|
-
@params_encoding = nil
|
154
154
|
@cert_file = nil
|
155
155
|
@key_file = nil
|
156
156
|
@timeout = 0
|
157
|
+
@params_encoding = nil
|
157
158
|
@debugging = false
|
158
159
|
@inject_format = false
|
159
160
|
@force_ending_format = false
|
@@ -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:
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -129,6 +129,7 @@ module BmcApi
|
|
129
129
|
# @return [Object] Returns the model itself
|
130
130
|
def build_from_hash(attributes)
|
131
131
|
return nil unless attributes.is_a?(Hash)
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
132
133
|
self.class.openapi_types.each_pair do |key, type|
|
133
134
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
135
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -129,6 +129,7 @@ module BmcApi
|
|
129
129
|
# @return [Object] Returns the model itself
|
130
130
|
def build_from_hash(attributes)
|
131
131
|
return nil unless attributes.is_a?(Hash)
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
132
133
|
self.class.openapi_types.each_pair do |key, type|
|
133
134
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
135
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -125,6 +125,7 @@ module BmcApi
|
|
125
125
|
# @return [Object] Returns the model itself
|
126
126
|
def build_from_hash(attributes)
|
127
127
|
return nil unless attributes.is_a?(Hash)
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
128
129
|
self.class.openapi_types.each_pair do |key, type|
|
129
130
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
130
131
|
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:
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -136,6 +136,7 @@ module BmcApi
|
|
136
136
|
# @return [Object] Returns the model itself
|
137
137
|
def build_from_hash(attributes)
|
138
138
|
return nil unless attributes.is_a?(Hash)
|
139
|
+
attributes = attributes.transform_keys(&:to_sym)
|
139
140
|
self.class.openapi_types.each_pair do |key, type|
|
140
141
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
141
142
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -167,6 +167,7 @@ module BmcApi
|
|
167
167
|
# @return [Object] Returns the model itself
|
168
168
|
def build_from_hash(attributes)
|
169
169
|
return nil unless attributes.is_a?(Hash)
|
170
|
+
attributes = attributes.transform_keys(&:to_sym)
|
170
171
|
self.class.openapi_types.each_pair do |key, type|
|
171
172
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
172
173
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -126,6 +126,7 @@ module BmcApi
|
|
126
126
|
# @return [Object] Returns the model itself
|
127
127
|
def build_from_hash(attributes)
|
128
128
|
return nil unless attributes.is_a?(Hash)
|
129
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
130
|
self.class.openapi_types.each_pair do |key, type|
|
130
131
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
132
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -146,6 +146,7 @@ module BmcApi
|
|
146
146
|
# @return [Object] Returns the model itself
|
147
147
|
def build_from_hash(attributes)
|
148
148
|
return nil unless attributes.is_a?(Hash)
|
149
|
+
attributes = attributes.transform_keys(&:to_sym)
|
149
150
|
self.class.openapi_types.each_pair do |key, type|
|
150
151
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
151
152
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -146,6 +146,7 @@ module BmcApi
|
|
146
146
|
# @return [Object] Returns the model itself
|
147
147
|
def build_from_hash(attributes)
|
148
148
|
return nil unless attributes.is_a?(Hash)
|
149
|
+
attributes = attributes.transform_keys(&:to_sym)
|
149
150
|
self.class.openapi_types.each_pair do |key, type|
|
150
151
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
151
152
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -126,6 +126,7 @@ module BmcApi
|
|
126
126
|
# @return [Object] Returns the model itself
|
127
127
|
def build_from_hash(attributes)
|
128
128
|
return nil unless attributes.is_a?(Hash)
|
129
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
130
|
self.class.openapi_types.each_pair do |key, type|
|
130
131
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
132
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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
|
372
|
-
invalid_properties.push('invalid value for "public_ip_addresses",
|
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
|
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
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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)
|
data/lib/pnap_bmc_api/version.rb
CHANGED
data/lib/pnap_bmc_api.rb
CHANGED
data/pnap_bmc_api.gemspec
CHANGED
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|