pnap_network_storage_api 1.0.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 (45) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +158 -0
  4. data/Rakefile +10 -0
  5. data/VERSION +1 -0
  6. data/docs/Error.md +20 -0
  7. data/docs/NfsPermissions.md +26 -0
  8. data/docs/Permissions.md +18 -0
  9. data/docs/Status.md +15 -0
  10. data/docs/StorageNetwork.md +34 -0
  11. data/docs/StorageNetworkCreate.md +24 -0
  12. data/docs/StorageNetworkUpdate.md +20 -0
  13. data/docs/StorageNetworksApi.md +506 -0
  14. data/docs/Volume.md +36 -0
  15. data/docs/VolumeCreate.md +24 -0
  16. data/lib/pnap_network_storage_api/api/storage_networks_api.rb +474 -0
  17. data/lib/pnap_network_storage_api/api_client.rb +392 -0
  18. data/lib/pnap_network_storage_api/api_error.rb +57 -0
  19. data/lib/pnap_network_storage_api/configuration.rb +278 -0
  20. data/lib/pnap_network_storage_api/models/error.rb +236 -0
  21. data/lib/pnap_network_storage_api/models/nfs_permissions.rb +270 -0
  22. data/lib/pnap_network_storage_api/models/permissions.rb +219 -0
  23. data/lib/pnap_network_storage_api/models/status.rb +38 -0
  24. data/lib/pnap_network_storage_api/models/storage_network.rb +303 -0
  25. data/lib/pnap_network_storage_api/models/storage_network_create.rb +338 -0
  26. data/lib/pnap_network_storage_api/models/storage_network_update.rb +269 -0
  27. data/lib/pnap_network_storage_api/models/volume.rb +307 -0
  28. data/lib/pnap_network_storage_api/models/volume_create.rb +357 -0
  29. data/lib/pnap_network_storage_api/version.rb +19 -0
  30. data/lib/pnap_network_storage_api.rb +49 -0
  31. data/pnap_network_storage_api.gemspec +39 -0
  32. data/spec/api/storage_networks_api_spec.rb +121 -0
  33. data/spec/api_client_spec.rb +226 -0
  34. data/spec/configuration_spec.rb +42 -0
  35. data/spec/models/error_spec.rb +40 -0
  36. data/spec/models/nfs_permissions_spec.rb +58 -0
  37. data/spec/models/permissions_spec.rb +34 -0
  38. data/spec/models/status_spec.rb +28 -0
  39. data/spec/models/storage_network_create_spec.rb +52 -0
  40. data/spec/models/storage_network_spec.rb +82 -0
  41. data/spec/models/storage_network_update_spec.rb +40 -0
  42. data/spec/models/volume_create_spec.rb +52 -0
  43. data/spec/models/volume_spec.rb +88 -0
  44. data/spec/spec_helper.rb +111 -0
  45. metadata +140 -0
