pnap_network_api 1.3.2 → 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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/VERSION +1 -1
  4. data/docs/PrivateNetwork.md +1 -1
  5. data/docs/PrivateNetworksApi.md +13 -15
  6. data/docs/PublicNetworksApi.md +18 -24
  7. data/lib/pnap_network_api/api/private_networks_api.rb +21 -13
  8. data/lib/pnap_network_api/api/public_networks_api.rb +31 -19
  9. data/lib/pnap_network_api/api_client.rb +24 -21
  10. data/lib/pnap_network_api/api_error.rb +2 -1
  11. data/lib/pnap_network_api/configuration.rb +28 -9
  12. data/lib/pnap_network_api/models/error.rb +16 -19
  13. data/lib/pnap_network_api/models/network_membership.rb +20 -19
  14. data/lib/pnap_network_api/models/private_network.rb +40 -21
  15. data/lib/pnap_network_api/models/private_network_create.rb +40 -22
  16. data/lib/pnap_network_api/models/private_network_modify.rb +34 -20
  17. data/lib/pnap_network_api/models/private_network_server.rb +18 -19
  18. data/lib/pnap_network_api/models/public_network.rb +35 -20
  19. data/lib/pnap_network_api/models/public_network_create.rb +45 -23
  20. data/lib/pnap_network_api/models/public_network_ip_block.rb +16 -19
  21. data/lib/pnap_network_api/models/public_network_modify.rb +36 -22
  22. data/lib/pnap_network_api/version.rb +1 -1
  23. data/lib/pnap_network_api.rb +1 -1
  24. data/pnap_network_api.gemspec +2 -2
  25. data/spec/api/private_networks_api_spec.rb +10 -9
  26. data/spec/api/public_networks_api_spec.rb +14 -13
  27. data/spec/models/error_spec.rb +7 -5
  28. data/spec/models/network_membership_spec.rb +7 -5
  29. data/spec/models/private_network_create_spec.rb +16 -8
  30. data/spec/models/private_network_modify_spec.rb +8 -6
  31. data/spec/models/private_network_server_spec.rb +7 -5
  32. data/spec/models/private_network_spec.rb +32 -12
  33. data/spec/models/public_network_create_spec.rb +15 -7
  34. data/spec/models/public_network_ip_block_spec.rb +6 -4
  35. data/spec/models/public_network_modify_spec.rb +7 -5
  36. data/spec/models/public_network_spec.rb +19 -11
  37. data/spec/spec_helper.rb +1 -1
  38. metadata +8 -16
  39. data/docs/PublicNetworkMembership.md +0 -22
  40. data/lib/pnap_network_api/models/public_network_membership.rb +0 -257
  41. data/spec/api_client_spec.rb +0 -226
  42. data/spec/configuration_spec.rb +0 -42
  43. data/spec/models/public_network_membership_spec.rb +0 -46
@@ -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: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -76,6 +76,7 @@ module NetworkApi
76
76
  # Show invalid properties with the reasons. Usually used together with valid?
77
77
  # @return Array for valid properties with the reasons
78
78
  def list_invalid_properties
79
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
79
80
  invalid_properties = Array.new
80
81
  if !@name.nil? && @name.to_s.length > 100
81
82
  invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
@@ -85,6 +86,11 @@ module NetworkApi
85
86
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
86
87
  end
87
88
 
89
+ pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
90
+ if !@name.nil? && @name !~ pattern
91
+ invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
92
+ end
93
+
88
94
  if !@description.nil? && @description.to_s.length > 250
89
95
  invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 250.')
90
96
  end
@@ -95,8 +101,10 @@ module NetworkApi
95
101
  # Check to see if the all the properties in the model are valid
96
102
  # @return true if the model is valid
97
103
  def valid?
104
+ warn '[DEPRECATED] the `valid?` method is obsolete'
98
105
  return false if !@name.nil? && @name.to_s.length > 100
99
106
  return false if !@name.nil? && @name.to_s.length < 1
107
+ return false if !@name.nil? && @name !~ Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
100
108
  return false if !@description.nil? && @description.to_s.length > 250
