pnap_network_storage_api 2.0.4 → 2.0.5
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/VERSION +1 -1
- data/lib/pnap_network_storage_api/api/storage_networks_api.rb +12 -12
- data/lib/pnap_network_storage_api/api_client.rb +17 -14
- data/lib/pnap_network_storage_api/api_error.rb +1 -1
- data/lib/pnap_network_storage_api/api_model_base.rb +88 -0
- data/lib/pnap_network_storage_api/configuration.rb +11 -1
- data/lib/pnap_network_storage_api/models/error.rb +21 -78
- data/lib/pnap_network_storage_api/models/nfs_permissions.rb +11 -78
- data/lib/pnap_network_storage_api/models/nfs_permissions_create.rb +11 -78
- data/lib/pnap_network_storage_api/models/nfs_permissions_update.rb +11 -78
- data/lib/pnap_network_storage_api/models/permissions.rb +11 -78
- data/lib/pnap_network_storage_api/models/permissions_create.rb +11 -78
- data/lib/pnap_network_storage_api/models/permissions_update.rb +11 -78
- data/lib/pnap_network_storage_api/models/status.rb +1 -1
- data/lib/pnap_network_storage_api/models/storage_network.rb +11 -78
- data/lib/pnap_network_storage_api/models/storage_network_create.rb +23 -80
- data/lib/pnap_network_storage_api/models/storage_network_update.rb +13 -80
- data/lib/pnap_network_storage_api/models/storage_network_volume_create.rb +15 -82
- data/lib/pnap_network_storage_api/models/tag_assignment.rb +41 -78
- data/lib/pnap_network_storage_api/models/tag_assignment_request.rb +21 -78
- data/lib/pnap_network_storage_api/models/volume.rb +11 -78
- data/lib/pnap_network_storage_api/models/volume_create.rb +15 -82
- data/lib/pnap_network_storage_api/models/volume_update.rb +15 -82
- data/lib/pnap_network_storage_api/version.rb +1 -2
- data/lib/pnap_network_storage_api.rb +2 -1
- data/pnap_network_storage_api.gemspec +6 -6
- data/spec/api/storage_networks_api_spec.rb +1 -1
- data/spec/models/error_spec.rb +2 -2
- data/spec/models/nfs_permissions_create_spec.rb +2 -2
- data/spec/models/nfs_permissions_spec.rb +2 -2
- data/spec/models/nfs_permissions_update_spec.rb +2 -2
- data/spec/models/permissions_create_spec.rb +2 -2
- data/spec/models/permissions_spec.rb +2 -2
- data/spec/models/permissions_update_spec.rb +2 -2
- data/spec/models/status_spec.rb +2 -2
- data/spec/models/storage_network_create_spec.rb +2 -2
- data/spec/models/storage_network_spec.rb +2 -2
- data/spec/models/storage_network_update_spec.rb +2 -2
- data/spec/models/storage_network_volume_create_spec.rb +2 -2
- data/spec/models/tag_assignment_request_spec.rb +2 -2
- data/spec/models/tag_assignment_spec.rb +2 -2
- data/spec/models/volume_create_spec.rb +2 -2
- data/spec/models/volume_spec.rb +2 -2
- data/spec/models/volume_update_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +18 -14
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NetworkStorageApi
|
|
17
17
|
# Update storage network volume.
|
|
18
|
-
class VolumeUpdate
|
|
18
|
+
class VolumeUpdate < ApiModelBase
|
|
19
19
|
# Volume friendly name.
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
@@ -41,9 +41,14 @@ module NetworkStorageApi
|
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
# Returns attribute mapping this model knows about
|
|
45
|
+
def self.acceptable_attribute_map
|
|
46
|
+
attribute_map
|
|
47
|
+
end
|
|
48
|
+
|
|
44
49
|
# Returns all the JSON keys this model knows about
|
|
45
50
|
def self.acceptable_attributes
|
|
46
|
-
|
|
51
|
+
acceptable_attribute_map.values
|
|
47
52
|
end
|
|
48
53
|
|
|
49
54
|
# Attribute type mapping.
|
|
@@ -71,9 +76,10 @@ module NetworkStorageApi
|
|
|
71
76
|
end
|
|
72
77
|
|
|
73
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
74
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
|
-
if (!
|
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkStorageApi::VolumeUpdate`. Please check the name to make sure it's valid. List of attributes: " +
|
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkStorageApi::VolumeUpdate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
77
83
|
end
|
|
78
84
|
h[k.to_sym] = v
|
|
79
85
|
}
|
|
@@ -109,7 +115,7 @@ module NetworkStorageApi
|
|
|
109
115
|
end
|
|
110
116
|
|
|
111
117
|
if !@name.nil? && @name.to_s.length < 1
|
|
112
|
-
invalid_properties.push('invalid value for "name", the character length must be
|
|
118
|
+
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
113
119
|
end
|
|
114
120
|
|
|
115
121
|
pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
|
|
@@ -130,7 +136,7 @@ module NetworkStorageApi
|
|
|
130
136
|
end
|
|
131
137
|
|
|
132
138
|
if !@path_suffix.nil? && @path_suffix.to_s.length < 0
|
|
133
|
-
invalid_properties.push('invalid value for "path_suffix", the character length must be
|
|
139
|
+
invalid_properties.push('invalid value for "path_suffix", the character length must be greater than or equal to 0.')
|
|
134
140
|
end
|
|
135
141
|
|
|
136
142
|
pattern = Regexp.new(/^(\/[\w-]+)+$|^$/)
|
|
@@ -168,7 +174,7 @@ module NetworkStorageApi
|
|
|
168
174
|
end
|
|
169
175
|
|
|
170
176
|
if name.to_s.length < 1
|
|
171
|
-
fail ArgumentError, 'invalid value for "name", the character length must be
|
|
177
|
+
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
172
178
|
end
|
|
173
179
|
|
|
174
180
|
pattern = Regexp.new(/^(?=.*[a-zA-Z])([a-zA-Z0-9(). -])+$/)
|
|
@@ -219,7 +225,7 @@ module NetworkStorageApi
|
|
|
219
225
|
end
|
|
220
226
|
|
|
221
227
|
if path_suffix.to_s.length < 0
|
|
222
|
-
fail ArgumentError, 'invalid value for "path_suffix", the character length must be
|
|
228
|
+
fail ArgumentError, 'invalid value for "path_suffix", the character length must be greater than or equal to 0.'
|
|
223
229
|
end
|
|
224
230
|
|
|
225
231
|
pattern = Regexp.new(/^(\/[\w-]+)+$|^$/)
|
|
@@ -277,61 +283,6 @@ module NetworkStorageApi
|
|
|
277
283
|
new(transformed_hash)
|
|
278
284
|
end
|
|
279
285
|
|
|
280
|
-
# Deserializes the data based on type
|
|
281
|
-
# @param string type Data type
|
|
282
|
-
# @param string value Value to be deserialized
|
|
283
|
-
# @return [Object] Deserialized data
|
|
284
|
-
def self._deserialize(type, value)
|
|
285
|
-
case type.to_sym
|
|
286
|
-
when :Time
|
|
287
|
-
Time.parse(value)
|
|
288
|
-
when :Date
|
|
289
|
-
Date.parse(value)
|
|
290
|
-
when :String
|
|
291
|
-
value.to_s
|
|
292
|
-
when :Integer
|
|
293
|
-
value.to_i
|
|
294
|
-
when :Float
|
|
295
|
-
value.to_f
|
|
296
|
-
when :Boolean
|
|
297
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
298
|
-
true
|
|
299
|
-
else
|
|
300
|
-
false
|
|
301
|
-
end
|
|
302
|
-
when :Object
|
|
303
|
-
# generic object (usually a Hash), return directly
|
|
304
|
-
value
|
|
305
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
306
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
307
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
308
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
309
|
-
k_type = Regexp.last_match[:k_type]
|
|
310
|
-
v_type = Regexp.last_match[:v_type]
|
|
311
|
-
{}.tap do |hash|
|
|
312
|
-
value.each do |k, v|
|
|
313
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
314
|
-
end
|
|
315
|
-
end
|
|
316
|
-
else # model
|
|
317
|
-
# models (e.g. Pet) or oneOf
|
|
318
|
-
klass = NetworkStorageApi.const_get(type)
|
|
319
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
320
|
-
end
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
# Returns the string representation of the object
|
|
324
|
-
# @return [String] String presentation of the object
|
|
325
|
-
def to_s
|
|
326
|
-
to_hash.to_s
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
330
|
-
# @return [Hash] Returns the object in the form of hash
|
|
331
|
-
def to_body
|
|
332
|
-
to_hash
|
|
333
|
-
end
|
|
334
|
-
|
|
335
286
|
# Returns the object in the form of hash
|
|
336
287
|
# @return [Hash] Returns the object in the form of hash
|
|
337
288
|
def to_hash
|
|
@@ -348,24 +299,6 @@ module NetworkStorageApi
|
|
|
348
299
|
hash
|
|
349
300
|
end
|
|
350
301
|
|
|
351
|
-
# Outputs non-array value in the form of hash
|
|
352
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
353
|
-
# @param [Object] value Any valid value
|
|
354
|
-
# @return [Hash] Returns the value in the form of hash
|
|
355
|
-
def _to_hash(value)
|
|
356
|
-
if value.is_a?(Array)
|
|
357
|
-
value.compact.map { |v| _to_hash(v) }
|
|
358
|
-
elsif value.is_a?(Hash)
|
|
359
|
-
{}.tap do |hash|
|
|
360
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
361
|
-
end
|
|
362
|
-
elsif value.respond_to? :to_hash
|
|
363
|
-
value.to_hash
|
|
364
|
-
else
|
|
365
|
-
value
|
|
366
|
-
end
|
|
367
|
-
end
|
|
368
|
-
|
|
369
302
|
end
|
|
370
303
|
|
|
371
304
|
end
|
|
@@ -6,13 +6,14 @@
|
|
|
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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
# Common files
|
|
14
14
|
require 'pnap_network_storage_api/api_client'
|
|
15
15
|
require 'pnap_network_storage_api/api_error'
|
|
16
|
+
require 'pnap_network_storage_api/api_model_base'
|
|
16
17
|
require 'pnap_network_storage_api/version'
|
|
17
18
|
require 'pnap_network_storage_api/configuration'
|
|
18
19
|
|
|
@@ -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
|
-
|
|
11
|
+
Generator version: 7.20.0
|
|
12
12
|
|
|
13
13
|
=end
|
|
14
14
|
|
|
@@ -19,14 +19,14 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.name = "pnap_network_storage_api"
|
|
20
20
|
s.version = NetworkStorageApi::VERSION
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
|
-
s.authors = ["
|
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
|
23
23
|
s.email = ["support@phoenixnap.com"]
|
|
24
|
-
s.homepage = "https://
|
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
|
25
25
|
s.summary = "Network Storage API Ruby Gem"
|
|
26
|
-
s.description = "Network Storage API
|
|
26
|
+
s.description = "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> "
|
|
27
27
|
s.license = "MPL-2.0"
|
|
28
28
|
s.required_ruby_version = ">= 2.7"
|
|
29
|
-
s.metadata = {
|
|
29
|
+
s.metadata = {}
|
|
30
30
|
|
|
31
31
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
32
32
|
|
|
@@ -36,4 +36,4 @@ Gem::Specification.new do |s|
|
|
|
36
36
|
s.test_files = `find spec/*`.split("\n")
|
|
37
37
|
s.executables = []
|
|
38
38
|
s.require_paths = ["lib"]
|
|
39
|
-
end
|
|
39
|
+
end
|
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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::Error do
|
|
21
|
-
let(:instance) { NetworkStorageApi::Error.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::Error.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Error' do
|
|
24
24
|
it 'should create an instance of Error' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::NfsPermissionsCreate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::NfsPermissionsCreate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::NfsPermissionsCreate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of NfsPermissionsCreate' do
|
|
24
24
|
it 'should create an instance of NfsPermissionsCreate' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::NfsPermissions do
|
|
21
|
-
let(:instance) { NetworkStorageApi::NfsPermissions.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::NfsPermissions.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of NfsPermissions' do
|
|
24
24
|
it 'should create an instance of NfsPermissions' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::NfsPermissionsUpdate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::NfsPermissionsUpdate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::NfsPermissionsUpdate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of NfsPermissionsUpdate' do
|
|
24
24
|
it 'should create an instance of NfsPermissionsUpdate' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::PermissionsCreate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::PermissionsCreate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::PermissionsCreate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of PermissionsCreate' do
|
|
24
24
|
it 'should create an instance of PermissionsCreate' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::Permissions do
|
|
21
|
-
let(:instance) { NetworkStorageApi::Permissions.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::Permissions.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Permissions' do
|
|
24
24
|
it 'should create an instance of Permissions' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::PermissionsUpdate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::PermissionsUpdate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::PermissionsUpdate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of PermissionsUpdate' do
|
|
24
24
|
it 'should create an instance of PermissionsUpdate' do
|
data/spec/models/status_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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::Status do
|
|
21
|
-
let(:instance) { NetworkStorageApi::Status.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::Status.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Status' do
|
|
24
24
|
it 'should create an instance of Status' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::StorageNetworkCreate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::StorageNetworkCreate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::StorageNetworkCreate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of StorageNetworkCreate' do
|
|
24
24
|
it 'should create an instance of StorageNetworkCreate' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::StorageNetwork do
|
|
21
|
-
let(:instance) { NetworkStorageApi::StorageNetwork.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::StorageNetwork.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of StorageNetwork' do
|
|
24
24
|
it 'should create an instance of StorageNetwork' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::StorageNetworkUpdate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::StorageNetworkUpdate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::StorageNetworkUpdate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of StorageNetworkUpdate' do
|
|
24
24
|
it 'should create an instance of StorageNetworkUpdate' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::StorageNetworkVolumeCreate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::StorageNetworkVolumeCreate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::StorageNetworkVolumeCreate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of StorageNetworkVolumeCreate' do
|
|
24
24
|
it 'should create an instance of StorageNetworkVolumeCreate' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::TagAssignmentRequest do
|
|
21
|
-
let(:instance) { NetworkStorageApi::TagAssignmentRequest.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::TagAssignmentRequest.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of TagAssignmentRequest' do
|
|
24
24
|
it 'should create an instance of TagAssignmentRequest' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::TagAssignment do
|
|
21
|
-
let(:instance) { NetworkStorageApi::TagAssignment.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::TagAssignment.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of TagAssignment' do
|
|
24
24
|
it 'should create an instance of TagAssignment' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::VolumeCreate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::VolumeCreate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::VolumeCreate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of VolumeCreate' do
|
|
24
24
|
it 'should create an instance of VolumeCreate' do
|
data/spec/models/volume_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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::Volume do
|
|
21
|
-
let(:instance) { NetworkStorageApi::Volume.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::Volume.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Volume' do
|
|
24
24
|
it 'should create an instance of Volume' do
|
|
@@ -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
|
-
|
|
9
|
+
Generator version: 7.20.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe NetworkStorageApi::VolumeUpdate do
|
|
21
|
-
let(:instance) { NetworkStorageApi::VolumeUpdate.new }
|
|
21
|
+
#let(:instance) { NetworkStorageApi::VolumeUpdate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of VolumeUpdate' do
|
|
24
24
|
it 'should create an instance of VolumeUpdate' do
|
data/spec/spec_helper.rb
CHANGED
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: 2.0.
|
|
4
|
+
version: 2.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -50,7 +50,11 @@ dependencies:
|
|
|
50
50
|
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: 3.6.0
|
|
53
|
-
description:
|
|
53
|
+
description: 'Create, list, edit, and delete storage networks with the Network Storage
|
|
54
|
+
API. Use storage networks to expand storage capacity on a private network. <br>
|
|
55
|
+
<span class=''pnap-api-knowledge-base-link''> Knowledge base articles to help you
|
|
56
|
+
can be found <a href=''https://phoenixnap.com/kb/bare-metal-cloud-storage'' target=''_blank''>here</a>
|
|
57
|
+
</span> <br> <b>All URLs are relative to (https://api.phoenixnap.com/network-storage/v1/)</b> '
|
|
54
58
|
email:
|
|
55
59
|
- support@phoenixnap.com
|
|
56
60
|
executables: []
|
|
@@ -83,6 +87,7 @@ files:
|
|
|
83
87
|
- lib/pnap_network_storage_api/api/storage_networks_api.rb
|
|
84
88
|
- lib/pnap_network_storage_api/api_client.rb
|
|
85
89
|
- lib/pnap_network_storage_api/api_error.rb
|
|
90
|
+
- lib/pnap_network_storage_api/api_model_base.rb
|
|
86
91
|
- lib/pnap_network_storage_api/configuration.rb
|
|
87
92
|
- lib/pnap_network_storage_api/models/error.rb
|
|
88
93
|
- lib/pnap_network_storage_api/models/nfs_permissions.rb
|
|
@@ -122,11 +127,10 @@ files:
|
|
|
122
127
|
- spec/models/volume_spec.rb
|
|
123
128
|
- spec/models/volume_update_spec.rb
|
|
124
129
|
- spec/spec_helper.rb
|
|
125
|
-
homepage: https://
|
|
130
|
+
homepage: https://openapi-generator.tech
|
|
126
131
|
licenses:
|
|
127
132
|
- MPL-2.0
|
|
128
|
-
metadata:
|
|
129
|
-
source_code_uri: https://github.com/phoenixnap/ruby-sdk-bmc
|
|
133
|
+
metadata: {}
|
|
130
134
|
post_install_message:
|
|
131
135
|
rdoc_options: []
|
|
132
136
|
require_paths:
|
|
@@ -149,20 +153,20 @@ summary: Network Storage API Ruby Gem
|
|
|
149
153
|
test_files:
|
|
150
154
|
- spec/api/storage_networks_api_spec.rb
|
|
151
155
|
- spec/models/error_spec.rb
|
|
156
|
+
- spec/models/storage_network_update_spec.rb
|
|
152
157
|
- spec/models/tag_assignment_spec.rb
|
|
153
|
-
- spec/models/permissions_update_spec.rb
|
|
154
|
-
- spec/models/volume_spec.rb
|
|
155
|
-
- spec/models/storage_network_spec.rb
|
|
156
158
|
- spec/models/volume_create_spec.rb
|
|
157
159
|
- spec/models/tag_assignment_request_spec.rb
|
|
158
|
-
- spec/models/volume_update_spec.rb
|
|
159
|
-
- spec/models/nfs_permissions_create_spec.rb
|
|
160
|
-
- spec/models/storage_network_volume_create_spec.rb
|
|
161
160
|
- spec/models/permissions_spec.rb
|
|
162
161
|
- spec/models/permissions_create_spec.rb
|
|
162
|
+
- spec/models/nfs_permissions_create_spec.rb
|
|
163
163
|
- spec/models/nfs_permissions_update_spec.rb
|
|
164
|
+
- spec/models/permissions_update_spec.rb
|
|
164
165
|
- spec/models/storage_network_create_spec.rb
|
|
165
|
-
- spec/models/
|
|
166
|
+
- spec/models/volume_update_spec.rb
|
|
167
|
+
- spec/models/storage_network_volume_create_spec.rb
|
|
168
|
+
- spec/models/storage_network_spec.rb
|
|
169
|
+
- spec/models/volume_spec.rb
|
|
166
170
|
- spec/models/status_spec.rb
|
|
167
171
|
- spec/models/nfs_permissions_spec.rb
|
|
168
172
|
- spec/spec_helper.rb
|