pnap_network_api 2.1.1 → 2.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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/VERSION +1 -1
  4. data/docs/BgpIpPrefix.md +24 -0
  5. data/docs/BgpPeerGroup.md +6 -2
  6. data/docs/BgpPeerGroupCreate.md +1 -1
  7. data/docs/NetworkMembership.md +1 -1
  8. data/docs/PrivateNetworkCreate.md +1 -1
  9. data/docs/PublicNetwork.md +1 -1
  10. data/docs/PublicNetworkCreate.md +1 -1
  11. data/lib/pnap_network_api/api/bgp_peer_groups_api.rb +6 -6
  12. data/lib/pnap_network_api/api/private_networks_api.rb +6 -6
  13. data/lib/pnap_network_api/api/public_networks_api.rb +8 -8
  14. data/lib/pnap_network_api/api_client.rb +17 -14
  15. data/lib/pnap_network_api/api_error.rb +1 -1
  16. data/lib/pnap_network_api/api_model_base.rb +88 -0
  17. data/lib/pnap_network_api/configuration.rb +11 -1
  18. data/lib/pnap_network_api/models/asn_details.rb +41 -78
  19. data/lib/pnap_network_api/models/bgp_ip_prefix.rb +247 -0
  20. data/lib/pnap_network_api/models/bgp_ipv4_prefix.rb +52 -79
  21. data/lib/pnap_network_api/models/bgp_peer_group.rb +184 -83
  22. data/lib/pnap_network_api/models/bgp_peer_group_create.rb +44 -81
  23. data/lib/pnap_network_api/models/bgp_peer_group_patch.rb +13 -80
  24. data/lib/pnap_network_api/models/error.rb +21 -78
  25. data/lib/pnap_network_api/models/network_membership.rb +42 -79
  26. data/lib/pnap_network_api/models/private_network.rb +103 -80
  27. data/lib/pnap_network_api/models/private_network_create.rb +24 -81
  28. data/lib/pnap_network_api/models/private_network_modify.rb +23 -80
  29. data/lib/pnap_network_api/models/private_network_server.rb +31 -78
  30. data/lib/pnap_network_api/models/public_network.rb +84 -81
  31. data/lib/pnap_network_api/models/public_network_create.rb +24 -81
  32. data/lib/pnap_network_api/models/public_network_ip_block.rb +41 -78
  33. data/lib/pnap_network_api/models/public_network_ip_block_create.rb +21 -78
  34. data/lib/pnap_network_api/models/public_network_modify.rb +13 -80
  35. data/lib/pnap_network_api/version.rb +1 -2
  36. data/lib/pnap_network_api.rb +3 -1
  37. data/pnap_network_api.gemspec +6 -6
  38. data/spec/api/bgp_peer_groups_api_spec.rb +1 -1
  39. data/spec/api/private_networks_api_spec.rb +1 -1
  40. data/spec/api/public_networks_api_spec.rb +1 -1
  41. data/spec/models/asn_details_spec.rb +2 -2
  42. data/spec/models/bgp_ip_prefix_spec.rb +54 -0
  43. data/spec/models/bgp_ipv4_prefix_spec.rb +2 -2
  44. data/spec/models/bgp_peer_group_create_spec.rb +2 -2
  45. data/spec/models/bgp_peer_group_patch_spec.rb +2 -2
  46. data/spec/models/bgp_peer_group_spec.rb +14 -2
  47. data/spec/models/error_spec.rb +2 -2
  48. data/spec/models/network_membership_spec.rb +2 -2
  49. data/spec/models/private_network_create_spec.rb +2 -2
  50. data/spec/models/private_network_modify_spec.rb +2 -2
  51. data/spec/models/private_network_server_spec.rb +2 -2
  52. data/spec/models/private_network_spec.rb +2 -2
  53. data/spec/models/public_network_create_spec.rb +2 -2
  54. data/spec/models/public_network_ip_block_create_spec.rb +2 -2
  55. data/spec/models/public_network_ip_block_spec.rb +2 -2
  56. data/spec/models/public_network_modify_spec.rb +2 -2
  57. data/spec/models/public_network_spec.rb +2 -2
  58. data/spec/spec_helper.rb +1 -1
  59. metadata +29 -16
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module NetworkApi
17
17
  # The assigned IP block to the Public Network.
