autosde_openapi_client 1.0.26 → 1.0.30

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 (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/docs/StorageHost.md +4 -0
  4. data/docs/StorageHostCreate.md +4 -0
  5. data/docs/StorageHostResponse.md +4 -0
  6. data/docs/StorageHostWWPNCandidates.md +20 -0
  7. data/docs/StorageHostWWPNCandidatesApi.md +72 -0
  8. data/lib/autosde_openapi_client.rb +2 -0
  9. data/lib/autosde_openapi_client/api/storage_host_wwpn_candidates_api.rb +75 -0
  10. data/lib/autosde_openapi_client/models/storage_host.rb +21 -1
  11. data/lib/autosde_openapi_client/models/storage_host_create.rb +21 -1
  12. data/lib/autosde_openapi_client/models/storage_host_response.rb +21 -1
  13. data/lib/autosde_openapi_client/models/storage_host_wwpn_candidates.rb +230 -0
  14. data/lib/autosde_openapi_client/version.rb +2 -2
  15. data/spec/api/abstract_capability_api_spec.rb +4 -4
  16. data/spec/api/account_api_spec.rb +4 -4
  17. data/spec/api/address_api_spec.rb +4 -4
  18. data/spec/api/authentication_api_spec.rb +4 -4
  19. data/spec/api/auto_sde_project_api_spec.rb +4 -4
  20. data/spec/api/auto_sde_role_api_spec.rb +4 -4
  21. data/spec/api/capability_translation_api_spec.rb +4 -4
  22. data/spec/api/host_api_spec.rb +4 -4
  23. data/spec/api/host_volume_connection_api_spec.rb +4 -4
  24. data/spec/api/job_api_spec.rb +4 -4
  25. data/spec/api/native_capability_api_spec.rb +4 -4
  26. data/spec/api/profile_api_spec.rb +4 -4
  27. data/spec/api/provisioning_strategy_api_spec.rb +4 -4
  28. data/spec/api/service_api_spec.rb +4 -4
  29. data/spec/api/service_resource_attachment_api_spec.rb +4 -4
  30. data/spec/api/snapshot_api_spec.rb +4 -4
  31. data/spec/api/storage_host_api_spec.rb +4 -4
  32. data/spec/api/storage_host_volume_mapping_api_spec.rb +8 -8
  33. data/spec/api/storage_host_wwpn_candidates_api_spec.rb +44 -0
  34. data/spec/api/storage_resource_api_spec.rb +4 -4
  35. data/spec/api/storage_system_api_spec.rb +4 -4
  36. data/spec/api/system_type_api_spec.rb +4 -4
  37. data/spec/api/volume_api_spec.rb +4 -4
  38. data/spec/api/volume_safe_delete_api_spec.rb +4 -4
  39. data/spec/models/abstract_capability_spec.rb +5 -5
  40. data/spec/models/account_post_request_spec.rb +5 -5
  41. data/spec/models/account_post_response_spec.rb +5 -5
  42. data/spec/models/account_spec.rb +5 -5
  43. data/spec/models/address_create_spec.rb +5 -5
  44. data/spec/models/address_spec.rb +5 -5
  45. data/spec/models/auth_response_spec.rb +5 -5
  46. data/spec/models/authentication_spec.rb +5 -5
  47. data/spec/models/auto_sde_project_spec.rb +5 -5
  48. data/spec/models/auto_sde_role_spec.rb +5 -5
  49. data/spec/models/capability_translation_create_spec.rb +5 -5
  50. data/spec/models/capability_translation_spec.rb +5 -5
  51. data/spec/models/host_create_spec.rb +5 -5
  52. data/spec/models/host_spec.rb +5 -5
  53. data/spec/models/host_volume_connection_create_spec.rb +5 -5
  54. data/spec/models/host_volume_connection_spec.rb +5 -5
  55. data/spec/models/job_create_spec.rb +5 -5
  56. data/spec/models/job_spec.rb +5 -5
  57. data/spec/models/native_capability_spec.rb +5 -5
  58. data/spec/models/profile_spec.rb +5 -5
  59. data/spec/models/provisioning_strategy_spec.rb +5 -5
  60. data/spec/models/service_abstract_capability_value_spec.rb +5 -5
  61. data/spec/models/service_create_spec.rb +5 -5
  62. data/spec/models/service_resource_attachment_spec.rb +5 -5
  63. data/spec/models/service_spec.rb +5 -5
  64. data/spec/models/snapshot_create_spec.rb +5 -5
  65. data/spec/models/snapshot_spec.rb +5 -5
  66. data/spec/models/storage_host_create_spec.rb +17 -5
  67. data/spec/models/storage_host_response_spec.rb +17 -5
  68. data/spec/models/storage_host_spec.rb +17 -5
  69. data/spec/models/storage_host_update_spec.rb +5 -5
  70. data/spec/models/storage_host_volume_mapping_create_spec.rb +5 -5
  71. data/spec/models/storage_host_volume_mapping_spec.rb +5 -5
  72. data/spec/models/storage_host_wwpn_candidates_spec.rb +40 -0
  73. data/spec/models/storage_resource_create_spec.rb +5 -5
  74. data/spec/models/storage_resource_response_spec.rb +5 -5
  75. data/spec/models/storage_resource_spec.rb +5 -5
  76. data/spec/models/storage_system_create_spec.rb +5 -5
  77. data/spec/models/storage_system_spec.rb +11 -5
  78. data/spec/models/system_type_create_spec.rb +5 -5
  79. data/spec/models/system_type_spec.rb +5 -5
  80. data/spec/models/volume_create_spec.rb +5 -5
  81. data/spec/models/volume_response_spec.rb +5 -5
  82. data/spec/models/volume_safe_delete_create_spec.rb +5 -5
  83. data/spec/models/volume_safe_delete_spec.rb +5 -5
  84. data/spec/models/volume_spec.rb +5 -5
  85. data/spec/models/volume_update_spec.rb +5 -5
  86. metadata +72 -64
@@ -25,12 +25,18 @@ module AutosdeOpenapiClient
25
25
  # description
26
26
  attr_accessor :description
27
27
 
28
+ # host_cluster_name
29
+ attr_accessor :host_cluster_name
30
+
28
31
  # io_groups
29
32
  attr_accessor :io_groups
30
33
 
31
34
  # The Storage Host Name
32
35
  attr_accessor :name
33
36
 
37
+ # status
38
+ attr_accessor :status
39
+
34
40
  # !!uuid of storage_system
35
41
  attr_accessor :storage_system
36
42
 
@@ -68,8 +74,10 @@ module AutosdeOpenapiClient
68
74
  :'addresses' => :'addresses',
69
75
  :'component_state' => :'component_state',
70
76
  :'description' => :'description',
77
+ :'host_cluster_name' => :'host_cluster_name',
71
78
  :'io_groups' => :'io_groups',
72
79
  :'name' => :'name',
80
+ :'status' => :'status',
73
81
  :'storage_system' => :'storage_system',
74
82
  :'uuid' => :'uuid',
75
83
  :'volumes' => :'volumes'
@@ -87,8 +95,10 @@ module AutosdeOpenapiClient
87
95
  :'addresses' => :'Array<Address>',
88
96
  :'component_state' => :'String',
89
97
  :'description' => :'String',
98
+ :'host_cluster_name' => :'String',
90
99
  :'io_groups' => :'String',
91
100
  :'name' => :'String',
101
+ :'status' => :'String',
92
102
  :'storage_system' => :'String',
93
103
  :'uuid' => :'String',
94
104
  :'volumes' => :'Array<Volume>'
@@ -130,6 +140,10 @@ module AutosdeOpenapiClient
130
140
  self.description = attributes[:'description']
131
141
  end
132
142
 
143
+ if attributes.key?(:'host_cluster_name')
144
+ self.host_cluster_name = attributes[:'host_cluster_name']
145
+ end
146
+
133
147
  if attributes.key?(:'io_groups')
134
148
  self.io_groups = attributes[:'io_groups']
135
149
  end
@@ -138,6 +152,10 @@ module AutosdeOpenapiClient
138
152
  self.name = attributes[:'name']
139
153
  end
140
154
 
155
+ if attributes.key?(:'status')
156
+ self.status = attributes[:'status']
157
+ end
158
+
141
159
  if attributes.key?(:'storage_system')
142
160
  self.storage_system = attributes[:'storage_system']
143
161
  end
@@ -191,8 +209,10 @@ module AutosdeOpenapiClient
191
209
  addresses == o.addresses &&
192
210
  component_state == o.component_state &&
193
211
  description == o.description &&
212
+ host_cluster_name == o.host_cluster_name &&
194
213
  io_groups == o.io_groups &&
195
214
  name == o.name &&
215
+ status == o.status &&
196
216
  storage_system == o.storage_system &&
197
217
  uuid == o.uuid &&
198
218
  volumes == o.volumes
@@ -207,7 +227,7 @@ module AutosdeOpenapiClient
207
227
  # Calculates hash code according to all attributes.
208
228
  # @return [Integer] Hash code
209
229
  def hash
210
- [addresses, component_state, description, io_groups, name, storage_system, uuid, volumes].hash
230
+ [addresses, component_state, description, host_cluster_name, io_groups, name, status, storage_system, uuid, volumes].hash
211
231
  end
212
232
 
213
233
  # Builds the object from hash
@@ -0,0 +1,230 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module AutosdeOpenapiClient
17
+ # Storage host candidates
18
+ class StorageHostWWPNCandidates
19
+ # system_uuid
20
+ attr_accessor :system_uuid
21
+
22
+ # wwpn
23
+ attr_accessor :wwpn
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'system_uuid' => :'system_uuid',
29
+ :'wwpn' => :'wwpn'
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
+ :'system_uuid' => :'String',
42
+ :'wwpn' => :'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 `AutosdeOpenapiClient::StorageHostWWPNCandidates` 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 `AutosdeOpenapiClient::StorageHostWWPNCandidates`. 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?(:'system_uuid')
68
+ self.system_uuid = attributes[:'system_uuid']
69
+ end
70
+
71
+ if attributes.key?(:'wwpn')
72
+ self.wwpn = attributes[:'wwpn']
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
+ invalid_properties
81
+ end
82
+
83
+ # Check to see if the all the properties in the model are valid
84
+ # @return true if the model is valid
85
+ def valid?
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ system_uuid == o.system_uuid &&
95
+ wwpn == o.wwpn
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [system_uuid, wwpn].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ new.build_from_hash(attributes)
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
+ self.send("#{key}=", nil)
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :Time
146
+ Time.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ # models (e.g. Pet) or oneOf
177
+ klass = AutosdeOpenapiClient.const_get(type)
178
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.0.26
6
+ The version of the OpenAPI document: 1.0.30
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
11
11
  =end
12
12
 
13
13
  module AutosdeOpenapiClient
14
- VERSION = '1.0.26'
14
+ VERSION = '1.0.30'
15
15
  end
@@ -6,20 +6,20 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for OpenapiClient::AbstractCapabilityApi
16
+ # Unit tests for AutosdeOpenapiClient::AbstractCapabilityApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'AbstractCapabilityApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = OpenapiClient::AbstractCapabilityApi.new
22
+ @api_instance = AutosdeOpenapiClient::AbstractCapabilityApi.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'AbstractCapabilityApi' do
28
28
 
29
29
  describe 'test an instance of AbstractCapabilityApi' do
30
30
  it 'should create an instance of AbstractCapabilityApi' do
31
- expect(@api_instance).to be_instance_of(OpenapiClient::AbstractCapabilityApi)
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::AbstractCapabilityApi)
32
32
  end
