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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/VERSION +1 -1
  4. data/docs/NfsPermissionsCreate.md +26 -0
  5. data/docs/NfsPermissionsUpdate.md +26 -0
  6. data/docs/PermissionsCreate.md +18 -0
  7. data/docs/PermissionsUpdate.md +18 -0
  8. data/docs/StorageNetworkCreate.md +4 -2
  9. data/docs/StorageNetworkVolumeCreate.md +26 -0
  10. data/docs/StorageNetworksApi.md +85 -5
  11. data/docs/TagAssignment.md +26 -0
  12. data/docs/TagAssignmentRequest.md +20 -0
  13. data/docs/Volume.md +3 -1
  14. data/docs/VolumeCreate.md +5 -1
  15. data/docs/VolumeUpdate.md +3 -1
  16. data/lib/pnap_network_storage_api/api/storage_networks_api.rb +79 -0
  17. data/lib/pnap_network_storage_api/models/nfs_permissions_create.rb +271 -0
  18. data/lib/pnap_network_storage_api/models/nfs_permissions_update.rb +271 -0
  19. data/lib/pnap_network_storage_api/models/permissions_create.rb +220 -0
  20. data/lib/pnap_network_storage_api/models/permissions_update.rb +220 -0
  21. data/lib/pnap_network_storage_api/models/storage_network_create.rb +38 -4
  22. data/lib/pnap_network_storage_api/models/storage_network_volume_create.rb +370 -0
  23. data/lib/pnap_network_storage_api/models/tag_assignment.rb +310 -0
  24. data/lib/pnap_network_storage_api/models/tag_assignment_request.rb +236 -0
  25. data/lib/pnap_network_storage_api/models/volume.rb +16 -4
  26. data/lib/pnap_network_storage_api/models/volume_create.rb +25 -4
  27. data/lib/pnap_network_storage_api/models/volume_update.rb +13 -4
  28. data/lib/pnap_network_storage_api.rb +7 -0
  29. data/spec/models/nfs_permissions_create_spec.rb +58 -0
  30. data/spec/models/nfs_permissions_update_spec.rb +58 -0
  31. data/spec/models/permissions_create_spec.rb +34 -0
  32. data/spec/models/permissions_update_spec.rb +34 -0
  33. data/spec/models/storage_network_volume_create_spec.rb +52 -0
  34. data/spec/models/tag_assignment_request_spec.rb +40 -0
  35. data/spec/models/tag_assignment_spec.rb +62 -0
  36. metadata +35 -7
@@ -0,0 +1,236 @@
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 'date'
14
+ require 'time'
15
+
16
+ module NetworkStorageApi
17
+ # Tag request to assign to resource.
18
+ class TagAssignmentRequest
19
+ # The name of the tag. Tag names are case-sensitive, and should be composed of a maximum of 100 characters including UTF-8 Unicode letters, numbers, and the following symbols: '-', '_'. Regex: [A-zÀ-ú0-9_-]{1,100}.
20
+ attr_accessor :name
21
+
22
+ # The value of the tag assigned to the resource. Tag values are case-sensitive, and should be composed of a maximum of 100 characters including UTF-8 Unicode letters, numbers, and the following symbols: '-', '_'. Regex: [A-zÀ-ú0-9_-]{1,100}.
23
+ attr_accessor :value
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'name' => :'name',
29
+ :'value' => :'value'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'name' => :'String',
42
+ :'value' => :'String'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `NetworkStorageApi::TagAssignmentRequest` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkStorageApi::TagAssignmentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'name')
68
+ self.name = attributes[:'name']
69
+ end
70
+
71
+ if attributes.key?(:'value')
72
+ self.value = attributes[:'value']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ if @name.nil?
81
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
82
+ end
83
+
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ return false if @name.nil?
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ name == o.name &&
100
+ value == o.value
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Integer] Hash code
111
+ def hash
112
+ [name, value].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def self.build_from_hash(attributes)
119
+ new.build_from_hash(attributes)
120
+ end
121
+
122
+ # Builds the object from hash
123
+ # @param [Hash] attributes Model attributes in the form of hash
124
+ # @return [Object] Returns the model itself
125
+ def build_from_hash(attributes)
126
+ return nil unless attributes.is_a?(Hash)
127
+ attributes = attributes.transform_keys(&:to_sym)
128
+ self.class.openapi_types.each_pair do |key, type|
129
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
130
+ self.send("#{key}=", nil)
131
+ elsif type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the attribute
133
+ # is documented as an array but the input is not
134
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
135
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
136
+ end
137
+ elsif !attributes[self.class.attribute_map[key]].nil?
138
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
139
+ end
140
+ end
141
+
142
+ self
143
+ end
144
+
145
+ # Deserializes the data based on type
146
+ # @param string type Data type
147
+ # @param string value Value to be deserialized
148
+ # @return [Object] Deserialized data
149
+ def _deserialize(type, value)
150
+ case type.to_sym
151
+ when :Time
152
+ Time.parse(value)
153
+ when :Date
154
+ Date.parse(value)
155
+ when :String
156
+ value.to_s
157
+ when :Integer
158
+ value.to_i
159
+ when :Float
160
+ value.to_f
161
+ when :Boolean
162
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
163
+ true
164
+ else
165
+ false
166
+ end
167
+ when :Object
168
+ # generic object (usually a Hash), return directly
169
+ value
170
+ when /\AArray<(?<inner_type>.+)>\z/
171
+ inner_type = Regexp.last_match[:inner_type]
172
+ value.map { |v| _deserialize(inner_type, v) }
173
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
174
+ k_type = Regexp.last_match[:k_type]
175
+ v_type = Regexp.last_match[:v_type]
176
+ {}.tap do |hash|
177
+ value.each do |k, v|
178
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
179
+ end
180
+ end
181
+ else # model
182
+ # models (e.g. Pet) or oneOf
183
+ klass = NetworkStorageApi.const_get(type)
184
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ if value.nil?
207
+ is_nullable = self.class.openapi_nullable.include?(attr)
208
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
+ end
210
+
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+
234
+ end
235
+
236
+ end
@@ -46,6 +46,9 @@ module NetworkStorageApi
46
46
 
