pnap_network_storage_api 1.4.0 → 2.0.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 +12 -9
- data/VERSION +1 -1
- data/docs/StorageNetwork.md +2 -0
- data/docs/StorageNetworksApi.md +77 -87
- data/docs/Volume.md +2 -0
- data/lib/pnap_network_storage_api/api/storage_networks_api.rb +120 -100
- data/lib/pnap_network_storage_api/api_client.rb +26 -23
- data/lib/pnap_network_storage_api/api_error.rb +2 -1
- data/lib/pnap_network_storage_api/configuration.rb +28 -9
- data/lib/pnap_network_storage_api/models/error.rb +16 -19
- data/lib/pnap_network_storage_api/models/nfs_permissions.rb +14 -19
- data/lib/pnap_network_storage_api/models/nfs_permissions_create.rb +14 -19
- data/lib/pnap_network_storage_api/models/nfs_permissions_update.rb +14 -19
- data/lib/pnap_network_storage_api/models/permissions.rb +14 -19
- data/lib/pnap_network_storage_api/models/permissions_create.rb +14 -19
- data/lib/pnap_network_storage_api/models/permissions_update.rb +14 -19
- data/lib/pnap_network_storage_api/models/status.rb +8 -4
- data/lib/pnap_network_storage_api/models/storage_network.rb +47 -20
- data/lib/pnap_network_storage_api/models/storage_network_create.rb +42 -22
- data/lib/pnap_network_storage_api/models/storage_network_update.rb +36 -22
- data/lib/pnap_network_storage_api/models/storage_network_volume_create.rb +41 -23
- data/lib/pnap_network_storage_api/models/tag_assignment.rb +20 -19
- data/lib/pnap_network_storage_api/models/tag_assignment_request.rb +16 -19
- data/lib/pnap_network_storage_api/models/volume.rb +47 -20
- data/lib/pnap_network_storage_api/models/volume_create.rb +41 -23
- data/lib/pnap_network_storage_api/models/volume_update.rb +48 -26
- data/lib/pnap_network_storage_api/version.rb +1 -1
- data/lib/pnap_network_storage_api.rb +1 -1
- data/pnap_network_storage_api.gemspec +2 -2
- data/spec/api/storage_networks_api_spec.rb +70 -15
- data/spec/models/error_spec.rb +6 -4
- data/spec/models/nfs_permissions_create_spec.rb +9 -7
- data/spec/models/nfs_permissions_spec.rb +9 -7
- data/spec/models/nfs_permissions_update_spec.rb +9 -7
- data/spec/models/permissions_create_spec.rb +5 -3
- data/spec/models/permissions_spec.rb +5 -3
- data/spec/models/permissions_update_spec.rb +5 -3
- data/spec/models/status_spec.rb +4 -2
- data/spec/models/storage_network_create_spec.rb +14 -6
- data/spec/models/storage_network_spec.rb +19 -11
- data/spec/models/storage_network_update_spec.rb +6 -4
- data/spec/models/storage_network_volume_create_spec.rb +14 -6
- data/spec/models/tag_assignment_request_spec.rb +6 -4
- data/spec/models/tag_assignment_spec.rb +9 -7
- data/spec/models/volume_create_spec.rb +20 -6
- data/spec/models/volume_spec.rb +32 -12
- data/spec/models/volume_update_spec.rb +29 -3
- data/spec/spec_helper.rb +1 -1
- metadata +14 -18
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
@@ -6,7 +6,7 @@
|
|
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
|
|
@@ -102,6 +102,7 @@ module NetworkStorageApi
|
|
102
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
103
103
|
# @return Array for valid properties with the reasons
|
104
104
|
def list_invalid_properties
|
105
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
105
106
|
invalid_properties = Array.new
|
106
107
|
if !@name.nil? && @name.to_s.length > 100
|
107
108
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
@@ -111,6 +112,11 @@ module NetworkStorageApi
|
|
111
112
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
112
113
|
end
|
113
114
|
|
115
|
+
pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
|
116
|
+
if !@name.nil? && @name !~ pattern
|
117
|
+
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
118
|
+
end
|
119
|
+
|
114
120
|
if !@description.nil? && @description.to_s.length > 250
|
115
121
|
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 250.')
|
116
122
|
end
|
@@ -138,8 +144,10 @@ module NetworkStorageApi
|
|
138
144
|
# Check to see if the all the properties in the model are valid
|
139
145
|
# @return true if the model is valid
|
140
146
|
def valid?
|
147
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
141
148
|
return false if !@name.nil? && @name.to_s.length > 100
|
142
149
|
return false if !@name.nil? && @name.to_s.length < 1
|
150
|
+
return false if !@name.nil? && @name !~ Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
|
143
151
|
return false if !@description.nil? && @description.to_s.length > 250
|
144
152
|
return false if !@capacity_in_gb.nil? && @capacity_in_gb < 2000
|
145
153
|
return false if !@path_suffix.nil? && @path_suffix.to_s.length > 27
|
@@ -151,21 +159,34 @@ module NetworkStorageApi
|
|
151
159
|
# Custom attribute writer method with validation
|
152
160
|
# @param [Object] name Value to be assigned
|
153
161
|
def name=(name)
|
154
|
-
if
|
162
|
+
if name.nil?
|
163
|
+
fail ArgumentError, 'name cannot be nil'
|
164
|
+
end
|
165
|
+
|
166
|
+
if name.to_s.length > 100
|
155
167
|
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
|
156
168
|
end
|
157
169
|
|
158
|
-
if
|
170
|
+
if name.to_s.length < 1
|
159
171
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
160
172
|
end
|
161
173
|
|
174
|
+
pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
|
175
|
+
if name !~ pattern
|
176
|
+
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
177
|
+
end
|
178
|
+
|
162
179
|
@name = name
|
163
180
|
end
|
164
181
|
|
165
182
|
# Custom attribute writer method with validation
|
166
183
|
# @param [Object] description Value to be assigned
|
167
184
|
def description=(description)
|
168
|
-
if
|
185
|
+
if description.nil?
|
186
|
+
fail ArgumentError, 'description cannot be nil'
|
187
|
+
end
|
188
|
+
|
189
|
+
if description.to_s.length > 250
|
169
190
|
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 250.'
|
170
191
|
end
|
171
192
|
|
@@ -175,7 +196,11 @@ module NetworkStorageApi
|
|
175
196
|
# Custom attribute writer method with validation
|
176
197
|
# @param [Object] capacity_in_gb Value to be assigned
|
177
198
|
def capacity_in_gb=(capacity_in_gb)
|
178
|
-
if
|
199
|
+
if capacity_in_gb.nil?
|
200
|
+
fail ArgumentError, 'capacity_in_gb cannot be nil'
|
201
|
+
end
|
202
|
+
|
203
|
+
if capacity_in_gb < 2000
|
179
204
|
fail ArgumentError, 'invalid value for "capacity_in_gb", must be greater than or equal to 2000.'
|
180
205
|
end
|
181
206
|
|
@@ -185,16 +210,20 @@ module NetworkStorageApi
|
|
185
210
|
# Custom attribute writer method with validation
|
186
211
|
# @param [Object] path_suffix Value to be assigned
|
187
212
|
def path_suffix=(path_suffix)
|
188
|
-
if
|
213
|
+
if path_suffix.nil?
|
214
|
+
fail ArgumentError, 'path_suffix cannot be nil'
|
215
|
+
end
|
216
|
+
|
217
|
+
if path_suffix.to_s.length > 27
|
189
218
|
fail ArgumentError, 'invalid value for "path_suffix", the character length must be smaller than or equal to 27.'
|
190
219
|
end
|
191
220
|
|
192
|
-
if
|
221
|
+
if path_suffix.to_s.length < 0
|
193
222
|
fail ArgumentError, 'invalid value for "path_suffix", the character length must be great than or equal to 0.'
|
194
223
|
end
|
195
224
|
|
196
225
|
pattern = Regexp.new(/^(\/[\w-]+)+$|^$/)
|
197
|
-
if
|
226
|
+
if path_suffix !~ pattern
|
198
227
|
fail ArgumentError, "invalid value for \"path_suffix\", must conform to the pattern #{pattern}."
|
199
228
|
end
|
200
229
|
|
@@ -229,37 +258,30 @@ module NetworkStorageApi
|
|
229
258
|
# @param [Hash] attributes Model attributes in the form of hash
|
230
259
|
# @return [Object] Returns the model itself
|
231
260
|
def self.build_from_hash(attributes)
|
232
|
-
new.build_from_hash(attributes)
|
233
|
-
end
|
234
|
-
|
235
|
-
# Builds the object from hash
|
236
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
237
|
-
# @return [Object] Returns the model itself
|
238
|
-
def build_from_hash(attributes)
|
239
261
|
return nil unless attributes.is_a?(Hash)
|
240
262
|
attributes = attributes.transform_keys(&:to_sym)
|
241
|
-
|
242
|
-
|
243
|
-
|
263
|
+
transformed_hash = {}
|
264
|
+
openapi_types.each_pair do |key, type|
|
265
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
266
|
+
transformed_hash["#{key}"] = nil
|
244
267
|
elsif type =~ /\AArray<(.*)>/i
|
245
268
|
# check to ensure the input is an array given that the attribute
|
246
269
|
# is documented as an array but the input is not
|
247
|
-
if attributes[
|
248
|
-
|
270
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
271
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
249
272
|
end
|
250
|
-
elsif !attributes[
|
251
|
-
|
273
|
+
elsif !attributes[attribute_map[key]].nil?
|
274
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
252
275
|
end
|
253
276
|
end
|
254
|
-
|
255
|
-
self
|
277
|
+
new(transformed_hash)
|
256
278
|
end
|
257
279
|
|
258
280
|
# Deserializes the data based on type
|
259
281
|
# @param string type Data type
|
260
282
|
# @param string value Value to be deserialized
|
261
283
|
# @return [Object] Deserialized data
|
262
|
-
def _deserialize(type, value)
|
284
|
+
def self._deserialize(type, value)
|
263
285
|
case type.to_sym
|
264
286
|
when :Time
|
265
287
|
Time.parse(value)
|
@@ -294,7 +316,7 @@ module NetworkStorageApi
|
|
294
316
|
else # model
|
295
317
|
# models (e.g. Pet) or oneOf
|
296
318
|
klass = NetworkStorageApi.const_get(type)
|
297
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
319
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
298
320
|
end
|
299
321
|
end
|
300
322
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: 1.0
|
9
9
|
Contact: support@phoenixnap.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version:
|
11
|
+
OpenAPI Generator version: 7.2.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.summary = "Network Storage API Ruby Gem"
|
26
26
|
s.description = "Network Storage API Ruby Gem"
|
27
27
|
s.license = "MPL-2.0"
|
28
|
-
s.required_ruby_version = ">= 2.
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
29
29
|
s.metadata = { "source_code_uri" => "https://github.com/phoenixnap/ruby-sdk-bmc" }
|
30
30
|
|
31
31
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
@@ -6,7 +6,7 @@
|
|
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
|
|
@@ -40,81 +40,136 @@ describe 'StorageNetworksApi' do
|
|
40
40
|
# @return [Array<StorageNetwork>]
|
41
41
|
describe 'storage_networks_get test' do
|
42
42
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
47
|
# unit tests for storage_networks_id_delete
|
48
48
|
# Delete a storage network and its volume.
|
49
49
|
# Delete a storage network and its volume. A storage network can only be removed if it's not in 'BUSY' state. Billing stops on storage network deletion.
|
50
|
-
# @param
|
50
|
+
# @param storage_id ID of the storage.
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [nil]
|
53
53
|
describe 'storage_networks_id_delete test' do
|
54
54
|
it 'should work' do
|
55
|
-
# assertion here. ref: https://
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
59
|
# unit tests for storage_networks_id_get
|
60
60
|
# Get storage network details.
|
61
61
|
# Get storage network details.
|
62
|
-
# @param
|
62
|
+
# @param storage_id ID of the storage.
|
63
63
|
# @param [Hash] opts the optional parameters
|
64
64
|
# @return [StorageNetwork]
|
65
65
|
describe 'storage_networks_id_get test' do
|
66
66
|
it 'should work' do
|
67
|
-
# assertion here. ref: https://
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
71
|
# unit tests for storage_networks_id_patch
|
72
72
|
# Update storage network details.
|
73
73
|
# Update storage network details.
|
74
|
-
# @param
|
74
|
+
# @param storage_id ID of the storage.
|
75
|
+
# @param storage_network_update Storage network to be updated.
|
75
76
|
# @param [Hash] opts the optional parameters
|
76
|
-
# @option opts [StorageNetworkUpdate] :storage_network_update Storage network to be updated.
|
77
77
|
# @return [StorageNetwork]
|
78
78
|
describe 'storage_networks_id_patch test' do
|
79
79
|
it 'should work' do
|
80
|
-
# assertion here. ref: https://
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
84
|
# unit tests for storage_networks_post
|
85
85
|
# Create a storage network and volume.
|
86
86
|
# Create a storage network and volume.
|
87
|
+
# @param storage_network_create
|
87
88
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [StorageNetworkCreate] :storage_network_create
|
89
89
|
# @return [StorageNetwork]
|
90
90
|
describe 'storage_networks_post test' do
|
91
91
|
it 'should work' do
|
92
|
-
# assertion here. ref: https://
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
96
|
# unit tests for storage_networks_storage_network_id_volumes_get
|
97
97
|
# Display one or more volumes belonging to a storage network.
|
98
98
|
# Display one or more volumes belonging to a storage network.
|
99
|
-
# @param
|
99
|
+
# @param storage_id ID of the storage.
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [Array<String>] :tag A list of query parameters related to tags in the form of tagName.tagValue
|
101
102
|
# @return [Array<Volume>]
|
102
103
|
describe 'storage_networks_storage_network_id_volumes_get test' do
|
103
104
|
it 'should work' do
|
104
|
-
# assertion here. ref: https://
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# unit tests for storage_networks_storage_network_id_volumes_post
|
110
|
+
# Create a volume belonging to a storage network.
|
111
|
+
# Create a volume belonging to a storage network.
|
112
|
+
# @param storage_id ID of the storage.
|
113
|
+
# @param volume_create
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @return [Volume]
|
116
|
+
describe 'storage_networks_storage_network_id_volumes_post test' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# unit tests for storage_networks_storage_network_id_volumes_volume_id_delete
|
123
|
+
# Delete a Storage Network's Volume
|
124
|
+
# Delete a Storage Network's Volume
|
125
|
+
# @param storage_id ID of the storage.
|
126
|
+
# @param volume_id ID of volume.
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @return [nil]
|
129
|
+
describe 'storage_networks_storage_network_id_volumes_volume_id_delete test' do
|
130
|
+
it 'should work' do
|
131
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
105
132
|
end
|
106
133
|
end
|
107
134
|
|
108
135
|
# unit tests for storage_networks_storage_network_id_volumes_volume_id_get
|
109
136
|
# Get a storage network's volume details.
|
110
137
|
# Get a storage network's volume details.
|
111
|
-
# @param
|
138
|
+
# @param storage_id ID of the storage.
|
112
139
|
# @param volume_id ID of volume.
|
113
140
|
# @param [Hash] opts the optional parameters
|
114
141
|
# @return [Volume]
|
115
142
|
describe 'storage_networks_storage_network_id_volumes_volume_id_get test' do
|
116
143
|
it 'should work' do
|
117
|
-
# assertion here. ref: https://
|
144
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# unit tests for storage_networks_storage_network_id_volumes_volume_id_patch
|
149
|
+
# Update a storage network's volume details.
|
150
|
+
# Update a storage network's volume details.
|
151
|
+
# @param storage_id ID of the storage.
|
152
|
+
# @param volume_id ID of volume.
|
153
|
+
# @param volume_update Storage network volume to be updated.
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @return [Volume]
|
156
|
+
describe 'storage_networks_storage_network_id_volumes_volume_id_patch test' do
|
157
|
+
it 'should work' do
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# unit tests for storage_networks_storage_network_id_volumes_volume_id_tags_put
|
163
|
+
# Overwrites tags assigned for the volume.
|
164
|
+
# Overwrites tags assigned for the volume.
|
165
|
+
# @param storage_id ID of the storage.
|
166
|
+
# @param volume_id ID of volume.
|
167
|
+
# @param tag_assignment_request Tags to assign to the volume.
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [Volume]
|
170
|
+
describe 'storage_networks_storage_network_id_volumes_volume_id_tags_put test' do
|
171
|
+
it 'should work' do
|
172
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
118
173
|
end
|
119
174
|
end
|
120
175
|
|
data/spec/models/error_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
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 NetworkStorageApi::Error do
|
|
22
22
|
|
23
23
|
describe 'test an instance of Error' do
|
24
24
|
it 'should create an instance of Error' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkStorageApi::Error)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "message"' 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 "validation_errors"' 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
|
|
@@ -6,7 +6,7 @@
|
|
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,36 +22,38 @@ describe NetworkStorageApi::NfsPermissionsCreate do
|
|
22
22
|
|
23
23
|
describe 'test an instance of NfsPermissionsCreate' do
|
24
24
|
it 'should create an instance of NfsPermissionsCreate' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkStorageApi::NfsPermissionsCreate)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "read_write"' 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 "read_only"' 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 "root_squash"' 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 "no_squash"' 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 "all_squash"' 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
|
|
@@ -6,7 +6,7 @@
|
|
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,36 +22,38 @@ describe NetworkStorageApi::NfsPermissions do
|
|
22
22
|
|
23
23
|
describe 'test an instance of NfsPermissions' do
|
24
24
|
it 'should create an instance of NfsPermissions' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkStorageApi::NfsPermissions)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "read_write"' 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 "read_only"' 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 "root_squash"' 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 "no_squash"' 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 "all_squash"' 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
|
|
@@ -6,7 +6,7 @@
|
|
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,36 +22,38 @@ describe NetworkStorageApi::NfsPermissionsUpdate do
|
|
22
22
|
|
23
23
|
describe 'test an instance of NfsPermissionsUpdate' do
|
24
24
|
it 'should create an instance of NfsPermissionsUpdate' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkStorageApi::NfsPermissionsUpdate)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "read_write"' 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 "read_only"' 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 "root_squash"' 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 "no_squash"' 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 "all_squash"' 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
|
|
@@ -6,7 +6,7 @@
|
|
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 NetworkStorageApi::PermissionsCreate do
|
|
22
22
|
|
23
23
|
describe 'test an instance of PermissionsCreate' do
|
24
24
|
it 'should create an instance of PermissionsCreate' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkStorageApi::PermissionsCreate)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "nfs"' 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
|
|
@@ -6,7 +6,7 @@
|
|
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 NetworkStorageApi::Permissions do
|
|
22
22
|
|
23
23
|
describe 'test an instance of Permissions' do
|
24
24
|
it 'should create an instance of Permissions' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkStorageApi::Permissions)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "nfs"' 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
|
|
@@ -6,7 +6,7 @@
|
|
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 NetworkStorageApi::PermissionsUpdate do
|
|
22
22
|
|
23
23
|
describe 'test an instance of PermissionsUpdate' do
|
24
24
|
it 'should create an instance of PermissionsUpdate' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(NetworkStorageApi::PermissionsUpdate)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "nfs"' 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
|
|