18
- class PublicNetworkIpBlock
18
+ class PublicNetworkIpBlock < ApiModelBase
19
19
  # The IP Block identifier.
20
20
  attr_accessor :id
21
21
 
@@ -34,9 +34,14 @@ module NetworkApi
34
34
  }
35
35
  end
36
36
 
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
37
42
  # Returns all the JSON keys this model knows about
38
43
  def self.acceptable_attributes
39
- attribute_map.values
44
+ acceptable_attribute_map.values
40
45
  end
41
46
 
42
47
  # Attribute type mapping.
@@ -62,9 +67,10 @@ module NetworkApi
62
67
  end
63
68
 
64
69
  # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
71
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkApi::PublicNetworkIpBlock`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkApi::PublicNetworkIpBlock`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
74
  end
69
75
  h[k.to_sym] = v
70
76
  }
@@ -118,6 +124,36 @@ module NetworkApi
118
124
  true
119
125
  end
120
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] id Value to be assigned
129
+ def id=(id)
130
+ if id.nil?
131
+ fail ArgumentError, 'id cannot be nil'
132
+ end
133
+
134
+ @id = id
135
+ end
136
+
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] cidr Value to be assigned
139
+ def cidr=(cidr)
140
+ if cidr.nil?
141
+ fail ArgumentError, 'cidr cannot be nil'
142
+ end
143
+
144
+ @cidr = cidr
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] used_ips_count Value to be assigned
149
+ def used_ips_count=(used_ips_count)
150
+ if used_ips_count.nil?
151
+ fail ArgumentError, 'used_ips_count cannot be nil'
152
+ end
153
+
154
+ @used_ips_count = used_ips_count
155
+ end
156
+
121
157
  # Checks equality by comparing each attribute.
122
158
  # @param [Object] Object to be compared
123
159
  def ==(o)
@@ -163,61 +199,6 @@ module NetworkApi
163
199
  new(transformed_hash)
164
200
  end
165
201
 
166
- # Deserializes the data based on type
167
- # @param string type Data type
168
- # @param string value Value to be deserialized
169
- # @return [Object] Deserialized data
170
- def self._deserialize(type, value)
171
- case type.to_sym
172
- when :Time
173
- Time.parse(value)
174
- when :Date
175
- Date.parse(value)
176
- when :String
177
- value.to_s
178
- when :Integer
179
- value.to_i
180
- when :Float
181
- value.to_f
182
- when :Boolean
183
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
184
- true
185
- else
186
- false
187
- end
188
- when :Object
189
- # generic object (usually a Hash), return directly
190
- value
191
- when /\AArray<(?<inner_type>.+)>\z/
192
- inner_type = Regexp.last_match[:inner_type]
193
- value.map { |v| _deserialize(inner_type, v) }
194
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
195
- k_type = Regexp.last_match[:k_type]
196
- v_type = Regexp.last_match[:v_type]
197
- {}.tap do |hash|
198
- value.each do |k, v|
199
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
200
- end
201
- end
202
- else # model
203
- # models (e.g. Pet) or oneOf
204
- klass = NetworkApi.const_get(type)
205
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
206
- end
207
- end
208
-
209
- # Returns the string representation of the object
210
- # @return [String] String presentation of the object
211
- def to_s
212
- to_hash.to_s
213
- end
214
-
215
- # to_body is an alias to to_hash (backward compatibility)
216
- # @return [Hash] Returns the object in the form of hash
217
- def to_body
218
- to_hash
219
- end
220
-
221
202
  # Returns the object in the form of hash
222
203
  # @return [Hash] Returns the object in the form of hash
223
204
  def to_hash
@@ -234,24 +215,6 @@ module NetworkApi
234
215
  hash
235
216
  end
236
217
 
237
- # Outputs non-array value in the form of hash
238
- # For object, use to_hash. Otherwise, just return the value
239
- # @param [Object] value Any valid value
240
- # @return [Hash] Returns the value in the form of hash
241
- def _to_hash(value)
242
- if value.is_a?(Array)
243
- value.compact.map { |v| _to_hash(v) }
244
- elsif value.is_a?(Hash)
245
- {}.tap do |hash|
246
- value.each { |k, v| hash[k] = _to_hash(v) }
247
- end
248
- elsif value.respond_to? :to_hash
249
- value.to_hash
250
- else
251
- value
252
- end
253
- end
254
-
255
218
  end
256
219
 
