pnap_network_api 1.1.1 → 1.3.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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/docs/PrivateNetwork.md +1 -1
- data/docs/PrivateNetworkCreate.md +3 -1
- data/docs/PrivateNetworksApi.md +3 -1
- data/docs/PublicNetworkCreate.md +2 -0
- data/docs/PublicNetworksApi.md +9 -5
- data/lib/pnap_network_api/api/private_networks_api.rb +3 -0
- data/lib/pnap_network_api/api/public_networks_api.rb +5 -2
- data/lib/pnap_network_api/models/private_network.rb +0 -5
- data/lib/pnap_network_api/models/private_network_create.rb +34 -5
- data/lib/pnap_network_api/models/public_network_create.rb +35 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf9a797a07f6f245ed99ec1c1a482905d245b2ffed74838c70ef87d99c0e632f
|
4
|
+
data.tar.gz: b284838b33280acb5c66fd541cb81e9aa5b542889da8744b60106a6fe2c78a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0c5019d81b10ec07d674c4ae612139fac5ea94b049a367be641abda8f59454d10394fac2be81fc1d28585756c1703d3b8747d1eab63e992d3829b0e50472f5c
|
7
|
+
data.tar.gz: a8256f45c8a6ecfc1f08f5bdae596d85f881c06b7c4d9d80c9e5c275a4cb97e55b48b82d1e041fb03943335eb6c69b8db06cdfc4e5121534d9d97a46183003d1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/docs/PrivateNetwork.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
| **type** | **String** | The type of the private network. | |
|
12
12
|
| **location** | **String** | The location of this private network. | |
|
13
13
|
| **location_default** | **Boolean** | Identifies network as the default private network for the specified location. | |
|
14
|
-
| **cidr** | **String** | IP range associated with this private network in CIDR notation. |
|
14
|
+
| **cidr** | **String** | IP range associated with this private network in CIDR notation. | [optional] |
|
15
15
|
| **servers** | [**Array<PrivateNetworkServer>**](PrivateNetworkServer.md) | | |
|
16
16
|
| **memberships** | [**Array<NetworkMembership>**](NetworkMembership.md) | A list of resources that are members of this private network. | |
|
17
17
|
| **status** | **String** | The status of the private network. Can have one of the following values: `BUSY` or `READY`. | |
|
@@ -8,7 +8,8 @@
|
|
8
8
|
| **description** | **String** | The description of this private network. | [optional] |
|
9
9
|
| **location** | **String** | The location of this private network. Supported values are `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` and `AUS`. | |
|
10
10
|
| **location_default** | **Boolean** | Identifies network as the default private network for the specified location. | [optional][default to false] |
|
11
|
-
| **
|
11
|
+
| **vlan_id** | **Integer** | The VLAN that will be assigned to this network. | [optional] |
|
12
|
+
| **cidr** | **String** | IP range associated with this private network in CIDR notation.<br> Setting the `force` query parameter to `true` allows you to skip assigning a specific IP range to network. | [optional] |
|
12
13
|
|
13
14
|
## Example
|
14
15
|
|
@@ -20,6 +21,7 @@ instance = NetworkApi::PrivateNetworkCreate.new(
|
|
20
21
|
description: Further details on the network,
|
21
22
|
location: PHX,
|
22
23
|
location_default: true,
|
24
|
+
vlan_id: 10,
|
23
25
|
cidr: 10.0.0.0/24
|
24
26
|
)
|
25
27
|
```
|
data/docs/PrivateNetworksApi.md
CHANGED
@@ -313,7 +313,8 @@ end
|
|
313
313
|
|
314
314
|
api_instance = NetworkApi::PrivateNetworksApi.new
|
315
315
|
opts = {
|
316
|
-
|
316
|
+
force: true, # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
317
|
+
private_network_create: NetworkApi::PrivateNetworkCreate.new({name: 'Sample Network', location: 'PHX'}) # PrivateNetworkCreate |
|
317
318
|
}
|
318
319
|
|
319
320
|
begin
|
@@ -347,6 +348,7 @@ end
|
|
347
348
|
|
348
349
|
| Name | Type | Description | Notes |
|
349
350
|
| ---- | ---- | ----------- | ----- |
|
351
|
+
| **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
|
350
352
|
| **private_network_create** | [**PrivateNetworkCreate**](PrivateNetworkCreate.md) | | [optional] |
|
351
353
|
|
352
354
|
### Return type
|
data/docs/PublicNetworkCreate.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
| **name** | **String** | The friendly name of this public network. This name should be unique. | |
|
8
8
|
| **description** | **String** | The description of this public network. | [optional] |
|
9
9
|
| **location** | **String** | The location of this public network. Supported values are `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` and `AUS`. | |
|
10
|
+
| **vlan_id** | **Integer** | The VLAN that will be assigned to this network. | [optional] |
|
10
11
|
| **ip_blocks** | [**Array<PublicNetworkIpBlock>**](PublicNetworkIpBlock.md) | A list of IP Blocks that will be associated with this public network. | [optional] |
|
11
12
|
|
12
13
|
## Example
|
@@ -18,6 +19,7 @@ instance = NetworkApi::PublicNetworkCreate.new(
|
|
18
19
|
name: Sample Network,
|
19
20
|
description: Further details on the network.,
|
20
21
|
location: PHX,
|
22
|
+
vlan_id: 10,
|
21
23
|
ip_blocks: null
|
22
24
|
)
|
23
25
|
```
|
data/docs/PublicNetworksApi.md
CHANGED
@@ -223,11 +223,11 @@ end
|
|
223
223
|
|
224
224
|
## public_networks_network_id_ip_blocks_ip_block_id_delete
|
225
225
|
|
226
|
-
> String public_networks_network_id_ip_blocks_ip_block_id_delete(public_network_id, ip_block_id)
|
226
|
+
> String public_networks_network_id_ip_blocks_ip_block_id_delete(public_network_id, ip_block_id, opts)
|
227
227
|
|
228
228
|
Removes the IP Block from the Public Network.
|
229
229
|
|
230
|
-
Removes the IP Block from the Public Network
|
230
|
+
Removes the IP Block from the Public Network.<br> Please ensure that no resource members within this network have any IPs assigned from the IP Block being removed.<br> Defining `force` 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.
|
231
231
|
|
232
232
|
### Examples
|
233
233
|
|
@@ -243,10 +243,13 @@ end
|
|
243
243
|
api_instance = NetworkApi::PublicNetworksApi.new
|
244
244
|
public_network_id = '603f3b2cfcaf050643b89a4b' # String | The Public Network identifier.
|
245
245
|
ip_block_id = '6047127fed34ecc3ba8402d2' # String | The IP Block identifier.
|
246
|
+
opts = {
|
247
|
+
force: true # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
|
248
|
+
}
|
246
249
|
|
247
250
|
begin
|
248
251
|
# Removes the IP Block from the Public Network.
|
249
|
-
result = api_instance.public_networks_network_id_ip_blocks_ip_block_id_delete(public_network_id, ip_block_id)
|
252
|
+
result = api_instance.public_networks_network_id_ip_blocks_ip_block_id_delete(public_network_id, ip_block_id, opts)
|
250
253
|
p result
|
251
254
|
rescue NetworkApi::ApiError => e
|
252
255
|
puts "Error when calling PublicNetworksApi->public_networks_network_id_ip_blocks_ip_block_id_delete: #{e}"
|
@@ -257,12 +260,12 @@ end
|
|
257
260
|
|
258
261
|
This returns an Array which contains the response data, status code and headers.
|
259
262
|
|
260
|
-
> <Array(String, Integer, Hash)> public_networks_network_id_ip_blocks_ip_block_id_delete_with_http_info(public_network_id, ip_block_id)
|
263
|
+
> <Array(String, Integer, Hash)> public_networks_network_id_ip_blocks_ip_block_id_delete_with_http_info(public_network_id, ip_block_id, opts)
|
261
264
|
|
262
265
|
```ruby
|
263
266
|
begin
|
264
267
|
# Removes the IP Block from the Public Network.
|
265
|
-
data, status_code, headers = api_instance.public_networks_network_id_ip_blocks_ip_block_id_delete_with_http_info(public_network_id, ip_block_id)
|
268
|
+
data, status_code, headers = api_instance.public_networks_network_id_ip_blocks_ip_block_id_delete_with_http_info(public_network_id, ip_block_id, opts)
|
266
269
|
p status_code # => 2xx
|
267
270
|
p headers # => { ... }
|
268
271
|
p data # => String
|
@@ -277,6 +280,7 @@ end
|
|
277
280
|
| ---- | ---- | ----------- | ----- |
|
278
281
|
| **public_network_id** | **String** | The Public Network identifier. | |
|
279
282
|
| **ip_block_id** | **String** | The IP Block identifier. | |
|
283
|
+
| **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
|
280
284
|
|
281
285
|
### Return type
|
282
286
|
|
@@ -278,6 +278,7 @@ module NetworkApi
|
|
278
278
|
# Create a Private Network.
|
279
279
|
# Create a Private Network.
|
280
280
|
# @param [Hash] opts the optional parameters
|
281
|
+
# @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. (default to false)
|
281
282
|
# @option opts [PrivateNetworkCreate] :private_network_create
|
282
283
|
# @return [PrivateNetwork]
|
283
284
|
def private_networks_post(opts = {})
|
@@ -288,6 +289,7 @@ module NetworkApi
|
|
288
289
|
# Create a Private Network.
|
289
290
|
# Create a Private Network.
|
290
291
|
# @param [Hash] opts the optional parameters
|
292
|
+
# @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. (default to false)
|
291
293
|
# @option opts [PrivateNetworkCreate] :private_network_create
|
292
294
|
# @return [Array<(PrivateNetwork, Integer, Hash)>] PrivateNetwork data, response status code and response headers
|
293
295
|
def private_networks_post_with_http_info(opts = {})
|
@@ -299,6 +301,7 @@ module NetworkApi
|
|
299
301
|
|
300
302
|
# query parameters
|
301
303
|
query_params = opts[:query_params] || {}
|
304
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
302
305
|
|
303
306
|
# header parameters
|
304
307
|
header_params = opts[:header_params] || {}
|
@@ -206,10 +206,11 @@ module NetworkApi
|
|
206
206
|
end
|
207
207
|
|
208
208
|
# Removes the IP Block from the Public Network.
|
209
|
-
# Removes the IP Block from the Public Network
|
209
|
+
# Removes the IP Block from the Public Network.<br> Please ensure that no resource members within this network have any IPs assigned from the IP Block being removed.<br> Defining `force` 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.
|
210
210
|
# @param public_network_id [String] The Public Network identifier.
|
211
211
|
# @param ip_block_id [String] The IP Block identifier.
|
212
212
|
# @param [Hash] opts the optional parameters
|
213
|
+
# @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. (default to false)
|
213
214
|
# @return [String]
|
214
215
|
def public_networks_network_id_ip_blocks_ip_block_id_delete(public_network_id, ip_block_id, opts = {})
|
215
216
|
data, _status_code, _headers = public_networks_network_id_ip_blocks_ip_block_id_delete_with_http_info(public_network_id, ip_block_id, opts)
|
@@ -217,10 +218,11 @@ module NetworkApi
|
|
217
218
|
end
|
218
219
|
|
219
220
|
# Removes the IP Block from the Public Network.
|
220
|
-
# Removes the IP Block from the Public Network
|
221
|
+
# Removes the IP Block from the Public Network.<br> Please ensure that no resource members within this network have any IPs assigned from the IP Block being removed.<br> Defining `force` 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.
|
221
222
|
# @param public_network_id [String] The Public Network identifier.
|
222
223
|
# @param ip_block_id [String] The IP Block identifier.
|
223
224
|
# @param [Hash] opts the optional parameters
|
225
|
+
# @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. (default to false)
|
224
226
|
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
225
227
|
def public_networks_network_id_ip_blocks_ip_block_id_delete_with_http_info(public_network_id, ip_block_id, opts = {})
|
226
228
|
if @api_client.config.debugging
|
@@ -239,6 +241,7 @@ module NetworkApi
|
|
239
241
|
|
240
242
|
# query parameters
|
241
243
|
query_params = opts[:query_params] || {}
|
244
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
242
245
|
|
243
246
|
# header parameters
|
244
247
|
header_params = opts[:header_params] || {}
|
@@ -206,10 +206,6 @@ module NetworkApi
|
|
206
206
|
invalid_properties.push('invalid value for "location_default", location_default cannot be nil.')
|
207
207
|
end
|
208
208
|
|
209
|
-
if @cidr.nil?
|
210
|
-
invalid_properties.push('invalid value for "cidr", cidr cannot be nil.')
|
211
|
-
end
|
212
|
-
|
213
209
|
if @servers.nil?
|
214
210
|
invalid_properties.push('invalid value for "servers", servers cannot be nil.')
|
215
211
|
end
|
@@ -241,7 +237,6 @@ module NetworkApi
|
|
241
237
|
return false if @type.nil?
|
242
238
|
return false if @location.nil?
|
243
239
|
return false if @location_default.nil?
|
244
|
-
return false if @cidr.nil?
|
245
240
|
return false if @servers.nil?
|
246
241
|
return false if @memberships.nil?
|
247
242
|
return false if @status.nil?
|
@@ -28,7 +28,10 @@ module NetworkApi
|
|
28
28
|
# Identifies network as the default private network for the specified location.
|
29
29
|
attr_accessor :location_default
|
30
30
|
|
31
|
-
#
|
31
|
+
# The VLAN that will be assigned to this network.
|
32
|
+
attr_accessor :vlan_id
|
33
|
+
|
34
|
+
# IP range associated with this private network in CIDR notation.<br> Setting the `force` query parameter to `true` allows you to skip assigning a specific IP range to network.
|
32
35
|
attr_accessor :cidr
|
33
36
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -38,6 +41,7 @@ module NetworkApi
|
|
38
41
|
:'description' => :'description',
|
39
42
|
:'location' => :'location',
|
40
43
|
:'location_default' => :'locationDefault',
|
44
|
+
:'vlan_id' => :'vlanId',
|
41
45
|
:'cidr' => :'cidr'
|
42
46
|
}
|
43
47
|
end
|
@@ -54,6 +58,7 @@ module NetworkApi
|
|
54
58
|
:'description' => :'String',
|
55
59
|
:'location' => :'String',
|
56
60
|
:'location_default' => :'Boolean',
|
61
|
+
:'vlan_id' => :'Integer',
|
57
62
|
:'cidr' => :'String'
|
58
63
|
}
|
59
64
|
end
|
@@ -97,6 +102,10 @@ module NetworkApi
|
|
97
102
|
self.location_default = false
|
98
103
|
end
|
99
104
|
|
105
|
+
if attributes.key?(:'vlan_id')
|
106
|
+
self.vlan_id = attributes[:'vlan_id']
|
107
|
+
end
|
108
|
+
|
100
109
|
if attributes.key?(:'cidr')
|
101
110
|
self.cidr = attributes[:'cidr']
|
102
111
|
end
|
@@ -126,8 +135,12 @@ module NetworkApi
|
|
126
135
|
invalid_properties.push('invalid value for "location", location cannot be nil.')
|
127
136
|
end
|
128
137
|
|
129
|
-
if
|
130
|
-
invalid_properties.push('invalid value for "
|
138
|
+
if !@vlan_id.nil? && @vlan_id > 4094
|
139
|
+
invalid_properties.push('invalid value for "vlan_id", must be smaller than or equal to 4094.')
|
140
|
+
end
|
141
|
+
|
142
|
+
if !@vlan_id.nil? && @vlan_id < 2
|
143
|
+
invalid_properties.push('invalid value for "vlan_id", must be greater than or equal to 2.')
|
131
144
|
end
|
132
145
|
|
133
146
|
invalid_properties
|
@@ -141,7 +154,8 @@ module NetworkApi
|
|
141
154
|
return false if @name.to_s.length < 1
|
142
155
|
return false if !@description.nil? && @description.to_s.length > 250
|
143
156
|
return false if @location.nil?
|
144
|
-
return false if
|
157
|
+
return false if !@vlan_id.nil? && @vlan_id > 4094
|
158
|
+
return false if !@vlan_id.nil? && @vlan_id < 2
|
145
159
|
true
|
146
160
|
end
|
147
161
|
|
@@ -173,6 +187,20 @@ module NetworkApi
|
|
173
187
|
@description = description
|
174
188
|
end
|
175
189
|
|
190
|
+
# Custom attribute writer method with validation
|
191
|
+
# @param [Object] vlan_id Value to be assigned
|
192
|
+
def vlan_id=(vlan_id)
|
193
|
+
if !vlan_id.nil? && vlan_id > 4094
|
194
|
+
fail ArgumentError, 'invalid value for "vlan_id", must be smaller than or equal to 4094.'
|
195
|
+
end
|
196
|
+
|
197
|
+
if !vlan_id.nil? && vlan_id < 2
|
198
|
+
fail ArgumentError, 'invalid value for "vlan_id", must be greater than or equal to 2.'
|
199
|
+
end
|
200
|
+
|
201
|
+
@vlan_id = vlan_id
|
202
|
+
end
|
203
|
+
|
176
204
|
# Checks equality by comparing each attribute.
|
177
205
|
# @param [Object] Object to be compared
|
178
206
|
def ==(o)
|
@@ -182,6 +210,7 @@ module NetworkApi
|
|
182
210
|
description == o.description &&
|
183
211
|
location == o.location &&
|
184
212
|
location_default == o.location_default &&
|
213
|
+
vlan_id == o.vlan_id &&
|
185
214
|
cidr == o.cidr
|
186
215
|
end
|
187
216
|
|
@@ -194,7 +223,7 @@ module NetworkApi
|
|
194
223
|
# Calculates hash code according to all attributes.
|
195
224
|
# @return [Integer] Hash code
|
196
225
|
def hash
|
197
|
-
[name, description, location, location_default, cidr].hash
|
226
|
+
[name, description, location, location_default, vlan_id, cidr].hash
|
198
227
|
end
|
199
228
|
|
200
229
|
# Builds the object from hash
|
@@ -25,6 +25,9 @@ module NetworkApi
|
|
25
25
|
# The location of this public network. Supported values are `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` and `AUS`.
|
26
26
|
attr_accessor :location
|
27
27
|
|
28
|
+
# The VLAN that will be assigned to this network.
|
29
|
+
attr_accessor :vlan_id
|
30
|
+
|
28
31
|
# A list of IP Blocks that will be associated with this public network.
|
29
32
|
attr_accessor :ip_blocks
|
30
33
|
|
@@ -34,6 +37,7 @@ module NetworkApi
|
|
34
37
|
:'name' => :'name',
|
35
38
|
:'description' => :'description',
|
36
39
|
:'location' => :'location',
|
40
|
+
:'vlan_id' => :'vlanId',
|
37
41
|
:'ip_blocks' => :'ipBlocks'
|
38
42
|
}
|
39
43
|
end
|
@@ -49,6 +53,7 @@ module NetworkApi
|
|
49
53
|
:'name' => :'String',
|
50
54
|
:'description' => :'String',
|
51
55
|
:'location' => :'String',
|
56
|
+
:'vlan_id' => :'Integer',
|
52
57
|
:'ip_blocks' => :'Array<PublicNetworkIpBlock>'
|
53
58
|
}
|
54
59
|
end
|
@@ -86,6 +91,10 @@ module NetworkApi
|
|
86
91
|
self.location = attributes[:'location']
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.key?(:'vlan_id')
|
95
|
+
self.vlan_id = attributes[:'vlan_id']
|
96
|
+
end
|
97
|
+
|
89
98
|
if attributes.key?(:'ip_blocks')
|
90
99
|
if (value = attributes[:'ip_blocks']).is_a?(Array)
|
91
100
|
self.ip_blocks = value
|
@@ -117,6 +126,14 @@ module NetworkApi
|
|
117
126
|
invalid_properties.push('invalid value for "location", location cannot be nil.')
|
118
127
|
end
|
119
128
|
|
129
|
+
if !@vlan_id.nil? && @vlan_id > 4094
|
130
|
+
invalid_properties.push('invalid value for "vlan_id", must be smaller than or equal to 4094.')
|
131
|
+
end
|
132
|
+
|
133
|
+
if !@vlan_id.nil? && @vlan_id < 2
|
134
|
+
invalid_properties.push('invalid value for "vlan_id", must be greater than or equal to 2.')
|
135
|
+
end
|
136
|
+
|
120
137
|
if !@ip_blocks.nil? && @ip_blocks.length > 10
|
121
138
|
invalid_properties.push('invalid value for "ip_blocks", number of items must be less than or equal to 10.')
|
122
139
|
end
|
@@ -132,6 +149,8 @@ module NetworkApi
|
|
132
149
|
return false if @name.to_s.length < 1
|
133
150
|
return false if !@description.nil? && @description.to_s.length > 250
|
134
151
|
return false if @location.nil?
|
152
|
+
return false if !@vlan_id.nil? && @vlan_id > 4094
|
153
|
+
return false if !@vlan_id.nil? && @vlan_id < 2
|
135
154
|
return false if !@ip_blocks.nil? && @ip_blocks.length > 10
|
136
155
|
true
|
137
156
|
end
|
@@ -164,6 +183,20 @@ module NetworkApi
|
|
164
183
|
@description = description
|
165
184
|
end
|
166
185
|
|
186
|
+
# Custom attribute writer method with validation
|
187
|
+
# @param [Object] vlan_id Value to be assigned
|
188
|
+
def vlan_id=(vlan_id)
|
189
|
+
if !vlan_id.nil? && vlan_id > 4094
|
190
|
+
fail ArgumentError, 'invalid value for "vlan_id", must be smaller than or equal to 4094.'
|
191
|
+
end
|
192
|
+
|
193
|
+
if !vlan_id.nil? && vlan_id < 2
|
194
|
+
fail ArgumentError, 'invalid value for "vlan_id", must be greater than or equal to 2.'
|
195
|
+
end
|
196
|
+
|
197
|
+
@vlan_id = vlan_id
|
198
|
+
end
|
199
|
+
|
167
200
|
# Custom attribute writer method with validation
|
168
201
|
# @param [Object] ip_blocks Value to be assigned
|
169
202
|
def ip_blocks=(ip_blocks)
|
@@ -182,6 +215,7 @@ module NetworkApi
|
|
182
215
|
name == o.name &&
|
183
216
|
description == o.description &&
|
184
217
|
location == o.location &&
|
218
|
+
vlan_id == o.vlan_id &&
|
185
219
|
ip_blocks == o.ip_blocks
|
186
220
|
end
|
187
221
|
|
@@ -194,7 +228,7 @@ module NetworkApi
|
|
194
228
|
# Calculates hash code according to all attributes.
|
195
229
|
# @return [Integer] Hash code
|
196
230
|
def hash
|
197
|
-
[name, description, location, ip_blocks].hash
|
231
|
+
[name, description, location, vlan_id, ip_blocks].hash
|
198
232
|
end
|
199
233
|
|
200
234
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnap_network_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -129,24 +129,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
|
-
rubygems_version: 3.
|
132
|
+
rubygems_version: 3.3.5
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Networks API Ruby Gem
|
136
136
|
test_files:
|
137
|
-
- spec/api/public_networks_api_spec.rb
|
138
137
|
- spec/api/private_networks_api_spec.rb
|
138
|
+
- spec/api/public_networks_api_spec.rb
|
139
139
|
- spec/api_client_spec.rb
|
140
140
|
- spec/configuration_spec.rb
|
141
|
-
- spec/models/public_network_modify_spec.rb
|
142
|
-
- spec/models/private_network_spec.rb
|
143
|
-
- spec/models/private_network_modify_spec.rb
|
144
|
-
- spec/models/public_network_ip_block_spec.rb
|
145
|
-
- spec/models/error_spec.rb
|
146
|
-
- spec/models/network_membership_spec.rb
|
147
141
|
- spec/models/public_network_spec.rb
|
148
|
-
- spec/models/
|
142
|
+
- spec/models/error_spec.rb
|
149
143
|
- spec/models/private_network_server_spec.rb
|
150
|
-
- spec/models/
|
144
|
+
- spec/models/public_network_ip_block_spec.rb
|
151
145
|
- spec/models/public_network_membership_spec.rb
|
146
|
+
- spec/models/private_network_create_spec.rb
|
147
|
+
- spec/models/private_network_modify_spec.rb
|
148
|
+
- spec/models/private_network_spec.rb
|
149
|
+
- spec/models/network_membership_spec.rb
|
150
|
+
- spec/models/public_network_create_spec.rb
|
151
|
+
- spec/models/public_network_modify_spec.rb
|
152
152
|
- spec/spec_helper.rb
|