pnap_network_storage_api 1.2.0 → 1.4.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 +8 -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 +4 -2
- data/docs/StorageNetworkVolumeCreate.md +26 -0
- data/docs/StorageNetworksApi.md +85 -5
- data/docs/TagAssignment.md +26 -0
- data/docs/TagAssignmentRequest.md +20 -0
- data/docs/Volume.md +3 -1
- data/docs/VolumeCreate.md +5 -1
- data/docs/VolumeUpdate.md +3 -1
- data/lib/pnap_network_storage_api/api/storage_networks_api.rb +79 -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 +38 -4
- data/lib/pnap_network_storage_api/models/storage_network_volume_create.rb +370 -0
- data/lib/pnap_network_storage_api/models/tag_assignment.rb +310 -0
- data/lib/pnap_network_storage_api/models/tag_assignment_request.rb +236 -0
- data/lib/pnap_network_storage_api/models/volume.rb +16 -4
- data/lib/pnap_network_storage_api/models/volume_create.rb +25 -4
- data/lib/pnap_network_storage_api/models/volume_update.rb +13 -4
- data/lib/pnap_network_storage_api.rb +7 -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
- data/spec/models/tag_assignment_request_spec.rb +40 -0
- data/spec/models/tag_assignment_spec.rb +62 -0
- metadata +35 -7
@@ -0,0 +1,40 @@
|
|
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::TagAssignmentRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkStorageApi::TagAssignmentRequest do
|
21
|
+
let(:instance) { NetworkStorageApi::TagAssignmentRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of TagAssignmentRequest' do
|
24
|
+
it 'should create an instance of TagAssignmentRequest' do
|
25
|
+
expect(instance).to be_instance_of(NetworkStorageApi::TagAssignmentRequest)
|
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 "value"' 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,62 @@
|
|
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::TagAssignment
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe NetworkStorageApi::TagAssignment do
|
21
|
+
let(:instance) { NetworkStorageApi::TagAssignment.new }
|
22
|
+
|
23
|
+
describe 'test an instance of TagAssignment' do
|
24
|
+
it 'should create an instance of TagAssignment' do
|
25
|
+
expect(instance).to be_instance_of(NetworkStorageApi::TagAssignment)
|
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 "name"' 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 "value"' 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 "is_billing_tag"' 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 "created_by"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["USER", "SYSTEM"])
|
56
|
+
# validator.allowable_values.each do |value|
|
57
|
+
# expect { instance.created_by = value }.not_to raise_error
|
58
|
+
# end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -63,12 +63,19 @@ 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
|
77
|
+
- docs/TagAssignment.md
|
78
|
+
- docs/TagAssignmentRequest.md
|
72
79
|
- docs/Volume.md
|
73
80
|
- docs/VolumeCreate.md
|
74
81
|
- docs/VolumeUpdate.md
|
@@ -79,11 +86,18 @@ files:
|
|
79
86
|
- lib/pnap_network_storage_api/configuration.rb
|
80
87
|
- lib/pnap_network_storage_api/models/error.rb
|
81
88
|
- lib/pnap_network_storage_api/models/nfs_permissions.rb
|
89
|
+
- lib/pnap_network_storage_api/models/nfs_permissions_create.rb
|
90
|
+
- lib/pnap_network_storage_api/models/nfs_permissions_update.rb
|
82
91
|
- lib/pnap_network_storage_api/models/permissions.rb
|
92
|
+
- lib/pnap_network_storage_api/models/permissions_create.rb
|
93
|
+
- lib/pnap_network_storage_api/models/permissions_update.rb
|
83
94
|
- lib/pnap_network_storage_api/models/status.rb
|
84
95
|
- lib/pnap_network_storage_api/models/storage_network.rb
|
85
96
|
- lib/pnap_network_storage_api/models/storage_network_create.rb
|
86
97
|
- lib/pnap_network_storage_api/models/storage_network_update.rb
|
98
|
+
- lib/pnap_network_storage_api/models/storage_network_volume_create.rb
|
99
|
+
- lib/pnap_network_storage_api/models/tag_assignment.rb
|
100
|
+
- lib/pnap_network_storage_api/models/tag_assignment_request.rb
|
87
101
|
- lib/pnap_network_storage_api/models/volume.rb
|
88
102
|
- lib/pnap_network_storage_api/models/volume_create.rb
|
89
103
|
- lib/pnap_network_storage_api/models/volume_update.rb
|
@@ -93,12 +107,19 @@ files:
|
|
93
107
|
- spec/api_client_spec.rb
|
94
108
|
- spec/configuration_spec.rb
|
95
109
|
- spec/models/error_spec.rb
|
110
|
+
- spec/models/nfs_permissions_create_spec.rb
|
96
111
|
- spec/models/nfs_permissions_spec.rb
|
112
|
+
- spec/models/nfs_permissions_update_spec.rb
|
113
|
+
- spec/models/permissions_create_spec.rb
|
97
114
|
- spec/models/permissions_spec.rb
|
115
|
+
- spec/models/permissions_update_spec.rb
|
98
116
|
- spec/models/status_spec.rb
|
99
117
|
- spec/models/storage_network_create_spec.rb
|
100
118
|
- spec/models/storage_network_spec.rb
|
101
119
|
- spec/models/storage_network_update_spec.rb
|
120
|
+
- spec/models/storage_network_volume_create_spec.rb
|
121
|
+
- spec/models/tag_assignment_request_spec.rb
|
122
|
+
- spec/models/tag_assignment_spec.rb
|
102
123
|
- spec/models/volume_create_spec.rb
|
103
124
|
- spec/models/volume_spec.rb
|
104
125
|
- spec/models/volume_update_spec.rb
|
@@ -131,14 +152,21 @@ test_files:
|
|
131
152
|
- spec/api/storage_networks_api_spec.rb
|
132
153
|
- spec/api_client_spec.rb
|
133
154
|
- spec/configuration_spec.rb
|
134
|
-
- spec/models/
|
155
|
+
- spec/models/permissions_create_spec.rb
|
156
|
+
- spec/models/tag_assignment_request_spec.rb
|
157
|
+
- spec/models/storage_network_create_spec.rb
|
135
158
|
- spec/models/permissions_spec.rb
|
136
|
-
- spec/models/
|
159
|
+
- spec/models/nfs_permissions_spec.rb
|
137
160
|
- spec/models/error_spec.rb
|
138
|
-
- spec/models/
|
161
|
+
- spec/models/nfs_permissions_create_spec.rb
|
139
162
|
- spec/models/storage_network_spec.rb
|
140
|
-
- spec/models/
|
163
|
+
- spec/models/storage_network_update_spec.rb
|
164
|
+
- spec/models/tag_assignment_spec.rb
|
141
165
|
- spec/models/status_spec.rb
|
166
|
+
- spec/models/permissions_update_spec.rb
|
167
|
+
- spec/models/storage_network_volume_create_spec.rb
|
168
|
+
- spec/models/volume_spec.rb
|
142
169
|
- spec/models/volume_update_spec.rb
|
143
|
-
- spec/models/
|
170
|
+
- spec/models/nfs_permissions_update_spec.rb
|
171
|
+
- spec/models/volume_create_spec.rb
|
144
172
|
- spec/spec_helper.rb
|