257
220
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module NetworkApi
17
17
  # Details of IP block to be assigned to Public Network.
18
- class PublicNetworkIpBlockCreate
18
+ class PublicNetworkIpBlockCreate < ApiModelBase
19
19
  # The IP Block identifier.
20
20
  attr_accessor :id
21
21
 
@@ -26,9 +26,14 @@ module NetworkApi
26
26
  }
27
27
  end
28
28
 
29
+ # Returns attribute mapping this model knows about
30
+ def self.acceptable_attribute_map
31
+ attribute_map
32
+ end
33
+
29
34
  # Returns all the JSON keys this model knows about
30
35
  def self.acceptable_attributes
31
- attribute_map.values
36
+ acceptable_attribute_map.values
32
37
  end
33
38
 
34
39
  # Attribute type mapping.
@@ -52,9 +57,10 @@ module NetworkApi
52
57
  end
53
58
 
54
59
  # check to see if the attribute exists and convert string to symbol for hash key
60
+ acceptable_attribute_map = self.class.acceptable_attribute_map
55
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
- if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkApi::PublicNetworkIpBlockCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkApi::PublicNetworkIpBlockCreate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
58
64
  end
59
65
  h[k.to_sym] = v
60
66
  }
@@ -86,6 +92,16 @@ module NetworkApi
86
92
  true
87
93
  end
88
94
 
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] id Value to be assigned
97
+ def id=(id)
98
+ if id.nil?
99
+ fail ArgumentError, 'id cannot be nil'
100
+ end
101
+
102
+ @id = id
103
+ end
104
+
89
105
  # Checks equality by comparing each attribute.
90
106
  # @param [Object] Object to be compared
91
107
  def ==(o)
@@ -129,61 +145,6 @@ module NetworkApi
129
145
  new(transformed_hash)
130
146
  end
131
147
 
132
- # Deserializes the data based on type
133
- # @param string type Data type
134
- # @param string value Value to be deserialized
135
- # @return [Object] Deserialized data
136
- def self._deserialize(type, value)
137
- case type.to_sym
138
- when :Time
139
- Time.parse(value)
140
- when :Date
141
- Date.parse(value)
142
- when :String
143
- value.to_s
144
- when :Integer
145
- value.to_i
146
- when :Float
147
- value.to_f
148
- when :Boolean
149
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
- true
151
- else
152
- false
153
- end
154
- when :Object
155
- # generic object (usually a Hash), return directly
156
- value
157
- when /\AArray<(?<inner_type>.+)>\z/
158
- inner_type = Regexp.last_match[:inner_type]
159
- value.map { |v| _deserialize(inner_type, v) }
160
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
- k_type = Regexp.last_match[:k_type]
162
- v_type = Regexp.last_match[:v_type]
163
- {}.tap do |hash|
164
- value.each do |k, v|
165
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
- end
167
- end
168
- else # model
169
- # models (e.g. Pet) or oneOf
170
- klass = NetworkApi.const_get(type)
171
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
- end
173
- end
174
-
175
- # Returns the string representation of the object
176
- # @return [String] String presentation of the object
177
- def to_s
178
- to_hash.to_s
179
- end
180
-
181
- # to_body is an alias to to_hash (backward compatibility)
182
- # @return [Hash] Returns the object in the form of hash
183
- def to_body
184
- to_hash
185
- end
186
-
187
148
  # Returns the object in the form of hash
188
149
  # @return [Hash] Returns the object in the form of hash
189
150
  def to_hash
@@ -200,24 +161,6 @@ module NetworkApi
200
161
  hash
201
162
  end
202
163
 
203
- # Outputs non-array value in the form of hash
204
- # For object, use to_hash. Otherwise, just return the value
205
- # @param [Object] value Any valid value
206
- # @return [Hash] Returns the value in the form of hash
207
- def _to_hash(value)
208
- if value.is_a?(Array)
209
- value.compact.map { |v| _to_hash(v) }
210
- elsif value.is_a?(Hash)
211
- {}.tap do |hash|
212
- value.each { |k, v| hash[k] = _to_hash(v) }
213
- end
214
- elsif value.respond_to? :to_hash
215
- value.to_hash
216
- else
217
- value
218
- end
219
- end
220
-
221
164
  end
222
165
 
223
166
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module NetworkApi
17
17
  # Public Network Modifiable Details.