33
33
  end
34
34
 
@@ -6,20 +6,20 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for OpenapiClient::AccountApi
16
+ # Unit tests for AutosdeOpenapiClient::AccountApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'AccountApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = OpenapiClient::AccountApi.new
22
+ @api_instance = AutosdeOpenapiClient::AccountApi.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'AccountApi' do
28
28
 
29
29
  describe 'test an instance of AccountApi' do
30
30
  it 'should create an instance of AccountApi' do
31
- expect(@api_instance).to be_instance_of(OpenapiClient::AccountApi)
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::AccountApi)
32
32
  end
33
33
  end
34
34
 
@@ -6,20 +6,20 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for OpenapiClient::AddressApi
16
+ # Unit tests for AutosdeOpenapiClient::AddressApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'AddressApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = OpenapiClient::AddressApi.new
22
+ @api_instance = AutosdeOpenapiClient::AddressApi.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'AddressApi' do
28
28
 
29
29
  describe 'test an instance of AddressApi' do
30
30
  it 'should create an instance of AddressApi' do
31
- expect(@api_instance).to be_instance_of(OpenapiClient::AddressApi)
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::AddressApi)
32
32
  end
33
33
  end
34
34
 
@@ -6,20 +6,20 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for OpenapiClient::AuthenticationApi
16
+ # Unit tests for AutosdeOpenapiClient::AuthenticationApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'AuthenticationApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = OpenapiClient::AuthenticationApi.new
22
+ @api_instance = AutosdeOpenapiClient::AuthenticationApi.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'AuthenticationApi' do
28
28
 
29
29
  describe 'test an instance of AuthenticationApi' do
30
30
  it 'should create an instance of AuthenticationApi' do
31
- expect(@api_instance).to be_instance_of(OpenapiClient::AuthenticationApi)
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::AuthenticationApi)
32
32
  end
33
33
  end
34
34