pnap_network_storage_api 1.1.0 → 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/README.md +6 -0
- data/VERSION +1 -1
- data/docs/NfsPermissionsCreate.md +26 -0
- data/docs/NfsPermissionsUpdate.md +26 -0
- data/docs/PermissionsCreate.md +18 -0
- data/docs/PermissionsUpdate.md +18 -0
- data/docs/StorageNetworkCreate.md +2 -2
- data/docs/StorageNetworkVolumeCreate.md +24 -0
- data/docs/StorageNetworksApi.md +75 -1
- data/docs/VolumeCreate.md +3 -1
- data/docs/VolumeUpdate.md +9 -1
- data/lib/pnap_network_storage_api/api/storage_networks_api.rb +70 -0
- data/lib/pnap_network_storage_api/models/nfs_permissions_create.rb +271 -0
- data/lib/pnap_network_storage_api/models/nfs_permissions_update.rb +271 -0
- data/lib/pnap_network_storage_api/models/permissions_create.rb +220 -0
- data/lib/pnap_network_storage_api/models/permissions_update.rb +220 -0
- data/lib/pnap_network_storage_api/models/storage_network_create.rb +2 -2
- data/lib/pnap_network_storage_api/models/storage_network_volume_create.rb +358 -0
- data/lib/pnap_network_storage_api/models/volume_create.rb +26 -17
- data/lib/pnap_network_storage_api/models/volume_update.rb +117 -4
- data/lib/pnap_network_storage_api.rb +5 -0
- data/spec/models/nfs_permissions_create_spec.rb +58 -0
- data/spec/models/nfs_permissions_update_spec.rb +58 -0
- data/spec/models/permissions_create_spec.rb +34 -0
- data/spec/models/permissions_update_spec.rb +34 -0
- data/spec/models/storage_network_volume_create_spec.rb +52 -0
- metadata +27 -7
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#Network Storage API
|
3
|
+
|
4
|
+
#Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network. <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bare-metal-cloud-storage' target='_blank'>here</a> </span> <br> <b>All URLs are relative to (https://api.phoenixnap.com/network-storage/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: 6.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkStorageApi::NfsPermissionsCreate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkStorageApi::NfsPermissionsCreate do
|
21
|
+
let(:instance) { NetworkStorageApi::NfsPermissionsCreate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of NfsPermissionsCreate' do
|
24
|
+
it 'should create an instance of NfsPermissionsCreate' do
|
25
|
+
expect(instance).to be_instance_of(NetworkStorageApi::NfsPermissionsCreate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "read_write"' 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 "read_only"' 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 "root_squash"' 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 "no_squash"' 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 "all_squash"' 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
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#Network Storage API
|
3
|
+
|
4
|
+
#Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network. <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bare-metal-cloud-storage' target='_blank'>here</a> </span> <br> <b>All URLs are relative to (https://api.phoenixnap.com/network-storage/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: 6.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkStorageApi::NfsPermissionsUpdate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkStorageApi::NfsPermissionsUpdate do
|
21
|
+
let(:instance) { NetworkStorageApi::NfsPermissionsUpdate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of NfsPermissionsUpdate' do
|
24
|
+
it 'should create an instance of NfsPermissionsUpdate' do
|
25
|
+
expect(instance).to be_instance_of(NetworkStorageApi::NfsPermissionsUpdate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "read_write"' 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 "read_only"' 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 "root_squash"' 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 "no_squash"' 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 "all_squash"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Network Storage API
|
3
|
+
|
4
|
+
#Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network. <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bare-metal-cloud-storage' target='_blank'>here</a> </span> <br> <b>All URLs are relative to (https://api.phoenixnap.com/network-storage/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: 6.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkStorageApi::PermissionsCreate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkStorageApi::PermissionsCreate do
|
21
|
+
let(:instance) { NetworkStorageApi::PermissionsCreate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PermissionsCreate' do
|
24
|
+
it 'should create an instance of PermissionsCreate' do
|
25
|
+
expect(instance).to be_instance_of(NetworkStorageApi::PermissionsCreate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "nfs"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Network Storage API
|
3
|
+
|
4
|
+
#Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network. <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bare-metal-cloud-storage' target='_blank'>here</a> </span> <br> <b>All URLs are relative to (https://api.phoenixnap.com/network-storage/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: 6.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkStorageApi::PermissionsUpdate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkStorageApi::PermissionsUpdate do
|
21
|
+
let(:instance) { NetworkStorageApi::PermissionsUpdate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PermissionsUpdate' do
|
24
|
+
it 'should create an instance of PermissionsUpdate' do
|
25
|
+
expect(instance).to be_instance_of(NetworkStorageApi::PermissionsUpdate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "nfs"' 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
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
#Network Storage API
|
3
|
+
|
4
|
+
#Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network. <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bare-metal-cloud-storage' target='_blank'>here</a> </span> <br> <b>All URLs are relative to (https://api.phoenixnap.com/network-storage/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: 6.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for NetworkStorageApi::StorageNetworkVolumeCreate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkStorageApi::StorageNetworkVolumeCreate do
|
21
|
+
let(:instance) { NetworkStorageApi::StorageNetworkVolumeCreate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of StorageNetworkVolumeCreate' do
|
24
|
+
it 'should create an instance of StorageNetworkVolumeCreate' do
|
25
|
+
expect(instance).to be_instance_of(NetworkStorageApi::StorageNetworkVolumeCreate)
|
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
|
+
describe 'test attribute "path_suffix"' 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 "capacity_in_gb"' 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
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnap_network_storage_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-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -63,11 +63,16 @@ files:
|
|
63
63
|
- VERSION
|
64
64
|
- docs/Error.md
|
65
65
|
- docs/NfsPermissions.md
|
66
|
+
- docs/NfsPermissionsCreate.md
|
67
|
+
- docs/NfsPermissionsUpdate.md
|
66
68
|
- docs/Permissions.md
|
69
|
+
- docs/PermissionsCreate.md
|
70
|
+
- docs/PermissionsUpdate.md
|
67
71
|
- docs/Status.md
|
68
72
|
- docs/StorageNetwork.md
|
69
73
|
- docs/StorageNetworkCreate.md
|
70
74
|
- docs/StorageNetworkUpdate.md
|
75
|
+
- docs/StorageNetworkVolumeCreate.md
|
71
76
|
- docs/StorageNetworksApi.md
|
72
77
|
- docs/Volume.md
|
73
78
|
- docs/VolumeCreate.md
|
@@ -79,11 +84,16 @@ files:
|
|
79
84
|
- lib/pnap_network_storage_api/configuration.rb
|
80
85
|
- lib/pnap_network_storage_api/models/error.rb
|
81
86
|
- lib/pnap_network_storage_api/models/nfs_permissions.rb
|
87
|
+
- lib/pnap_network_storage_api/models/nfs_permissions_create.rb
|
88
|
+
- lib/pnap_network_storage_api/models/nfs_permissions_update.rb
|
82
89
|
- lib/pnap_network_storage_api/models/permissions.rb
|
90
|
+
- lib/pnap_network_storage_api/models/permissions_create.rb
|
91
|
+
- lib/pnap_network_storage_api/models/permissions_update.rb
|
83
92
|
- lib/pnap_network_storage_api/models/status.rb
|
84
93
|
- lib/pnap_network_storage_api/models/storage_network.rb
|
85
94
|
- lib/pnap_network_storage_api/models/storage_network_create.rb
|
86
95
|
- lib/pnap_network_storage_api/models/storage_network_update.rb
|
96
|
+
- lib/pnap_network_storage_api/models/storage_network_volume_create.rb
|
87
97
|
- lib/pnap_network_storage_api/models/volume.rb
|
88
98
|
- lib/pnap_network_storage_api/models/volume_create.rb
|
89
99
|
- lib/pnap_network_storage_api/models/volume_update.rb
|
@@ -93,12 +103,17 @@ files:
|
|
93
103
|
- spec/api_client_spec.rb
|
94
104
|
- spec/configuration_spec.rb
|
95
105
|
- spec/models/error_spec.rb
|
106
|
+
- spec/models/nfs_permissions_create_spec.rb
|
96
107
|
- spec/models/nfs_permissions_spec.rb
|
108
|
+
- spec/models/nfs_permissions_update_spec.rb
|
109
|
+
- spec/models/permissions_create_spec.rb
|
97
110
|
- spec/models/permissions_spec.rb
|
111
|
+
- spec/models/permissions_update_spec.rb
|
98
112
|
- spec/models/status_spec.rb
|
99
113
|
- spec/models/storage_network_create_spec.rb
|
100
114
|
- spec/models/storage_network_spec.rb
|
101
115
|
- spec/models/storage_network_update_spec.rb
|
116
|
+
- spec/models/storage_network_volume_create_spec.rb
|
102
117
|
- spec/models/volume_create_spec.rb
|
103
118
|
- spec/models/volume_spec.rb
|
104
119
|
- spec/models/volume_update_spec.rb
|
@@ -131,14 +146,19 @@ test_files:
|
|
131
146
|
- spec/api/storage_networks_api_spec.rb
|
132
147
|
- spec/api_client_spec.rb
|
133
148
|
- spec/configuration_spec.rb
|
134
|
-
- spec/models/permissions_spec.rb
|
135
|
-
- spec/models/storage_network_create_spec.rb
|
136
149
|
- spec/models/volume_create_spec.rb
|
150
|
+
- spec/models/permissions_spec.rb
|
151
|
+
- spec/models/permissions_update_spec.rb
|
137
152
|
- spec/models/error_spec.rb
|
153
|
+
- spec/models/nfs_permissions_create_spec.rb
|
154
|
+
- spec/models/nfs_permissions_update_spec.rb
|
155
|
+
- spec/models/storage_network_create_spec.rb
|
156
|
+
- spec/models/status_spec.rb
|
138
157
|
- spec/models/storage_network_spec.rb
|
139
158
|
- spec/models/nfs_permissions_spec.rb
|
140
|
-
- spec/models/status_spec.rb
|
141
|
-
- spec/models/volume_spec.rb
|
142
|
-
- spec/models/volume_update_spec.rb
|
143
159
|
- spec/models/storage_network_update_spec.rb
|
160
|
+
- spec/models/permissions_create_spec.rb
|
161
|
+
- spec/models/volume_update_spec.rb
|
162
|
+
- spec/models/storage_network_volume_create_spec.rb
|
163
|
+
- spec/models/volume_spec.rb
|
144
164
|
- spec/spec_helper.rb
|