47
47
  attr_accessor :permissions
48
48
 
49
+ # The tags assigned if any.
50
+ attr_accessor :tags
51
+
49
52
  # Attribute mapping from ruby-style variable name to JSON key.
50
53
  def self.attribute_map
51
54
  {
@@ -59,7 +62,8 @@ module NetworkStorageApi
59
62
  :'protocol' => :'protocol',
60
63
  :'status' => :'status',
61
64
  :'created_on' => :'createdOn',
62
- :'permissions' => :'permissions'
65
+ :'permissions' => :'permissions',
66
+ :'tags' => :'tags'
63
67
  }
64
68
  end
65
69
 
@@ -81,7 +85,8 @@ module NetworkStorageApi
81
85
  :'protocol' => :'String',
82
86
  :'status' => :'Status',
83
87
  :'created_on' => :'Time',
84
- :'permissions' => :'Permissions'
88
+ :'permissions' => :'Permissions',
89
+ :'tags' => :'Array<TagAssignment>'
85
90
  }
86
91
  end
87
92
 
@@ -149,6 +154,12 @@ module NetworkStorageApi
149
154
  if attributes.key?(:'permissions')
150
155
  self.permissions = attributes[:'permissions']
151
156
  end
157
+
158
+ if attributes.key?(:'tags')
159
+ if (value = attributes[:'tags']).is_a?(Array)
160
+ self.tags = value
161
+ end
162
+ end
152
163
  end
153
164
 
154
165
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -179,7 +190,8 @@ module NetworkStorageApi
179
190
  protocol == o.protocol &&
180
191
  status == o.status &&
181
192
  created_on == o.created_on &&
182
- permissions == o.permissions
193
+ permissions == o.permissions &&
194
+ tags == o.tags
183
195
  end
184
196
 
185
197
  # @see the `==` method
@@ -191,7 +203,7 @@ module NetworkStorageApi
191
203
  # Calculates hash code according to all attributes.
192
204
  # @return [Integer] Hash code
193
205
  def hash
194
- [id, name, description, path, path_suffix, capacity_in_gb, used_capacity_in_gb, protocol, status, created_on, permissions].hash
206
+ [id, name, description, path, path_suffix, capacity_in_gb, used_capacity_in_gb, protocol, status, created_on, permissions, tags].hash
195
207
  end
196
208
 
197
209
  # Builds the object from hash
@@ -28,13 +28,20 @@ module NetworkStorageApi
28
28
  # Capacity of Volume in GB. Currently only whole numbers and multiples of 1000GB are supported.
29
29
  attr_accessor :capacity_in_gb
30
30
 
31
+ attr_accessor :permissions
32
+
33
+ # Tags to set to the resource. To create a new tag or list all the existing tags that you can use, refer to [Tags API](https://developers.phoenixnap.com/docs/tags/1/overview).
34
+ attr_accessor :tags
35
+
31
36
  # Attribute mapping from ruby-style variable name to JSON key.
32
37
  def self.attribute_map
33
38
  {
34
39
  :'name' => :'name',
35
40
  :'description' => :'description',
36
41
  :'path_suffix' => :'pathSuffix',
37
- :'capacity_in_gb' => :'capacityInGb'
42
+ :'capacity_in_gb' => :'capacityInGb',
43
+ :'permissions' => :'permissions',
44
+ :'tags' => :'tags'
38
45
  }
39
46
  end
40
47
 
@@ -49,7 +56,9 @@ module NetworkStorageApi
49
56
  :'name' => :'String',
50
57
  :'description' => :'String',
51
58
  :'path_suffix' => :'String',
52
- :'capacity_in_gb' => :'Integer'
59
+ :'capacity_in_gb' => :'Integer',
60
+ :'permissions' => :'PermissionsCreate',
61
+ :'tags' => :'Array<TagAssignmentRequest>'
53
62
  }
54
63
  end
