pnap_ip_api 2.1.0 → 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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/docs/IpBlock.md +5 -1
- data/lib/pnap_ip_api/models/ip_block.rb +22 -2
- data/spec/models/ip_block_spec.rb +12 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5c4a7c88720e4f687fde457d617a48d05c4350a9d5f6fc2b87ed780837b2614
|
4
|
+
data.tar.gz: 1e17b835fab5ecbbc9c5a8751186cd6b36213f3ec51557a074a5914202091cff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11d3bf37c220f2ebe1b90558ed789463742ac32d82c6821079cc8e93ba657380f901eabd646b1acbfd4cf2e2b261ba629e2606f981eab9c5dde919245d1c3b03
|
7
|
+
data.tar.gz: f1815ddc2d5146733fd87a7f75963391aae017dd4e1c816d38d630a1a112b888441e03556da2c9fc99ec746ce9be809d9a1fbec43a74510b55560dc98dee5c98
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.0
|
data/docs/IpBlock.md
CHANGED
@@ -9,11 +9,13 @@
|
|
9
9
|
| **cidr_block_size** | **String** | CIDR IP Block Size. Currently this field should be set to either `/31`, `/30`, `/29`, `/28`, `/27`, `/26`, `/25`, `/24`, `/23` or `/22`. | [optional] |
|
10
10
|
| **cidr** | **String** | The IP Block in CIDR notation. | [optional] |
|
11
11
|
| **ip_version** | **String** | The IP Version of the block. | [optional] |
|
12
|
-
| **status** | **String** | The status of the IP Block. Can have one of the following values: `creating`
|
12
|
+
| **status** | **String** | The status of the IP Block. Can have one of the following values: `creating`, `subnetted`, `assigning` , `error assigning` , `assigned` , `unassigning` , `error unassigning` or `unassigned`. | [optional] |
|
13
|
+
| **parent_ip_block_allocation_id** | **String** | IP Block parent identifier. If present, this block is subnetted from the parent IP Block. | [optional] |
|
13
14
|
| **assigned_resource_id** | **String** | ID of the resource assigned to the IP Block. | [optional] |
|
14
15
|
| **assigned_resource_type** | **String** | Type of the resource assigned to the IP Block. | [optional] |
|
15
16
|
| **description** | **String** | The description of the IP Block. | [optional] |
|
16
17
|
| **tags** | [**Array<TagAssignment>**](TagAssignment.md) | The tags assigned if any. | [optional] |
|
18
|
+
| **is_system_managed** | **Boolean** | True if the IP block is a `system managed` block. | [optional] |
|
17
19
|
| **is_bring_your_own** | **Boolean** | True if the IP block is a `bring your own` block. | [optional] |
|
18
20
|
| **created_on** | **Time** | Date and time when the IP block was created. | [optional] |
|
19
21
|
|
@@ -29,10 +31,12 @@ instance = IpApi::IpBlock.new(
|
|
29
31
|
cidr: 1.1.1.0/31,
|
30
32
|
ip_version: V4,
|
31
33
|
status: unassigned,
|
34
|
+
parent_ip_block_allocation_id: 5edf1c9b4212930ac543d999,
|
32
35
|
assigned_resource_id: 6047127fed34ecc3ba8402d2,
|
33
36
|
assigned_resource_type: server,
|
34
37
|
description: IP Block #1 used for publicly accessing server #1.,
|
35
38
|
tags: [{"name":"stage","value":"beta"},{"name":"group","value":"discounted"}],
|
39
|
+
is_system_managed: false,
|
36
40
|
is_bring_your_own: false,
|
37
41
|
created_on: 2021-03-13T20:24:32.491Z
|
38
42
|
)
|
@@ -31,9 +31,12 @@ module IpApi
|
|
31
31
|
# The IP Version of the block.
|
32
32
|
attr_accessor :ip_version
|
33
33
|
|
34
|
-
# The status of the IP Block. Can have one of the following values: `creating`
|
34
|
+
# The status of the IP Block. Can have one of the following values: `creating`, `subnetted`, `assigning` , `error assigning` , `assigned` , `unassigning` , `error unassigning` or `unassigned`.
|
35
35
|
attr_accessor :status
|
36
36
|
|
37
|
+
# IP Block parent identifier. If present, this block is subnetted from the parent IP Block.
|
38
|
+
attr_accessor :parent_ip_block_allocation_id
|
39
|
+
|
37
40
|
# ID of the resource assigned to the IP Block.
|
38
41
|
attr_accessor :assigned_resource_id
|
39
42
|
|
@@ -46,6 +49,9 @@ module IpApi
|
|
46
49
|
# The tags assigned if any.
|
47
50
|
attr_accessor :tags
|
48
51
|
|
52
|
+
# True if the IP block is a `system managed` block.
|
53
|
+
attr_accessor :is_system_managed
|
54
|
+
|
49
55
|
# True if the IP block is a `bring your own` block.
|
50
56
|
attr_accessor :is_bring_your_own
|
51
57
|
|
@@ -61,10 +67,12 @@ module IpApi
|
|
61
67
|
:'cidr' => :'cidr',
|
62
68
|
:'ip_version' => :'ipVersion',
|
63
69
|
:'status' => :'status',
|
70
|
+
:'parent_ip_block_allocation_id' => :'parentIpBlockAllocationId',
|
64
71
|
:'assigned_resource_id' => :'assignedResourceId',
|
65
72
|
:'assigned_resource_type' => :'assignedResourceType',
|
66
73
|
:'description' => :'description',
|
67
74
|
:'tags' => :'tags',
|
75
|
+
:'is_system_managed' => :'isSystemManaged',
|
68
76
|
:'is_bring_your_own' => :'isBringYourOwn',
|
69
77
|
:'created_on' => :'createdOn'
|
70
78
|
}
|
@@ -84,10 +92,12 @@ module IpApi
|
|
84
92
|
:'cidr' => :'String',
|
85
93
|
:'ip_version' => :'String',
|
86
94
|
:'status' => :'String',
|
95
|
+
:'parent_ip_block_allocation_id' => :'String',
|
87
96
|
:'assigned_resource_id' => :'String',
|
88
97
|
:'assigned_resource_type' => :'String',
|
89
98
|
:'description' => :'String',
|
90
99
|
:'tags' => :'Array<TagAssignment>',
|
100
|
+
:'is_system_managed' => :'Boolean',
|
91
101
|
:'is_bring_your_own' => :'Boolean',
|
92
102
|
:'created_on' => :'Time'
|
93
103
|
}
|
@@ -138,6 +148,10 @@ module IpApi
|
|
138
148
|
self.status = attributes[:'status']
|
139
149
|
end
|
140
150
|
|
151
|
+
if attributes.key?(:'parent_ip_block_allocation_id')
|
152
|
+
self.parent_ip_block_allocation_id = attributes[:'parent_ip_block_allocation_id']
|
153
|
+
end
|
154
|
+
|
141
155
|
if attributes.key?(:'assigned_resource_id')
|
142
156
|
self.assigned_resource_id = attributes[:'assigned_resource_id']
|
143
157
|
end
|
@@ -156,6 +170,10 @@ module IpApi
|
|
156
170
|
end
|
157
171
|
end
|
158
172
|
|
173
|
+
if attributes.key?(:'is_system_managed')
|
174
|
+
self.is_system_managed = attributes[:'is_system_managed']
|
175
|
+
end
|
176
|
+
|
159
177
|
if attributes.key?(:'is_bring_your_own')
|
160
178
|
self.is_bring_your_own = attributes[:'is_bring_your_own']
|
161
179
|
end
|
@@ -210,10 +228,12 @@ module IpApi
|
|
210
228
|
cidr == o.cidr &&
|
211
229
|
ip_version == o.ip_version &&
|
212
230
|
status == o.status &&
|
231
|
+
parent_ip_block_allocation_id == o.parent_ip_block_allocation_id &&
|
213
232
|
assigned_resource_id == o.assigned_resource_id &&
|
214
233
|
assigned_resource_type == o.assigned_resource_type &&
|
215
234
|
description == o.description &&
|
216
235
|
tags == o.tags &&
|
236
|
+
is_system_managed == o.is_system_managed &&
|
217
237
|
is_bring_your_own == o.is_bring_your_own &&
|
218
238
|
created_on == o.created_on
|
219
239
|
end
|
@@ -227,7 +247,7 @@ module IpApi
|
|
227
247
|
# Calculates hash code according to all attributes.
|
228
248
|
# @return [Integer] Hash code
|
229
249
|
def hash
|
230
|
-
[id, location, cidr_block_size, cidr, ip_version, status, assigned_resource_id, assigned_resource_type, description, tags, is_bring_your_own, created_on].hash
|
250
|
+
[id, location, cidr_block_size, cidr, ip_version, status, parent_ip_block_allocation_id, assigned_resource_id, assigned_resource_type, description, tags, is_system_managed, is_bring_your_own, created_on].hash
|
231
251
|
end
|
232
252
|
|
233
253
|
# Builds the object from hash
|
@@ -63,6 +63,12 @@ describe IpApi::IpBlock do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
describe 'test attribute "parent_ip_block_allocation_id"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
66
72
|
describe 'test attribute "assigned_resource_id"' do
|
67
73
|
it 'should work' do
|
68
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -87,6 +93,12 @@ describe IpApi::IpBlock do
|
|
87
93
|
end
|
88
94
|
end
|
89
95
|
|
96
|
+
describe 'test attribute "is_system_managed"' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
90
102
|
describe 'test attribute "is_bring_your_own"' do
|
91
103
|
it 'should work' do
|
92
104
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnap_ip_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -119,10 +119,10 @@ summary: IP Addresses API Ruby Gem
|
|
119
119
|
test_files:
|
120
120
|
- spec/api/ip_blocks_api_spec.rb
|
121
121
|
- spec/models/error_spec.rb
|
122
|
-
- spec/models/tag_assignment_request_spec.rb
|
123
|
-
- spec/models/ip_block_create_spec.rb
|
124
|
-
- spec/models/ip_block_spec.rb
|
125
122
|
- spec/models/tag_assignment_spec.rb
|
126
123
|
- spec/models/delete_ip_block_result_spec.rb
|
124
|
+
- spec/models/tag_assignment_request_spec.rb
|
127
125
|
- spec/models/ip_block_patch_spec.rb
|
126
|
+
- spec/models/ip_block_spec.rb
|
127
|
+
- spec/models/ip_block_create_spec.rb
|
128
128
|
- spec/spec_helper.rb
|