18
- class PublicNetworkModify
18
+ class PublicNetworkModify < ApiModelBase
19
19
  # A friendly name given to the network. This name should be unique.
20
20
  attr_accessor :name
21
21
 
@@ -34,9 +34,14 @@ module NetworkApi
34
34
  }
35
35
  end
36
36
 
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
37
42
  # Returns all the JSON keys this model knows about
38
43
  def self.acceptable_attributes
39
- attribute_map.values
44
+ acceptable_attribute_map.values
40
45
  end
41
46
 
42
47
  # Attribute type mapping.
@@ -62,9 +67,10 @@ module NetworkApi
62
67
  end
63
68
 
64
69
  # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
71
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkApi::PublicNetworkModify`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkApi::PublicNetworkModify`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
74
  end
69
75
  h[k.to_sym] = v
70
76
  }
@@ -92,7 +98,7 @@ module NetworkApi
92
98
  end
93
99
 
94
100
  if !@name.nil? && @name.to_s.length < 1
95
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
101
+ invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
96
102
  end
97
103
 
98
104
  pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
@@ -130,7 +136,7 @@ module NetworkApi
130
136
  end
131
137
 
132
138
  if name.to_s.length < 1
133
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
139
+ fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
134
140
  end
135
141
 
136
142
  pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
@@ -200,61 +206,6 @@ module NetworkApi
200
206
  new(transformed_hash)
201
207
  end
202
208
 
203
- # Deserializes the data based on type
204
- # @param string type Data type
205
- # @param string value Value to be deserialized
206
- # @return [Object] Deserialized data
207
- def self._deserialize(type, value)
208
- case type.to_sym
209
- when :Time
210
- Time.parse(value)
211
- when :Date
212
- Date.parse(value)
213
- when :String
214
- value.to_s
215
- when :Integer
216
- value.to_i
217
- when :Float
218
- value.to_f
219
- when :Boolean
220
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
221
- true
222
- else
223
- false
224
- end
225
- when :Object
226
- # generic object (usually a Hash), return directly
227
- value
228
- when /\AArray<(?<inner_type>.+)>\z/
229
- inner_type = Regexp.last_match[:inner_type]
230
- value.map { |v| _deserialize(inner_type, v) }
231
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
232
- k_type = Regexp.last_match[:k_type]
233
- v_type = Regexp.last_match[:v_type]
234
- {}.tap do |hash|
235
- value.each do |k, v|
236
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
237
- end
238
- end
239
- else # model
240
- # models (e.g. Pet) or oneOf
241
- klass = NetworkApi.const_get(type)
242
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
243
- end
244
- end
245
-
246
- # Returns the string representation of the object
247
- # @return [String] String presentation of the object
248
- def to_s
249
- to_hash.to_s
250
- end
251
-
252
- # to_body is an alias to to_hash (backward compatibility)
253
- # @return [Hash] Returns the object in the form of hash
254
- def to_body
255
- to_hash
256
- end
257
-
258
209
  # Returns the object in the form of hash
259
210
  # @return [Hash] Returns the object in the form of hash
260
211
  def to_hash
@@ -271,24 +222,6 @@ module NetworkApi
271
222
  hash
272
223
  end
273
224
 
274
- # Outputs non-array value in the form of hash
275
- # For object, use to_hash. Otherwise, just return the value
276
- # @param [Object] value Any valid value
277
- # @return [Hash] Returns the value in the form of hash
278
- def _to_hash(value)
279
- if value.is_a?(Array)
280
- value.compact.map { |v| _to_hash(v) }
281
- elsif value.is_a?(Hash)
282
- {}.tap do |hash|
283
- value.each { |k, v| hash[k] = _to_hash(v) }
284
- end
285
- elsif value.respond_to? :to_hash
286
- value.to_hash
287
- else
288
- value
289
- end
290
- end
291
-
292
225
  end
293
226
 
294
227
  end
@@ -6,8 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
10
-
9
+ Generator version: 7.20.0
11
10
  =end
12
11
 
13
12
  def get_version()
@@ -6,19 +6,21 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
13
13
  # Common files
14
14
  require 'pnap_network_api/api_client'
15
15
  require 'pnap_network_api/api_error'
16
+ require 'pnap_network_api/api_model_base'
16
17
  require 'pnap_network_api/version'
17
18
  require 'pnap_network_api/configuration'
18
19
 
19
20
  # Models