55
64
 
@@ -89,6 +98,16 @@ module NetworkStorageApi
89
98
  if attributes.key?(:'capacity_in_gb')
90
99
  self.capacity_in_gb = attributes[:'capacity_in_gb']
91
100
  end
101
+
102
+ if attributes.key?(:'permissions')
103
+ self.permissions = attributes[:'permissions']
104
+ end
105
+
106
+ if attributes.key?(:'tags')
107
+ if (value = attributes[:'tags']).is_a?(Array)
108
+ self.tags = value
109
+ end
110
+ end
92
111
  end
93
112
 
94
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -219,7 +238,9 @@ module NetworkStorageApi
219
238
  name == o.name &&
220
239
  description == o.description &&
221
240
  path_suffix == o.path_suffix &&
222
- capacity_in_gb == o.capacity_in_gb
241
+ capacity_in_gb == o.capacity_in_gb &&
242
+ permissions == o.permissions &&
243
+ tags == o.tags
223
244
  end
224
245
 
225
246
  # @see the `==` method
@@ -231,7 +252,7 @@ module NetworkStorageApi
231
252
  # Calculates hash code according to all attributes.
232
253
  # @return [Integer] Hash code
233
254
  def hash
234
- [name, description, path_suffix, capacity_in_gb].hash
255
+ [name, description, path_suffix, capacity_in_gb, permissions, tags].hash
235
256
  end
236
257
 
237
258
  # Builds the object from hash
@@ -28,13 +28,16 @@ module NetworkStorageApi
28
28
  # Last part of volume's path.
29
29
  attr_accessor :path_suffix
30
30
 
31
+ attr_accessor :permissions
32
+
31
33
  # Attribute mapping from ruby-style variable name to JSON key.
32
34
  def self.attribute_map
33
35
  {
34
36
  :'name' => :'name',
35
37
  :'description' => :'description',
36
38
  :'capacity_in_gb' => :'capacityInGb',
37
- :'path_suffix' => :'pathSuffix'
39
+ :'path_suffix' => :'pathSuffix',
40
+ :'permissions' => :'permissions'
38
41
  }
39
42
  end
40
43
 
@@ -49,7 +52,8 @@ module NetworkStorageApi
49
52
  :'name' => :'String',
50
53
  :'description' => :'String',
51
54
  :'capacity_in_gb' => :'Integer',
52
- :'path_suffix' => :'String'
55
+ :'path_suffix' => :'String',
56
+ :'permissions' => :'PermissionsUpdate'
53
57
  }
54
58
  end
55
59
 
@@ -89,6 +93,10 @@ module NetworkStorageApi
89
93
  if attributes.key?(:'path_suffix')
90
94
  self.path_suffix = attributes[:'path_suffix']
91
95
  end
96
+
97
+ if attributes.key?(:'permissions')
98
+ self.permissions = attributes[:'permissions']
99
+ end
92
100
  end
93
101
 
94
102
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -201,7 +209,8 @@ module NetworkStorageApi
201
209
  name == o.name &&
202
210
  description == o.description &&
203
211
  capacity_in_gb == o.capacity_in_gb &&
204
- path_suffix == o.path_suffix
212
+ path_suffix == o.path_suffix &&
213
+ permissions == o.permissions
205
214
  end
206
215
 
207
216
  # @see the `==` method
@@ -213,7 +222,7 @@ module NetworkStorageApi
213
222
  # Calculates hash code according to all attributes.
214
223
  # @return [Integer] Hash code
215
224
  def hash
216
- [name, description, capacity_in_gb, path_suffix].hash
225
+ [name, description, capacity_in_gb, path_suffix, permissions].hash
217
226
  end
218
227
 
219
228
  # Builds the object from hash
@@ -19,11 +19,18 @@ require 'pnap_network_storage_api/configuration'
19
19
  # Models
20
20
  require 'pnap_network_storage_api/models/error'
21
21
  require 'pnap_network_storage_api/models/nfs_permissions'
22
+ require 'pnap_network_storage_api/models/nfs_permissions_create'
23
+ require 'pnap_network_storage_api/models/nfs_permissions_update'
22
24
  require 'pnap_network_storage_api/models/permissions'
25
+ require 'pnap_network_storage_api/models/permissions_create'
26
+ require 'pnap_network_storage_api/models/permissions_update'
23
27
  require 'pnap_network_storage_api/models/status'
24
28
  require 'pnap_network_storage_api/models/storage_network'
25
29
  require 'pnap_network_storage_api/models/storage_network_create'
26
30
  require 'pnap_network_storage_api/models/storage_network_update'
31
+ require 'pnap_network_storage_api/models/storage_network_volume_create'
32
+ require 'pnap_network_storage_api/models/tag_assignment'
33
+ require 'pnap_network_storage_api/models/tag_assignment_request'
27
34
  require 'pnap_network_storage_api/models/volume'
28
35
  require 'pnap_network_storage_api/models/volume_create'
29
36
  require 'pnap_network_storage_api/models/volume_update'
@@ -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