101
109
  true
102
110
  end
@@ -104,21 +112,34 @@ module NetworkApi
104
112
  # Custom attribute writer method with validation
105
113
  # @param [Object] name Value to be assigned
106
114
  def name=(name)
107
- if !name.nil? && name.to_s.length > 100
115
+ if name.nil?
116
+ fail ArgumentError, 'name cannot be nil'
117
+ end
118
+
119
+ if name.to_s.length > 100
108
120
  fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
109
121
  end
110
122
 
111
- if !name.nil? && name.to_s.length < 1
123
+ if name.to_s.length < 1
112
124
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
113
125
  end
114
126
 
127
+ pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
128
+ if name !~ pattern
129
+ fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
130
+ end
131
+
115
132
  @name = name
116
133
  end
117
134
 
118
135
  # Custom attribute writer method with validation
119
136
  # @param [Object] description Value to be assigned
120
137
  def description=(description)
121
- if !description.nil? && description.to_s.length > 250
138
+ if description.nil?
139
+ fail ArgumentError, 'description cannot be nil'
140
+ end
141
+
142
+ if description.to_s.length > 250
122
143
  fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 250.'
123
144
  end
124
145
 
@@ -150,37 +171,30 @@ module NetworkApi
150
171
  # @param [Hash] attributes Model attributes in the form of hash
151
172
  # @return [Object] Returns the model itself
152
173
  def self.build_from_hash(attributes)
153
- new.build_from_hash(attributes)
154
- end
155
-
156
- # Builds the object from hash
157
- # @param [Hash] attributes Model attributes in the form of hash
158
- # @return [Object] Returns the model itself
159
- def build_from_hash(attributes)
160
174
  return nil unless attributes.is_a?(Hash)
161
175
  attributes = attributes.transform_keys(&:to_sym)
162
- self.class.openapi_types.each_pair do |key, type|
163
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
164
- self.send("#{key}=", nil)
176
+ transformed_hash = {}
177
+ openapi_types.each_pair do |key, type|
178
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
179
+ transformed_hash["#{key}"] = nil
165
180
  elsif type =~ /\AArray<(.*)>/i
166
181
  # check to ensure the input is an array given that the attribute
167
182
  # is documented as an array but the input is not
168
- if attributes[self.class.attribute_map[key]].is_a?(Array)
169
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
183
+ if attributes[attribute_map[key]].is_a?(Array)
184
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
170
185
  end
171
- elsif !attributes[self.class.attribute_map[key]].nil?
172
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
186
+ elsif !attributes[attribute_map[key]].nil?
187
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
173
188
  end
174
189
  end
175
-
176
- self
190
+ new(transformed_hash)
177
191
  end
178
192
 
179
193
  # Deserializes the data based on type
180
194
  # @param string type Data type
181
195
  # @param string value Value to be deserialized
182
196
  # @return [Object] Deserialized data
183
- def _deserialize(type, value)
197
+ def self._deserialize(type, value)
184
198
  case type.to_sym
185
199
  when :Time
186
200
  Time.parse(value)
@@ -215,7 +229,7 @@ module NetworkApi
215
229
  else # model
216
230
  # models (e.g. Pet) or oneOf
217
231
  klass = NetworkApi.const_get(type)
218
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
232
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
219
233
  end
220
234
  end
221
235
 
@@ -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: 6.1.0
9
+ OpenAPI Generator version: 7.2.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: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -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: 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 = "Networks API Ruby Gem"
26
26
  s.description = "Networks 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
  #Networks API
3
3
 
4
- #Use the Networks API to create, list, edit, and delete private networks to best fit your business needs. Private networks allow your servers to communicate without connecting to the public internet, avoiding unnecessary egress data charges.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
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> and <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
5
5
 
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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -40,7 +40,7 @@ describe 'PrivateNetworksApi' do
40
40
  # @return [Array<PrivateNetwork>]
41
41
  describe 'private_networks_get test' do
42
42
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
44
  end
45
45
  end
46
46
 
