pnap_network_api 1.0.0 → 1.1.1
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 +18 -5
- data/VERSION +1 -1
- data/docs/NetworkMembership.md +22 -0
- data/docs/PrivateNetwork.md +7 -1
- data/docs/PublicNetwork.md +34 -0
- data/docs/PublicNetworkCreate.md +24 -0
- data/docs/PublicNetworkIpBlock.md +18 -0
- data/docs/PublicNetworkMembership.md +22 -0
- data/docs/PublicNetworkModify.md +20 -0
- data/docs/PublicNetworksApi.md +510 -0
- data/lib/pnap_network_api/api/private_networks_api.rb +2 -2
- data/lib/pnap_network_api/api/public_networks_api.rb +481 -0
- data/lib/pnap_network_api/api_client.rb +5 -3
- data/lib/pnap_network_api/api_error.rb +2 -2
- data/lib/pnap_network_api/configuration.rb +4 -3
- data/lib/pnap_network_api/models/error.rb +3 -2
- data/lib/pnap_network_api/models/network_membership.rb +258 -0
- data/lib/pnap_network_api/models/private_network.rb +97 -6
- data/lib/pnap_network_api/models/private_network_create.rb +46 -2
- data/lib/pnap_network_api/models/private_network_modify.rb +46 -2
- data/lib/pnap_network_api/models/private_network_server.rb +3 -2
- data/lib/pnap_network_api/models/public_network.rb +388 -0
- data/lib/pnap_network_api/models/public_network_create.rb +321 -0
- data/lib/pnap_network_api/models/public_network_ip_block.rb +226 -0
- data/lib/pnap_network_api/models/public_network_membership.rb +257 -0
- data/lib/pnap_network_api/models/public_network_modify.rb +270 -0
- data/lib/pnap_network_api/version.rb +2 -2
- data/lib/pnap_network_api.rb +8 -2
- data/pnap_network_api.gemspec +3 -3
- data/spec/api/public_networks_api_spec.rb +122 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/network_membership_spec.rb +46 -0
- data/spec/models/public_network_create_spec.rb +52 -0
- data/spec/models/public_network_ip_block_spec.rb +34 -0
- data/spec/models/public_network_membership_spec.rb +46 -0
- data/spec/models/public_network_modify_spec.rb +40 -0
- data/spec/models/public_network_spec.rb +76 -0
- data/spec/spec_helper.rb +2 -2
- metadata +34 -6
@@ -0,0 +1,46 @@
|
|
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'> 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>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@phoenixnap.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkApi::PublicNetworkMembership
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkApi::PublicNetworkMembership do
|
21
|
+
let(:instance) { NetworkApi::PublicNetworkMembership.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PublicNetworkMembership' do
|
24
|
+
it 'should create an instance of PublicNetworkMembership' do
|
25
|
+
expect(instance).to be_instance_of(NetworkApi::PublicNetworkMembership)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "resource_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "resource_type"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "ips"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,40 @@
|
|
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'> 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>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@phoenixnap.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkApi::PublicNetworkModify
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkApi::PublicNetworkModify do
|
21
|
+
let(:instance) { NetworkApi::PublicNetworkModify.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PublicNetworkModify' do
|
24
|
+
it 'should create an instance of PublicNetworkModify' do
|
25
|
+
expect(instance).to be_instance_of(NetworkApi::PublicNetworkModify)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "name"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "description"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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'> 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>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@phoenixnap.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkApi::PublicNetwork
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkApi::PublicNetwork do
|
21
|
+
let(:instance) { NetworkApi::PublicNetwork.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PublicNetwork' do
|
24
|
+
it 'should create an instance of PublicNetwork' do
|
25
|
+
expect(instance).to be_instance_of(NetworkApi::PublicNetwork)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "vlan_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "memberships"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "name"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "location"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "description"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "created_on"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "ip_blocks"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -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: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
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.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -62,37 +62,58 @@ files:
|
|
62
62
|
- Rakefile
|
63
63
|
- VERSION
|
64
64
|
- docs/Error.md
|
65
|
+
- docs/NetworkMembership.md
|
65
66
|
- docs/PrivateNetwork.md
|
66
67
|
- docs/PrivateNetworkCreate.md
|
67
68
|
- docs/PrivateNetworkModify.md
|
68
69
|
- docs/PrivateNetworkServer.md
|
69
70
|
- docs/PrivateNetworksApi.md
|
71
|
+
- docs/PublicNetwork.md
|
72
|
+
- docs/PublicNetworkCreate.md
|
73
|
+
- docs/PublicNetworkIpBlock.md
|
74
|
+
- docs/PublicNetworkMembership.md
|
75
|
+
- docs/PublicNetworkModify.md
|
76
|
+
- docs/PublicNetworksApi.md
|
70
77
|
- lib/pnap_network_api.rb
|
71
78
|
- lib/pnap_network_api/api/private_networks_api.rb
|
79
|
+
- lib/pnap_network_api/api/public_networks_api.rb
|
72
80
|
- lib/pnap_network_api/api_client.rb
|
73
81
|
- lib/pnap_network_api/api_error.rb
|
74
82
|
- lib/pnap_network_api/configuration.rb
|
75
83
|
- lib/pnap_network_api/models/error.rb
|
84
|
+
- lib/pnap_network_api/models/network_membership.rb
|
76
85
|
- lib/pnap_network_api/models/private_network.rb
|
77
86
|
- lib/pnap_network_api/models/private_network_create.rb
|
78
87
|
- lib/pnap_network_api/models/private_network_modify.rb
|
79
88
|
- lib/pnap_network_api/models/private_network_server.rb
|
89
|
+
- lib/pnap_network_api/models/public_network.rb
|
90
|
+
- lib/pnap_network_api/models/public_network_create.rb
|
91
|
+
- lib/pnap_network_api/models/public_network_ip_block.rb
|
92
|
+
- lib/pnap_network_api/models/public_network_membership.rb
|
93
|
+
- lib/pnap_network_api/models/public_network_modify.rb
|
80
94
|
- lib/pnap_network_api/version.rb
|
81
95
|
- pnap_network_api.gemspec
|
82
96
|
- spec/api/private_networks_api_spec.rb
|
97
|
+
- spec/api/public_networks_api_spec.rb
|
83
98
|
- spec/api_client_spec.rb
|
84
99
|
- spec/configuration_spec.rb
|
85
100
|
- spec/models/error_spec.rb
|
101
|
+
- spec/models/network_membership_spec.rb
|
86
102
|
- spec/models/private_network_create_spec.rb
|
87
103
|
- spec/models/private_network_modify_spec.rb
|
88
104
|
- spec/models/private_network_server_spec.rb
|
89
105
|
- spec/models/private_network_spec.rb
|
106
|
+
- spec/models/public_network_create_spec.rb
|
107
|
+
- spec/models/public_network_ip_block_spec.rb
|
108
|
+
- spec/models/public_network_membership_spec.rb
|
109
|
+
- spec/models/public_network_modify_spec.rb
|
110
|
+
- spec/models/public_network_spec.rb
|
90
111
|
- spec/spec_helper.rb
|
91
112
|
homepage: https://phoenixnap.com/bare-metal-cloud
|
92
113
|
licenses:
|
93
114
|
- MPL-2.0
|
94
115
|
metadata:
|
95
|
-
source_code_uri: https://github.com/phoenixnap/ruby-sdk-bmc
|
116
|
+
source_code_uri: https://github.com/phoenixnap/ruby-sdk-bmc
|
96
117
|
post_install_message:
|
97
118
|
rdoc_options: []
|
98
119
|
require_paths:
|
@@ -113,12 +134,19 @@ signing_key:
|
|
113
134
|
specification_version: 4
|
114
135
|
summary: Networks API Ruby Gem
|
115
136
|
test_files:
|
137
|
+
- spec/api/public_networks_api_spec.rb
|
116
138
|
- spec/api/private_networks_api_spec.rb
|
117
139
|
- spec/api_client_spec.rb
|
118
140
|
- spec/configuration_spec.rb
|
119
|
-
- spec/models/
|
120
|
-
- spec/models/private_network_modify_spec.rb
|
141
|
+
- spec/models/public_network_modify_spec.rb
|
121
142
|
- spec/models/private_network_spec.rb
|
122
|
-
- spec/models/
|
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
|
+
- spec/models/public_network_spec.rb
|
123
148
|
- spec/models/private_network_create_spec.rb
|
149
|
+
- spec/models/private_network_server_spec.rb
|
150
|
+
- spec/models/public_network_create_spec.rb
|
151
|
+
- spec/models/public_network_membership_spec.rb
|
124
152
|
- spec/spec_helper.rb
|