20
21
  require 'pnap_network_api/models/asn_details'
21
22
  require 'pnap_network_api/models/bgp_ipv4_prefix'
23
+ require 'pnap_network_api/models/bgp_ip_prefix'
22
24
  require 'pnap_network_api/models/bgp_peer_group'
23
25
  require 'pnap_network_api/models/bgp_peer_group_create'
24
26
  require 'pnap_network_api/models/bgp_peer_group_patch'
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 1.0
9
9
  Contact: support@phoenixnap.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 7.2.0
11
+ Generator version: 7.20.0
12
12
 
13
13
  =end
14
14
 
@@ -19,14 +19,14 @@ Gem::Specification.new do |s|
19
19
  s.name = "pnap_network_api"
20
20
  s.version = NetworkApi::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
- s.authors = ["PhoenixNAP"]
22
+ s.authors = ["OpenAPI-Generator"]
23
23
  s.email = ["support@phoenixnap.com"]
24
- s.homepage = "https://phoenixnap.com/bare-metal-cloud"
24
+ s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "Networks API Ruby Gem"
26
- s.description = "Networks API Ruby Gem"
26
+ s.description = "Create, list, edit and delete public/private networks with the Network API. Use public networks to place multiple servers on the same network or VLAN. Assign new servers with IP addresses from the same CIDR range. Use private networks to avoid unnecessary egress data charges. Model your networks according to your business needs.<br> <br> <span class='pnap-api-knowledge-base-link'> Helpful knowledge base articles are available for <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>multi-private backend networks</a>, <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a> and <a href='https://phoenixnap.com/kb/border-gateway-protocol-bmc' target='_blank'>border gateway protocol peer groups</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b> "
27
27
  s.license = "MPL-2.0"
28
28
  s.required_ruby_version = ">= 2.7"
29
- s.metadata = { "source_code_uri" => "https://github.com/phoenixnap/ruby-sdk-bmc" }
29
+ s.metadata = {}
30
30
 
31
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
32
 
@@ -36,4 +36,4 @@ Gem::Specification.new do |s|
36
36
  s.test_files = `find spec/*`.split("\n")
37
37
  s.executables = []
38
38
  s.require_paths = ["lib"]
39
- end
39
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe NetworkApi::AsnDetails do
21
- let(:instance) { NetworkApi::AsnDetails.new }
21
+ #let(:instance) { NetworkApi::AsnDetails.new }
22
22
 
23
23
  describe 'test an instance of AsnDetails' do
24
24
  it 'should create an instance of AsnDetails' do
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #Networks API
3
+
4
+ #Create, list, edit and delete public/private networks with the Network API. Use public networks to place multiple servers on the same network or VLAN. Assign new servers with IP addresses from the same CIDR range. Use private networks to avoid unnecessary egress data charges. Model your networks according to your business needs.<br> <br> <span class='pnap-api-knowledge-base-link'> Helpful knowledge base articles are available for <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>multi-private backend networks</a>, <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a> and <a href='https://phoenixnap.com/kb/border-gateway-protocol-bmc' target='_blank'>border gateway protocol peer groups</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@phoenixnap.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.20.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for NetworkApi::BgpIpPrefix
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe NetworkApi::BgpIpPrefix do
21
+ #let(:instance) { NetworkApi::BgpIpPrefix.new }
22
+
23
+ describe 'test an instance of BgpIpPrefix' do
24
+ it 'should create an instance of BgpIpPrefix' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(NetworkApi::BgpIpPrefix)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "ip_allocation_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "cidr"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "ip_version"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "status"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe NetworkApi::BgpIPv4Prefix do
21
- let(:instance) { NetworkApi::BgpIPv4Prefix.new }
21
+ #let(:instance) { NetworkApi::BgpIPv4Prefix.new }
22
22
 
23
23
  describe 'test an instance of BgpIPv4Prefix' do
24
24
  it 'should create an instance of BgpIPv4Prefix' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.2.0
9
+ Generator version: 7.20.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ require 'date'
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
20
  describe NetworkApi::BgpPeerGroupCreate do
21
- let(:instance) { NetworkApi::BgpPeerGroupCreate.new }
21
+ #let(:instance) { NetworkApi::BgpPeerGroupCreate.new }
22
22
 
23
23
  describe 'test an instance of BgpPeerGroupCreate' do
24
24
  it 'should create an instance of BgpPeerGroupCreate' do