@@ -52,7 +52,7 @@ describe 'PrivateNetworksApi' do
52
52
  # @return [nil]
53
53
  describe 'private_networks_network_id_delete 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 'PrivateNetworksApi' do
64
64
  # @return [PrivateNetwork]
65
65
  describe 'private_networks_network_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
 
@@ -72,24 +72,25 @@ describe 'PrivateNetworksApi' do
72
72
  # Update a Private Network.
73
73
  # Update Private Network Details.
74
74
  # @param private_network_id The private network identifier.
75
+ # @param private_network_modify
75
76
  # @param [Hash] opts the optional parameters
76
- # @option opts [PrivateNetworkModify] :private_network_modify
77
77
  # @return [PrivateNetwork]
78
78
  describe 'private_networks_network_id_put test' do
79
79
  it 'should work' do
80
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
81
  end
82
82
  end
83
83
 
84
84
  # unit tests for private_networks_post
85
85
  # Create a Private Network.
86
86
  # Create a Private Network.
87
+ # @param private_network_create
87
88
  # @param [Hash] opts the optional parameters
88
- # @option opts [PrivateNetworkCreate] :private_network_create
89
+ # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
89
90
  # @return [PrivateNetwork]
90
91
  describe 'private_networks_post test' do
91
92
  it 'should work' do
92
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
94
  end
94
95
  end
95
96
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Networks API
3
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'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
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> and <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
5
5
 
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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -40,7 +40,7 @@ describe 'PublicNetworksApi' do
40
40
  # @return [Array<PublicNetwork>]
41
41
  describe 'public_networks_get test' do
42
42
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
44
  end
45
45
  end
46
46
 
@@ -52,7 +52,7 @@ describe 'PublicNetworksApi' do
52
52
  # @return [nil]
53
53
  describe 'public_networks_network_id_delete 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,20 +64,21 @@ describe 'PublicNetworksApi' do
64
64
  # @return [PublicNetwork]
65
65
  describe 'public_networks_network_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
 
71
71
  # unit tests for public_networks_network_id_ip_blocks_ip_block_id_delete
72
72
  # Removes the IP Block from the Public Network.
73
- # Removes the IP Block from the Public Network. The result of this is that any traffic addressed to any IP within the block will not be routed to this network anymore. Please ensure that no resource members within this network have any IPs assigned from the IP Block being removed.
73
+ # Removes the IP Block from the Public Network.&lt;br&gt; Please ensure that no resource members within this network have any IPs assigned from the IP Block being removed.&lt;br&gt; Defining &#x60;force&#x60; query parameter allows resource assigned IP block to be removed anyway. As a result, traffic addressed to any IP within the block will not be routed to this network anymore.
74
74
  # @param public_network_id The Public Network identifier.
75
75
  # @param ip_block_id The IP Block identifier.
76
76
  # @param [Hash] opts the optional parameters
77
+ # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
77
78
  # @return [String]
78
79
  describe 'public_networks_network_id_ip_blocks_ip_block_id_delete test' do
79
80
  it 'should work' do
80
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
82
  end
82
83
  end
83
84
 
@@ -85,12 +86,12 @@ describe 'PublicNetworksApi' do
85
86
  # Adds an IP block to this public network.
86
87
  # Adds an IP block to this public network.
87
88
  # @param public_network_id The Public Network identifier.
89
+ # @param public_network_ip_block
88
90
  # @param [Hash] opts the optional parameters
89
- # @option opts [PublicNetworkIpBlock] :public_network_ip_block
90
91
  # @return [PublicNetworkIpBlock]
91
92
  describe 'public_networks_network_id_ip_blocks_post test' do
92
93
  it 'should work' do
93
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
94
95
  end
95
96
  end
96
97
 
@@ -98,24 +99,24 @@ describe 'PublicNetworksApi' do
98
99
  # Update Public Network&#39;s Details.
99
100
  # Update Public Network&#39;s Details.
100
101
  # @param public_network_id The Public Network identifier.
102
+ # @param public_network_modify
101
103
  # @param [Hash] opts the optional parameters