@@ -0,0 +1,357 @@
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: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module NetworkStorageApi
17
+ # Create Volume.
18
+ class VolumeCreate
19
+ # Volume friendly name.
20
+ attr_accessor :name
21
+
22
+ # Volume description.
23
+ attr_accessor :description
24
+
25
+ # Last part of volume's path.
26
+ attr_accessor :path_suffix
27
+
28
+ # Capacity of Volume in GB. Currently only whole numbers and multiples of 1000GB are supported.
29
+ attr_accessor :capacity_in_gb
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'name' => :'name',
35
+ :'description' => :'description',
36
+ :'path_suffix' => :'pathSuffix',
37
+ :'capacity_in_gb' => :'capacityInGb'
38
+ }
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'name' => :'String',
50
+ :'description' => :'String',
51
+ :'path_suffix' => :'String',
52
+ :'capacity_in_gb' => :'Integer'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `NetworkStorageApi::VolumeCreate` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NetworkStorageApi::VolumeCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'name')
78
+ self.name = attributes[:'name']
79
+ end
80
+
81
+ if attributes.key?(:'description')
82
+ self.description = attributes[:'description']
83
+ end
84
+
85
+ if attributes.key?(:'path_suffix')
86
+ self.path_suffix = attributes[:'path_suffix']
87
+ end
88
+
89
+ if attributes.key?(:'capacity_in_gb')
90
+ self.capacity_in_gb = attributes[:'capacity_in_gb']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ if @name.nil?
99
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
100
+ end
101
+
102
+ if @name.to_s.length > 100
103
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
104
+ end
105
+
106
+ if @name.to_s.length < 1
107
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
108
+ end
109
+
110
+ if !@description.nil? && @description.to_s.length > 250
111
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 250.')
112
+ end
113
+
114
+ if !@path_suffix.nil? && @path_suffix.to_s.length > 100
115
+ invalid_properties.push('invalid value for "path_suffix", the character length must be smaller than or equal to 100.')
116
+ end
117
+
118
+ if !@path_suffix.nil? && @path_suffix.to_s.length < 1
119
+ invalid_properties.push('invalid value for "path_suffix", the character length must be great than or equal to 1.')
120
+ end
121
+
122
+ pattern = Regexp.new(/^(\/[\w-]+)+$/)
123
+ if !@path_suffix.nil? && @path_suffix !~ pattern
124
+ invalid_properties.push("invalid value for \"path_suffix\", must conform to the pattern #{pattern}.")
125
+ end
126
+
127
+ if @capacity_in_gb.nil?
128
+ invalid_properties.push('invalid value for "capacity_in_gb", capacity_in_gb cannot be nil.')
129
+ end
130
+
131
+ if @capacity_in_gb < 1000
132
+ invalid_properties.push('invalid value for "capacity_in_gb", must be greater than or equal to 1000.')
133
+ end
134
+
135
+ invalid_properties
136
+ end
137
+
138
+ # Check to see if the all the properties in the model are valid
139
+ # @return true if the model is valid
140
+ def valid?
141
+ return false if @name.nil?
142
+ return false if @name.to_s.length > 100
143
+ return false if @name.to_s.length < 1
144
+ return false if !@description.nil? && @description.to_s.length > 250
145
+ return false if !@path_suffix.nil? && @path_suffix.to_s.length > 100
146
+ return false if !@path_suffix.nil? && @path_suffix.to_s.length < 1
147
+ return false if !@path_suffix.nil? && @path_suffix !~ Regexp.new(/^(\/[\w-]+)+$/)
148
+ return false if @capacity_in_gb.nil?
149
+ return false if @capacity_in_gb < 1000
150
+ true
151
+ end
152
+
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] name Value to be assigned
155
+ def name=(name)
156
+ if name.nil?
157
+ fail ArgumentError, 'name cannot be nil'
158
+ end
159
+
160
+ if name.to_s.length > 100
161
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
162
+ end
163
+
164
+ if name.to_s.length < 1
165
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
166
+ end
167
+
168
+ @name = name
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] description Value to be assigned
173
+ def description=(description)
174
+ if !description.nil? && description.to_s.length > 250
175
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 250.'
176
+ end
177
+
178
+ @description = description
179
+ end
180
+
181
+ # Custom attribute writer method with validation
182
+ # @param [Object] path_suffix Value to be assigned
183
+ def path_suffix=(path_suffix)
184
+ if !path_suffix.nil? && path_suffix.to_s.length > 100
185
+ fail ArgumentError, 'invalid value for "path_suffix", the character length must be smaller than or equal to 100.'
186
+ end
187
+
188
+ if !path_suffix.nil? && path_suffix.to_s.length < 1
189
+ fail ArgumentError, 'invalid value for "path_suffix", the character length must be great than or equal to 1.'
190
+ end
191
+
192
+ pattern = Regexp.new(/^(\/[\w-]+)+$/)
193
+ if !path_suffix.nil? && path_suffix !~ pattern
194
+ fail ArgumentError, "invalid value for \"path_suffix\", must conform to the pattern #{pattern}."
195
+ end
196
+
197
+ @path_suffix = path_suffix
198
+ end
199
+
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] capacity_in_gb Value to be assigned
202
+ def capacity_in_gb=(capacity_in_gb)
203
+ if capacity_in_gb.nil?
204
+ fail ArgumentError, 'capacity_in_gb cannot be nil'
205
+ end
206
+
207
+ if capacity_in_gb < 1000
208
+ fail ArgumentError, 'invalid value for "capacity_in_gb", must be greater than or equal to 1000.'
209
+ end
210
+
211
+ @capacity_in_gb = capacity_in_gb
212
+ end
213
+
214
+ # Checks equality by comparing each attribute.
215
+ # @param [Object] Object to be compared
216
+ def ==(o)
217
+ return true if self.equal?(o)
218
+ self.class == o.class &&
219
+ name == o.name &&
220
+ description == o.description &&
221
+ path_suffix == o.path_suffix &&
222
+ capacity_in_gb == o.capacity_in_gb
223
+ end
224
+
225
+ # @see the `==` method
226
+ # @param [Object] Object to be compared
227
+ def eql?(o)
228
+ self == o
229
+ end
230
+
231
+ # Calculates hash code according to all attributes.
232
+ # @return [Integer] Hash code
233
+ def hash
234
+ [name, description, path_suffix, capacity_in_gb].hash
235
+ end
236
+
237
+ # Builds the object from hash
238
+ # @param [Hash] attributes Model attributes in the form of hash
239
+ # @return [Object] Returns the model itself
240
+ def self.build_from_hash(attributes)
241
+ new.build_from_hash(attributes)
242
+ end
243
+
244
+ # Builds the object from hash
245
+ # @param [Hash] attributes Model attributes in the form of hash
246
+ # @return [Object] Returns the model itself
247
+ def build_from_hash(attributes)
248
+ return nil unless attributes.is_a?(Hash)
249
+ self.class.openapi_types.each_pair do |key, type|
250
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
251
+ self.send("#{key}=", nil)
252
+ elsif type =~ /\AArray<(.*)>/i
253
+ # check to ensure the input is an array given that the attribute
254
+ # is documented as an array but the input is not
255
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
256
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
257
+ end
258
+ elsif !attributes[self.class.attribute_map[key]].nil?
259
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
260
+ end
261
+ end
262
+
263
+ self
264
+ end
265
+
266
+ # Deserializes the data based on type
267
+ # @param string type Data type
268
+ # @param string value Value to be deserialized
269
+ # @return [Object] Deserialized data
270
+ def _deserialize(type, value)
271
+ case type.to_sym
272
+ when :Time
273
+ Time.parse(value)
274
+ when :Date
275
+ Date.parse(value)
276
+ when :String
277
+ value.to_s
278
+ when :Integer
279
+ value.to_i
280
+ when :Float
281
+ value.to_f
282
+ when :Boolean
283
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
284
+ true
285
+ else
286
+ false
287
+ end
288
+ when :Object
289
+ # generic object (usually a Hash), return directly
290
+ value
291
+ when /\AArray<(?<inner_type>.+)>\z/
292
+ inner_type = Regexp.last_match[:inner_type]
293
+ value.map { |v| _deserialize(inner_type, v) }
294
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
295
+ k_type = Regexp.last_match[:k_type]
296
+ v_type = Regexp.last_match[:v_type]
297
+ {}.tap do |hash|
298
+ value.each do |k, v|
299
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
300
+ end
301
+ end
302
+ else # model
303
+ # models (e.g. Pet) or oneOf
304
+ klass = NetworkStorageApi.const_get(type)
305
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
306
+ end
307
+ end
308
+
309
+ # Returns the string representation of the object
310
+ # @return [String] String presentation of the object
311
+ def to_s
312
+ to_hash.to_s
313
+ end
314
+
315
+ # to_body is an alias to to_hash (backward compatibility)
316
+ # @return [Hash] Returns the object in the form of hash
317
+ def to_body
318
+ to_hash
319
+ end
320
+
321
+ # Returns the object in the form of hash
322
+ # @return [Hash] Returns the object in the form of hash
323
+ def to_hash
324
+ hash = {}
325
+ self.class.attribute_map.each_pair do |attr, param|
326
+ value = self.send(attr)
327
+ if value.nil?
328
+ is_nullable = self.class.openapi_nullable.include?(attr)
329
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
330
+ end
331
+
332
+ hash[param] = _to_hash(value)
333
+ end
334
+ hash
335
+ end
336
+
337
+ # Outputs non-array value in the form of hash
338
+ # For object, use to_hash. Otherwise, just return the value
339
+ # @param [Object] value Any valid value
340
+ # @return [Hash] Returns the value in the form of hash
341
+ def _to_hash(value)
342
+ if value.is_a?(Array)
343
+ value.compact.map { |v| _to_hash(v) }
344
+ elsif value.is_a?(Hash)
345
+ {}.tap do |hash|
346
+ value.each { |k, v| hash[k] = _to_hash(v) }
347
+ end
348
+ elsif value.respond_to? :to_hash
349
+ value.to_hash
350
+ else
351
+ value
352
+ end
353
+ end
354
+
355
+ end
356
+
357
+ end
@@ -0,0 +1,19 @@
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: 5.4.0
10
+
11
+ =end
12
+
13
+ def get_version()
14
+ return File.read(File.expand_path('../../../VERSION', __FILE__)).strip
15
+ end
16
+
17
+ module NetworkStorageApi
18
+ VERSION = get_version()
19
+ end
@@ -0,0 +1,49 @@
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: 5.4.0
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'pnap_network_storage_api/api_client'
15
+ require 'pnap_network_storage_api/api_error'
16
+ require 'pnap_network_storage_api/version'
17
+ require 'pnap_network_storage_api/configuration'
18
+
19
+ # Models
20
+ require 'pnap_network_storage_api/models/error'
21
+ require 'pnap_network_storage_api/models/nfs_permissions'
22
+ require 'pnap_network_storage_api/models/permissions'
23
+ require 'pnap_network_storage_api/models/status'
24
+ require 'pnap_network_storage_api/models/storage_network'
25
+ require 'pnap_network_storage_api/models/storage_network_create'
26
+ require 'pnap_network_storage_api/models/storage_network_update'
27
+ require 'pnap_network_storage_api/models/volume'
28
+ require 'pnap_network_storage_api/models/volume_create'
29
+
30
+ # APIs
31
+ require 'pnap_network_storage_api/api/storage_networks_api'
32
+
33
+ module NetworkStorageApi
34
+ class << self
35
+ # Customize default settings for the SDK using block.
36
+ # NetworkStorageApi.configure do |config|
37
+ # config.username = "xxx"
38
+ # config.password = "xxx"
39
+ # end
40
+ # If no block given, return the default Configuration object.
41
+ def configure
42
+ if block_given?
43
+ yield(Configuration.default)
44
+ else
45
+ Configuration.default
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Network Storage API
5
+
6
+ #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>
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: support@phoenixnap.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.4.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "pnap_network_storage_api/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "pnap_network_storage_api"
20
+ s.version = NetworkStorageApi::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["PhoenixNAP"]
23
+ s.email = ["support@phoenixnap.com"]
24
+ s.homepage = "https://phoenixnap.com/bare-metal-cloud"
25
+ s.summary = "Network Storage API Ruby Gem"
26
+ s.description = "Network Storage API Ruby Gem"
27
+ s.license = "MPL-2.0"
28
+ s.required_ruby_version = ">= 2.4"
29
+ s.metadata = { "source_code_uri" => "https://github.com/phoenixnap/ruby-sdk-bmc" }
30
+
31
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,121 @@
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: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for NetworkStorageApi::StorageNetworksApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'StorageNetworksApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = NetworkStorageApi::StorageNetworksApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of StorageNetworksApi' do
30
+ it 'should create an instance of StorageNetworksApi' do
31
+ expect(@api_instance).to be_instance_of(NetworkStorageApi::StorageNetworksApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for storage_networks_get
36
+ # List all storage networks.
37
+ # List all storage networks.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :location If present will filter the result by the given location.
40
+ # @return [Array<StorageNetwork>]
41
+ describe 'storage_networks_get test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for storage_networks_id_delete
48
+ # Delete a storage network and its volume.
49
+ # Delete a storage network and its volume. A storage network can only be removed if it&#39;s not in &#39;BUSY&#39; state. Billing stops on storage network deletion.
50
+ # @param storage_network_id ID of storage network.
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
53
+ describe 'storage_networks_id_delete test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for storage_networks_id_get
60
+ # Get storage network details.
61
+ # Get storage network details.
62
+ # @param storage_network_id ID of storage network.
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [StorageNetwork]
65
+ describe 'storage_networks_id_get test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for storage_networks_id_patch
72
+ # Update storage network details.
73
+ # Update storage network details.
74
+ # @param storage_network_id ID of storage network.
75
+ # @param [Hash] opts the optional parameters
76
+ # @option opts [StorageNetworkUpdate] :storage_network_update Storage network to be updated.
77
+ # @return [StorageNetwork]
78
+ describe 'storage_networks_id_patch test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for storage_networks_post
85
+ # Create a storage network and volume.
86
+ # Create a storage network and volume.
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [StorageNetworkCreate] :storage_network_create
89
+ # @return [StorageNetwork]
90
+ describe 'storage_networks_post test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ # unit tests for storage_networks_storage_network_id_volumes_get
97
+ # Display one or more volumes belonging to a storage network.
98
+ # Display one or more volumes belonging to a storage network.
99
+ # @param storage_network_id ID of storage network.
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [Array<Volume>]
102
+ describe 'storage_networks_storage_network_id_volumes_get test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ # unit tests for storage_networks_storage_network_id_volumes_volume_id_get
109
+ # Get a storage network&#39;s volume details.
110
+ # Get a storage network&#39;s volume details.
111
+ # @param storage_network_id ID of storage network.
112
+ # @param volume_id ID of volume.
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [Volume]
115
+ describe 'storage_networks_storage_network_id_volumes_volume_id_get test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ end