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.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/VERSION +1 -1
- data/docs/PrivateNetwork.md +1 -1
- data/docs/PrivateNetworksApi.md +13 -15
- data/docs/PublicNetworksApi.md +18 -24
- data/lib/pnap_network_api/api/private_networks_api.rb +21 -13
- data/lib/pnap_network_api/api/public_networks_api.rb +31 -19
- data/lib/pnap_network_api/api_client.rb +24 -21
- data/lib/pnap_network_api/api_error.rb +2 -1
- data/lib/pnap_network_api/configuration.rb +28 -9
- data/lib/pnap_network_api/models/error.rb +16 -19
- data/lib/pnap_network_api/models/network_membership.rb +20 -19
- data/lib/pnap_network_api/models/private_network.rb +40 -21
- data/lib/pnap_network_api/models/private_network_create.rb +40 -22
- data/lib/pnap_network_api/models/private_network_modify.rb +34 -20
- data/lib/pnap_network_api/models/private_network_server.rb +18 -19
- data/lib/pnap_network_api/models/public_network.rb +35 -20
- data/lib/pnap_network_api/models/public_network_create.rb +45 -23
- data/lib/pnap_network_api/models/public_network_ip_block.rb +16 -19
- data/lib/pnap_network_api/models/public_network_modify.rb +36 -22
- data/lib/pnap_network_api/version.rb +1 -1
- data/lib/pnap_network_api.rb +1 -1
- data/pnap_network_api.gemspec +2 -2
- data/spec/api/private_networks_api_spec.rb +10 -9
- data/spec/api/public_networks_api_spec.rb +14 -13
- data/spec/models/error_spec.rb +7 -5
- data/spec/models/network_membership_spec.rb +7 -5
- data/spec/models/private_network_create_spec.rb +16 -8
- data/spec/models/private_network_modify_spec.rb +8 -6
- data/spec/models/private_network_server_spec.rb +7 -5
- data/spec/models/private_network_spec.rb +32 -12
- data/spec/models/public_network_create_spec.rb +15 -7
- data/spec/models/public_network_ip_block_spec.rb +6 -4
- data/spec/models/public_network_modify_spec.rb +7 -5
- data/spec/models/public_network_spec.rb +19 -11
- data/spec/spec_helper.rb +1 -1
- metadata +8 -16
- data/docs/PublicNetworkMembership.md +0 -22
- data/lib/pnap_network_api/models/public_network_membership.rb +0 -257
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/public_network_membership_spec.rb +0 -46
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Networks API
|
3
3
|
|
4
|
-
#
|
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:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,60 +22,80 @@ describe NetworkApi::PrivateNetwork do
|
|
22
22
|
|
23
23
|
describe 'test an instance of PrivateNetwork' do
|
24
24
|
it 'should create an instance of PrivateNetwork' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkApi::PrivateNetwork)
|
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://
|
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 "name"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
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 "description"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
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 "vlan_id"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "type"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
60
|
describe 'test attribute "location"' do
|
59
61
|
it 'should work' do
|
60
|
-
# assertion here. ref: https://
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
66
|
describe 'test attribute "location_default"' do
|
65
67
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
70
72
|
describe 'test attribute "cidr"' do
|
71
73
|
it 'should work' do
|
72
|
-
# assertion here. ref: https://
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
75
|
end
|
74
76
|
end
|
75
77
|
|
76
78
|
describe 'test attribute "servers"' do
|
77
79
|
it 'should work' do
|
78
|
-
# assertion here. ref: https://
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "memberships"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "status"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "created_on"' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
99
|
end
|
80
100
|
end
|
81
101
|
|
@@ -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'>
|
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:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,30 +22,38 @@ describe NetworkApi::PublicNetworkCreate do
|
|
22
22
|
|
23
23
|
describe 'test an instance of PublicNetworkCreate' do
|
24
24
|
it 'should create an instance of PublicNetworkCreate' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkApi::PublicNetworkCreate)
|
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://
|
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://
|
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://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "vlan_id"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
51
|
end
|
44
52
|
end
|
45
53
|
|
46
54
|
describe 'test attribute "ip_blocks"' do
|
47
55
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
57
|
end
|
50
58
|
end
|
51
59
|
|
@@ -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'>
|
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:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,12 +22,14 @@ describe NetworkApi::PublicNetworkIpBlock do
|
|
22
22
|
|
23
23
|
describe 'test an instance of PublicNetworkIpBlock' do
|
24
24
|
it 'should create an instance of PublicNetworkIpBlock' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkApi::PublicNetworkIpBlock)
|
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://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
@@ -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'>
|
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:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe NetworkApi::PublicNetworkModify do
|
|
22
22
|
|
23
23
|
describe 'test an instance of PublicNetworkModify' do
|
24
24
|
it 'should create an instance of PublicNetworkModify' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkApi::PublicNetworkModify)
|
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://
|
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://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -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'>
|
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:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,54 +22,62 @@ describe NetworkApi::PublicNetwork do
|
|
22
22
|
|
23
23
|
describe 'test an instance of PublicNetwork' do
|
24
24
|
it 'should create an instance of PublicNetwork' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkApi::PublicNetwork)
|
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://
|
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 "vlan_id"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
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 "memberships"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
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 "name"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "location"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
60
|
describe 'test attribute "description"' do
|
59
61
|
it 'should work' do
|
60
|
-
# assertion here. ref: https://
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "status"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
69
|
end
|
62
70
|
end
|
63
71
|
|
64
72
|
describe 'test attribute "created_on"' do
|
65
73
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
75
|
end
|
68
76
|
end
|
69
77
|
|
70
78
|
describe 'test attribute "ip_blocks"' do
|
71
79
|
it 'should work' do
|
72
|
-
# assertion here. ref: https://
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
81
|
end
|
74
82
|
end
|
75
83
|
|
data/spec/spec_helper.rb
CHANGED
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:
|
4
|
+
version: 2.0.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: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -71,7 +71,6 @@ files:
|
|
71
71
|
- docs/PublicNetwork.md
|
72
72
|
- docs/PublicNetworkCreate.md
|
73
73
|
- docs/PublicNetworkIpBlock.md
|
74
|
-
- docs/PublicNetworkMembership.md
|
75
74
|
- docs/PublicNetworkModify.md
|
76
75
|
- docs/PublicNetworksApi.md
|
77
76
|
- lib/pnap_network_api.rb
|
@@ -89,14 +88,11 @@ files:
|
|
89
88
|
- lib/pnap_network_api/models/public_network.rb
|
90
89
|
- lib/pnap_network_api/models/public_network_create.rb
|
91
90
|
- lib/pnap_network_api/models/public_network_ip_block.rb
|
92
|
-
- lib/pnap_network_api/models/public_network_membership.rb
|
93
91
|
- lib/pnap_network_api/models/public_network_modify.rb
|
94
92
|
- lib/pnap_network_api/version.rb
|
95
93
|
- pnap_network_api.gemspec
|
96
94
|
- spec/api/private_networks_api_spec.rb
|
97
95
|
- spec/api/public_networks_api_spec.rb
|
98
|
-
- spec/api_client_spec.rb
|
99
|
-
- spec/configuration_spec.rb
|
100
96
|
- spec/models/error_spec.rb
|
101
97
|
- spec/models/network_membership_spec.rb
|
102
98
|
- spec/models/private_network_create_spec.rb
|
@@ -105,7 +101,6 @@ files:
|
|
105
101
|
- spec/models/private_network_spec.rb
|
106
102
|
- spec/models/public_network_create_spec.rb
|
107
103
|
- spec/models/public_network_ip_block_spec.rb
|
108
|
-
- spec/models/public_network_membership_spec.rb
|
109
104
|
- spec/models/public_network_modify_spec.rb
|
110
105
|
- spec/models/public_network_spec.rb
|
111
106
|
- spec/spec_helper.rb
|
@@ -122,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
117
|
requirements:
|
123
118
|
- - ">="
|
124
119
|
- !ruby/object:Gem::Version
|
125
|
-
version: '2.
|
120
|
+
version: '2.7'
|
126
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
122
|
requirements:
|
128
123
|
- - ">="
|
@@ -136,17 +131,14 @@ summary: Networks API Ruby Gem
|
|
136
131
|
test_files:
|
137
132
|
- spec/api/public_networks_api_spec.rb
|
138
133
|
- spec/api/private_networks_api_spec.rb
|
139
|
-
- spec/
|
140
|
-
- spec/
|
134
|
+
- spec/models/error_spec.rb
|
135
|
+
- spec/models/public_network_create_spec.rb
|
141
136
|
- spec/models/public_network_ip_block_spec.rb
|
137
|
+
- spec/models/public_network_modify_spec.rb
|
142
138
|
- spec/models/private_network_modify_spec.rb
|
143
|
-
- spec/models/public_network_create_spec.rb
|
144
|
-
- spec/models/private_network_server_spec.rb
|
145
139
|
- spec/models/network_membership_spec.rb
|
146
|
-
- spec/models/
|
147
|
-
- spec/models/error_spec.rb
|
140
|
+
- spec/models/private_network_server_spec.rb
|
148
141
|
- spec/models/private_network_create_spec.rb
|
149
|
-
- spec/models/public_network_membership_spec.rb
|
150
142
|
- spec/models/private_network_spec.rb
|
151
|
-
- spec/models/
|
143
|
+
- spec/models/public_network_spec.rb
|
152
144
|
- spec/spec_helper.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# NetworkApi::PublicNetworkMembership
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **resource_id** | **String** | The resource identifier. | |
|
8
|
-
| **resource_type** | **String** | The resource's type. | |
|
9
|
-
| **ips** | **Array<String>** | List of public IPs associated to the resource. | |
|
10
|
-
|
11
|
-
## Example
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'pnap_network_api'
|
15
|
-
|
16
|
-
instance = NetworkApi::PublicNetworkMembership.new(
|
17
|
-
resource_id: 603f3e995c18d515cda9c4f8,
|
18
|
-
resource_type: server,
|
19
|
-
ips: ["10.111.14.104","10.111.14.105","10.111.14.106"]
|
20
|
-
)
|
21
|
-
```
|
22
|
-
|