102
- # @option opts [PublicNetworkModify] :public_network_modify
103
104
  # @return [PublicNetwork]
104
105
  describe 'public_networks_network_id_patch test' do
105
106
  it 'should work' do
106
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
107
108
  end
108
109
  end
109
110
 
110
111
  # unit tests for public_networks_post
111
112
  # Create a public network.
112
113
  # Create a public network.
114
+ # @param public_network_create
113
115
  # @param [Hash] opts the optional parameters
114
- # @option opts [PublicNetworkCreate] :public_network_create
115
116
  # @return [PublicNetwork]
116
117
  describe 'public_networks_post test' do
117
118
  it 'should work' do
118
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
119
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
119
120
  end
120
121
  end
121
122
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Networks API
3
3
 
4
- #Use the Networks API to create, list, edit, and delete private networks to best fit your business needs. Private networks allow your servers to communicate without connecting to the public internet, avoiding unnecessary egress data charges.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
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> and <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
5
5
 
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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,18 +22,20 @@ describe NetworkApi::Error do
22
22
 
23
23
  describe 'test an instance of Error' do
24
24
  it 'should create an instance of Error' do
25
- expect(instance).to be_instance_of(NetworkApi::Error)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(NetworkApi::Error)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "message"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "validation_errors"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
@@ -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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,24 +22,26 @@ describe NetworkApi::NetworkMembership do
22
22
 
23
23
  describe 'test an instance of NetworkMembership' do
24
24
  it 'should create an instance of NetworkMembership' do
25
- expect(instance).to be_instance_of(NetworkApi::NetworkMembership)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(NetworkApi::NetworkMembership)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "resource_id"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "resource_type"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "ips"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
45
  end
44
46
  end
45
47
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Networks API
3
3
 
4
- #Use the Networks API to create, list, edit, and delete private networks to best fit your business needs. Private networks allow your servers to communicate without connecting to the public internet, avoiding unnecessary egress data charges.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
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> and <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
5
5
 
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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,36 +22,44 @@ describe NetworkApi::PrivateNetworkCreate do
22
22
 
23
23
  describe 'test an instance of PrivateNetworkCreate' do
24
24
  it 'should create an instance of PrivateNetworkCreate' do
25
- expect(instance).to be_instance_of(NetworkApi::PrivateNetworkCreate)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(NetworkApi::PrivateNetworkCreate)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "name"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "description"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "location"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
45
  end
44
46
  end
45
47
 
46
48
  describe 'test attribute "location_default"' do
47
49
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "vlan_id"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
57
  end
50
58
  end
51
59
 
52
60
  describe 'test attribute "cidr"' do
53
61
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
63
  end
56
64
  end
57
65
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Networks API
3
3
 
4
- #Use the Networks API to create, list, edit, and delete private networks to best fit your business needs. Private networks allow your servers to communicate without connecting to the public internet, avoiding unnecessary egress data charges.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
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> and <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
5
5
 
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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,24 +22,26 @@ describe NetworkApi::PrivateNetworkModify do
22
22
 
23
23
  describe 'test an instance of PrivateNetworkModify' do
24
24
  it 'should create an instance of PrivateNetworkModify' do
25
- expect(instance).to be_instance_of(NetworkApi::PrivateNetworkModify)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(NetworkApi::PrivateNetworkModify)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "name"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "description"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "location_default"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
45
  end
44
46
  end
45
47
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Networks API
3
3
 
4
- #Use the Networks API to create, list, edit, and delete private networks to best fit your business needs. Private networks allow your servers to communicate without connecting to the public internet, avoiding unnecessary egress data charges.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
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> and <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-15' target='_blank'>public networks</a>. </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/networks/v1/)</b>
5
5
 
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: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,18 +22,20 @@ describe NetworkApi::PrivateNetworkServer do
22
22
 
23
23
  describe 'test an instance of PrivateNetworkServer' do
24
24
  it 'should create an instance of PrivateNetworkServer' do
25
- expect(instance).to be_instance_of(NetworkApi::PrivateNetworkServer)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(NetworkApi::PrivateNetworkServer)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "id"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "ips"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41