autosde_openapi_client 1.1.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4be93112980778330ea0d652197dd208d9ae58af6127c6e6d8ac47aaf087b505
4
- data.tar.gz: 45a1ebe818cc9b46c95fa65b89f8b9412e04fbea6a7e98d3a2edeb2f3be46a8b
3
+ metadata.gz: d228ce8927b92ffd78ec537dfcd781e694293011e04a57deecc59f3e24fa3153
4
+ data.tar.gz: 1699010aa3e012f74717a0871d430710597388b1bf027bf7ff9c3468ba4027be
5
5
  SHA512:
6
- metadata.gz: 14f4ff41b528e91d139cdc47f686934d5a6a86ff3a8a60d69d1b4245fd932099767c70c4fadc1634caa0c9f2c75d238fbf463e3059609f0d06aebab5f47fc034
7
- data.tar.gz: 25375ea52467ea612f8ddce803911e8309e4b88c354238391ca6f292b6cb617aa174ed057ba9c487625a8437d3c323d7e9f45068b249936e350c2dda6d137c7e
6
+ metadata.gz: 0f999d2b99ec91f8d9fde49cbe0960c58e1f475fe50fd4fb07b4e56b8d2e3008f05842f751bc100fd9e3ec21830a4f2c8d039a91b7705d5a1be142d46b6e54a5
7
+ data.tar.gz: fdb90c168e0276e69a802fac9b8810db249335a418245f3bc81c5318063811c3827fe5f256a0594e340fb2afd2445899675444d0dfebd9b47dcea7d30ba98bed
data/README.md CHANGED
@@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
205
205
  - [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
206
206
  - [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
207
207
  - [AutosdeOpenapiClient::HostClusterMembership](docs/HostClusterMembership.md)
208
+ - [AutosdeOpenapiClient::HostClusterResponse](docs/HostClusterResponse.md)
208
209
  - [AutosdeOpenapiClient::HostClusterVolumeMapping](docs/HostClusterVolumeMapping.md)
209
210
  - [AutosdeOpenapiClient::HostClusterVolumeMappingCreate](docs/HostClusterVolumeMappingCreate.md)
210
211
  - [AutosdeOpenapiClient::HostClusterVolumeMappingResponse](docs/HostClusterVolumeMappingResponse.md)
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
12
12
 
13
13
  ## host_clusters_get
14
14
 
15
- > <Array<HostCluster>> host_clusters_get
15
+ > <Array<HostClusterResponse>> host_clusters_get
16
16
 
17
17
 
18
18
 
@@ -42,7 +42,7 @@ end
42
42
 
43
43
  This returns an Array which contains the response data, status code and headers.
44
44
 
45
- > <Array(<Array<HostCluster>>, Integer, Hash)> host_clusters_get_with_http_info
45
+ > <Array(<Array<HostClusterResponse>>, Integer, Hash)> host_clusters_get_with_http_info
46
46
 
47
47
  ```ruby
48
48
  begin
@@ -50,7 +50,7 @@ begin
50
50
  data, status_code, headers = api_instance.host_clusters_get_with_http_info
51
51
  p status_code # => 2xx
52
52
  p headers # => { ... }
53
- p data # => <Array<HostCluster>>
53
+ p data # => <Array<HostClusterResponse>>
54
54
  rescue AutosdeOpenapiClient::ApiError => e
55
55
  puts "Error when calling HostClusterApi->host_clusters_get_with_http_info: #{e}"
56
56
  end
@@ -62,7 +62,7 @@ This endpoint does not need any parameter.
62
62
 
63
63
  ### Return type
64
64
 
65
- [**Array&lt;HostCluster&gt;**](HostCluster.md)
65
+ [**Array&lt;HostClusterResponse&gt;**](HostClusterResponse.md)
66
66
 
67
67
  ### Authorization
68
68
 
@@ -210,7 +210,7 @@ end
210
210
 
211
211
  ## host_clusters_post
212
212
 
213
- > <HostCluster> host_clusters_post(host_cluster_create)
213
+ > <HostClusterResponse> host_clusters_post(host_cluster_create)
214
214
 
215
215
 
216
216
 
@@ -241,7 +241,7 @@ end
241
241
 
242
242
  This returns an Array which contains the response data, status code and headers.
243
243
 
244
- > <Array(<HostCluster>, Integer, Hash)> host_clusters_post_with_http_info(host_cluster_create)
244
+ > <Array(<HostClusterResponse>, Integer, Hash)> host_clusters_post_with_http_info(host_cluster_create)
245
245
 
246
246
  ```ruby
247
247
  begin
@@ -249,7 +249,7 @@ begin
249
249
  data, status_code, headers = api_instance.host_clusters_post_with_http_info(host_cluster_create)
250
250
  p status_code # => 2xx
251
251
  p headers # => { ... }
252
- p data # => <HostCluster>
252
+ p data # => <HostClusterResponse>
253
253
  rescue AutosdeOpenapiClient::ApiError => e
254
254
  puts "Error when calling HostClusterApi->host_clusters_post_with_http_info: #{e}"
255
255
  end
@@ -263,7 +263,7 @@ end
263
263
 
264
264
  ### Return type
265
265
 
266
- [**HostCluster**](HostCluster.md)
266
+ [**HostClusterResponse**](HostClusterResponse.md)
267
267
 
268
268
  ### Authorization
269
269
 
@@ -0,0 +1,34 @@
1
+ # AutosdeOpenapiClient::HostClusterResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **component_state** | **String** | component_state | [optional] |
8
+ | **name** | **String** | name | [optional] |
9
+ | **owner_id** | **String** | owner_id | [optional] |
10
+ | **owner_name** | **String** | owner_name | [optional] |
11
+ | **protocol** | **String** | protocol | [optional] |
12
+ | **status** | **String** | status | [optional] |
13
+ | **storage_system** | **String** | !!uuid of storage_system | [optional] |
14
+ | **uuid** | **String** | uuid | [optional] |
15
+ | **volumes** | [**Volume**](Volume.md) | | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'autosde_openapi_client'
21
+
22
+ instance = AutosdeOpenapiClient::HostClusterResponse.new(
23
+ component_state: null,
24
+ name: null,
25
+ owner_id: null,
26
+ owner_name: null,
27
+ protocol: null,
28
+ status: null,
29
+ storage_system: null,
30
+ uuid: null,
31
+ volumes: null
32
+ )
33
+ ```
34
+
@@ -20,14 +20,14 @@ module AutosdeOpenapiClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # @param [Hash] opts the optional parameters
23
- # @return [Array<HostCluster>]
23
+ # @return [Array<HostClusterResponse>]
24
24
  def host_clusters_get(opts = {})
25
25
  data, _status_code, _headers = host_clusters_get_with_http_info(opts)
26
26
  data
27
27
  end
28
28
 
29
29
  # @param [Hash] opts the optional parameters
30
- # @return [Array<(Array<HostCluster>, Integer, Hash)>] Array<HostCluster> data, response status code and response headers
30
+ # @return [Array<(Array<HostClusterResponse>, Integer, Hash)>] Array<HostClusterResponse> data, response status code and response headers
31
31
  def host_clusters_get_with_http_info(opts = {})
32
32
  if @api_client.config.debugging
33
33
  @api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_get ...'
@@ -50,7 +50,7 @@ module AutosdeOpenapiClient
50
50
  post_body = opts[:debug_body]
51
51
 
52
52
  # return_type
53
- return_type = opts[:debug_return_type] || 'Array<HostCluster>'
53
+ return_type = opts[:debug_return_type] || 'Array<HostClusterResponse>'
54
54
 
55
55
  # auth_names
56
56
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param host_cluster_create [HostClusterCreate]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [HostCluster]
195
+ # @return [HostClusterResponse]
196
196
  def host_clusters_post(host_cluster_create, opts = {})
197
197
  data, _status_code, _headers = host_clusters_post_with_http_info(host_cluster_create, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param host_cluster_create [HostClusterCreate]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(HostCluster, Integer, Hash)>] HostCluster data, response status code and response headers
203
+ # @return [Array<(HostClusterResponse, Integer, Hash)>] HostClusterResponse data, response status code and response headers
204
204
  def host_clusters_post_with_http_info(host_cluster_create, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_create)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'HostCluster'
232
+ return_type = opts[:debug_return_type] || 'HostClusterResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -0,0 +1,398 @@
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
+ # TODO add description
18
+ class HostClusterResponse
19
+ # component_state
20
+ attr_accessor :component_state
21
+
22
+ # name
23
+ attr_accessor :name
24
+
25
+ # owner_id
26
+ attr_accessor :owner_id
27
+
28
+ # owner_name
29
+ attr_accessor :owner_name
30
+
31
+ # protocol
32
+ attr_accessor :protocol
33
+
34
+ # status
35
+ attr_accessor :status
36
+
37
+ # !!uuid of storage_system
38
+ attr_accessor :storage_system
39
+
40
+ # uuid
41
+ attr_accessor :uuid
42
+
43
+ attr_accessor :volumes
44
+
45
+ class EnumAttributeValidator
46
+ attr_reader :datatype
47
+ attr_reader :allowable_values
48
+
49
+ def initialize(datatype, allowable_values)
50
+ @allowable_values = allowable_values.map do |value|
51
+ case datatype.to_s
52
+ when /Integer/i
53
+ value.to_i
54
+ when /Float/i
55
+ value.to_f
56
+ else
57
+ value
58
+ end
59
+ end
60
+ end
61
+
62
+ def valid?(value)
63
+ !value || allowable_values.include?(value)
64
+ end
65
+ end
66
+
67
+ # Attribute mapping from ruby-style variable name to JSON key.
68
+ def self.attribute_map
69
+ {
70
+ :'component_state' => :'component_state',
71
+ :'name' => :'name',
72
+ :'owner_id' => :'owner_id',
73
+ :'owner_name' => :'owner_name',
74
+ :'protocol' => :'protocol',
75
+ :'status' => :'status',
76
+ :'storage_system' => :'storage_system',
77
+ :'uuid' => :'uuid',
78
+ :'volumes' => :'volumes'
79
+ }
80
+ end
81
+
82
+ # Returns all the JSON keys this model knows about
83
+ def self.acceptable_attributes
84
+ attribute_map.values
85
+ end
86
+
87
+ # Attribute type mapping.
88
+ def self.openapi_types
89
+ {
90
+ :'component_state' => :'String',
91
+ :'name' => :'String',
92
+ :'owner_id' => :'String',
93
+ :'owner_name' => :'String',
94
+ :'protocol' => :'String',
95
+ :'status' => :'String',
96
+ :'storage_system' => :'String',
97
+ :'uuid' => :'String',
98
+ :'volumes' => :'Volume'
99
+ }
100
+ end
101
+
102
+ # List of attributes with nullable: true
103
+ def self.openapi_nullable
104
+ Set.new([
105
+ ])
106
+ end
107
+
108
+ # Initializes the object
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ def initialize(attributes = {})
111
+ if (!attributes.is_a?(Hash))
112
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::HostClusterResponse` initialize method"
113
+ end
114
+
115
+ # check to see if the attribute exists and convert string to symbol for hash key
116
+ attributes = attributes.each_with_object({}) { |(k, v), h|
117
+ if (!self.class.attribute_map.key?(k.to_sym))
118
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::HostClusterResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
119
+ end
120
+ h[k.to_sym] = v
121
+ }
122
+
123
+ if attributes.key?(:'component_state')
124
+ self.component_state = attributes[:'component_state']
125
+ end
126
+
127
+ if attributes.key?(:'name')
128
+ self.name = attributes[:'name']
129
+ end
130
+
131
+ if attributes.key?(:'owner_id')
132
+ self.owner_id = attributes[:'owner_id']
133
+ end
134
+
135
+ if attributes.key?(:'owner_name')
136
+ self.owner_name = attributes[:'owner_name']
137
+ end
138
+
139
+ if attributes.key?(:'protocol')
140
+ self.protocol = attributes[:'protocol']
141
+ end
142
+
143
+ if attributes.key?(:'status')
144
+ self.status = attributes[:'status']
145
+ end
146
+
147
+ if attributes.key?(:'storage_system')
148
+ self.storage_system = attributes[:'storage_system']
149
+ end
150
+
151
+ if attributes.key?(:'uuid')
152
+ self.uuid = attributes[:'uuid']
153
+ end
154
+
155
+ if attributes.key?(:'volumes')
156
+ self.volumes = attributes[:'volumes']
157
+ end
158
+ end
159
+
160
+ # Show invalid properties with the reasons. Usually used together with valid?
161
+ # @return Array for valid properties with the reasons
162
+ def list_invalid_properties
163
+ invalid_properties = Array.new
164
+ if !@component_state.nil? && @component_state.to_s.length > 32
165
+ invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
166
+ end
167
+
168
+ if !@name.nil? && @name.to_s.length > 15
169
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
170
+ end
171
+
172
+ if !@owner_id.nil? && @owner_id.to_s.length > 15
173
+ invalid_properties.push('invalid value for "owner_id", the character length must be smaller than or equal to 15.')
174
+ end
175
+
176
+ if !@owner_name.nil? && @owner_name.to_s.length > 15
177
+ invalid_properties.push('invalid value for "owner_name", the character length must be smaller than or equal to 15.')
178
+ end
179
+
180
+ if !@protocol.nil? && @protocol.to_s.length > 15
181
+ invalid_properties.push('invalid value for "protocol", the character length must be smaller than or equal to 15.')
182
+ end
183
+
184
+ invalid_properties
185
+ end
186
+
187
+ # Check to see if the all the properties in the model are valid
188
+ # @return true if the model is valid
189
+ def valid?
190
+ component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
191
+ return false unless component_state_validator.valid?(@component_state)
192
+ return false if !@component_state.nil? && @component_state.to_s.length > 32
193
+ return false if !@name.nil? && @name.to_s.length > 15
194
+ return false if !@owner_id.nil? && @owner_id.to_s.length > 15
195
+ return false if !@owner_name.nil? && @owner_name.to_s.length > 15
196
+ return false if !@protocol.nil? && @protocol.to_s.length > 15
197
+ true
198
+ end
199
+
200
+ # Custom attribute writer method checking allowed values (enum).
201
+ # @param [Object] component_state Object to be assigned
202
+ def component_state=(component_state)
203
+ validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
204
+ unless validator.valid?(component_state)
205
+ fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
206
+ end
207
+ @component_state = component_state
208
+ end
209
+
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] name Value to be assigned
212
+ def name=(name)
213
+ if !name.nil? && name.to_s.length > 15
214
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
215
+ end
216
+
217
+ @name = name
218
+ end
219
+
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] owner_id Value to be assigned
222
+ def owner_id=(owner_id)
223
+ if !owner_id.nil? && owner_id.to_s.length > 15
224
+ fail ArgumentError, 'invalid value for "owner_id", the character length must be smaller than or equal to 15.'
225
+ end
226
+
227
+ @owner_id = owner_id
228
+ end
229
+
230
+ # Custom attribute writer method with validation
231
+ # @param [Object] owner_name Value to be assigned
232
+ def owner_name=(owner_name)
233
+ if !owner_name.nil? && owner_name.to_s.length > 15
234
+ fail ArgumentError, 'invalid value for "owner_name", the character length must be smaller than or equal to 15.'
235
+ end
236
+
237
+ @owner_name = owner_name
238
+ end
239
+
240
+ # Custom attribute writer method with validation
241
+ # @param [Object] protocol Value to be assigned
242
+ def protocol=(protocol)
243
+ if !protocol.nil? && protocol.to_s.length > 15
244
+ fail ArgumentError, 'invalid value for "protocol", the character length must be smaller than or equal to 15.'
245
+ end
246
+
247
+ @protocol = protocol
248
+ end
249
+
250
+ # Checks equality by comparing each attribute.
251
+ # @param [Object] Object to be compared
252
+ def ==(o)
253
+ return true if self.equal?(o)
254
+ self.class == o.class &&
255
+ component_state == o.component_state &&
256
+ name == o.name &&
257
+ owner_id == o.owner_id &&
258
+ owner_name == o.owner_name &&
259
+ protocol == o.protocol &&
260
+ status == o.status &&
261
+ storage_system == o.storage_system &&
262
+ uuid == o.uuid &&
263
+ volumes == o.volumes
264
+ end
265
+
266
+ # @see the `==` method
267
+ # @param [Object] Object to be compared
268
+ def eql?(o)
269
+ self == o
270
+ end
271
+
272
+ # Calculates hash code according to all attributes.
273
+ # @return [Integer] Hash code
274
+ def hash
275
+ [component_state, name, owner_id, owner_name, protocol, status, storage_system, uuid, volumes].hash
276
+ end
277
+
278
+ # Builds the object from hash
279
+ # @param [Hash] attributes Model attributes in the form of hash
280
+ # @return [Object] Returns the model itself
281
+ def self.build_from_hash(attributes)
282
+ new.build_from_hash(attributes)
283
+ end
284
+
285
+ # Builds the object from hash
286
+ # @param [Hash] attributes Model attributes in the form of hash
287
+ # @return [Object] Returns the model itself
288
+ def build_from_hash(attributes)
289
+ return nil unless attributes.is_a?(Hash)
290
+ self.class.openapi_types.each_pair do |key, type|
291
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
292
+ self.send("#{key}=", nil)
293
+ elsif type =~ /\AArray<(.*)>/i
294
+ # check to ensure the input is an array given that the attribute
295
+ # is documented as an array but the input is not
296
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
297
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
298
+ end
299
+ elsif !attributes[self.class.attribute_map[key]].nil?
300
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
301
+ end
302
+ end
303
+
304
+ self
305
+ end
306
+
307
+ # Deserializes the data based on type
308
+ # @param string type Data type
309
+ # @param string value Value to be deserialized
310
+ # @return [Object] Deserialized data
311
+ def _deserialize(type, value)
312
+ case type.to_sym
313
+ when :Time
314
+ Time.parse(value)
315
+ when :Date
316
+ Date.parse(value)
317
+ when :String
318
+ value.to_s
319
+ when :Integer
320
+ value.to_i
321
+ when :Float
322
+ value.to_f
323
+ when :Boolean
324
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
325
+ true
326
+ else
327
+ false
328
+ end
329
+ when :Object
330
+ # generic object (usually a Hash), return directly
331
+ value
332
+ when /\AArray<(?<inner_type>.+)>\z/
333
+ inner_type = Regexp.last_match[:inner_type]
334
+ value.map { |v| _deserialize(inner_type, v) }
335
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
336
+ k_type = Regexp.last_match[:k_type]
337
+ v_type = Regexp.last_match[:v_type]
338
+ {}.tap do |hash|
339
+ value.each do |k, v|
340
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
341
+ end
342
+ end
343
+ else # model
344
+ # models (e.g. Pet) or oneOf
345
+ klass = AutosdeOpenapiClient.const_get(type)
346
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
347
+ end
348
+ end
349
+
350
+ # Returns the string representation of the object
351
+ # @return [String] String presentation of the object
352
+ def to_s
353
+ to_hash.to_s
354
+ end
355
+
356
+ # to_body is an alias to to_hash (backward compatibility)
357
+ # @return [Hash] Returns the object in the form of hash
358
+ def to_body
359
+ to_hash
360
+ end
361
+
362
+ # Returns the object in the form of hash
363
+ # @return [Hash] Returns the object in the form of hash
364
+ def to_hash
365
+ hash = {}
366
+ self.class.attribute_map.each_pair do |attr, param|
367
+ value = self.send(attr)
368
+ if value.nil?
369
+ is_nullable = self.class.openapi_nullable.include?(attr)
370
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
371
+ end
372
+
373
+ hash[param] = _to_hash(value)
374
+ end
375
+ hash
376
+ end
377
+
378
+ # Outputs non-array value in the form of hash
379
+ # For object, use to_hash. Otherwise, just return the value
380
+ # @param [Object] value Any valid value
381
+ # @return [Hash] Returns the value in the form of hash
382
+ def _to_hash(value)
383
+ if value.is_a?(Array)
384
+ value.compact.map { |v| _to_hash(v) }
385
+ elsif value.is_a?(Hash)
386
+ {}.tap do |hash|
387
+ value.each { |k, v| hash[k] = _to_hash(v) }
388
+ end
389
+ elsif value.respond_to? :to_hash
390
+ value.to_hash
391
+ else
392
+ value
393
+ end
394
+ end
395
+
396
+ end
397
+
398
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.1.1
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.1.0'
14
+ VERSION = '1.1.1'
15
15
  end
@@ -33,6 +33,7 @@ require 'autosde_openapi_client/models/host'
33
33
  require 'autosde_openapi_client/models/host_cluster'
34
34
  require 'autosde_openapi_client/models/host_cluster_create'
35
35
  require 'autosde_openapi_client/models/host_cluster_membership'
36
+ require 'autosde_openapi_client/models/host_cluster_response'
36
37
  require 'autosde_openapi_client/models/host_cluster_volume_mapping'
37
38
  require 'autosde_openapi_client/models/host_cluster_volume_mapping_create'
38
39
  require 'autosde_openapi_client/models/host_cluster_volume_mapping_response'
@@ -34,7 +34,7 @@ describe 'HostClusterApi' do
34
34
 
35
35
  # unit tests for host_clusters_get
36
36
  # @param [Hash] opts the optional parameters
37
- # @return [Array<HostCluster>]
37
+ # @return [Array<HostClusterResponse>]
38
38
  describe 'host_clusters_get test' do
39
39
  it 'should work' do
40
40
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -64,7 +64,7 @@ describe 'HostClusterApi' do
64
64
  # unit tests for host_clusters_post
65
65
  # @param host_cluster_create
66
66
  # @param [Hash] opts the optional parameters
67
- # @return [HostCluster]
67
+ # @return [HostClusterResponse]
68
68
  describe 'host_clusters_post test' do
69
69
  it 'should work' do
70
70
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,86 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AutosdeOpenapiClient::HostClusterResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterResponse do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterResponse.new }
22
+
23
+ describe 'test an instance of HostClusterResponse' do
24
+ it 'should create an instance of HostClusterResponse' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterResponse)
26
+ end
27
+ end
28
+ describe 'test attribute "component_state"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
32
+ # validator.allowable_values.each do |value|
33
+ # expect { instance.component_state = value }.not_to raise_error
34
+ # end
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "name"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "owner_id"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "owner_name"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "protocol"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "status"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ describe 'test attribute "storage_system"' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ describe 'test attribute "uuid"' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
80
+ describe 'test attribute "volumes"' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
+ end
84
+ end
85
+
86
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autosde_openapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-24 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,22 +34,22 @@ dependencies:
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3.6'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 3.6.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '3.6'
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '3.6'
50
47
  - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: 3.6.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '3.6'
53
53
  description: Site Manager API
54
54
  email:
55
55
  - autosde@il.ibm.com
@@ -87,6 +87,7 @@ files:
87
87
  - docs/HostClusterCreate.md
88
88
  - docs/HostClusterMembership.md
89
89
  - docs/HostClusterMembershipApi.md
90
+ - docs/HostClusterResponse.md
90
91
  - docs/HostClusterVolumeMapping.md
91
92
  - docs/HostClusterVolumeMappingApi.md
92
93
  - docs/HostClusterVolumeMappingCreate.md
@@ -191,6 +192,7 @@ files:
191
192
  - lib/autosde_openapi_client/models/host_cluster.rb
192
193
  - lib/autosde_openapi_client/models/host_cluster_create.rb
193
194
  - lib/autosde_openapi_client/models/host_cluster_membership.rb
195
+ - lib/autosde_openapi_client/models/host_cluster_response.rb
194
196
  - lib/autosde_openapi_client/models/host_cluster_volume_mapping.rb
195
197
  - lib/autosde_openapi_client/models/host_cluster_volume_mapping_create.rb
196
198
  - lib/autosde_openapi_client/models/host_cluster_volume_mapping_response.rb
@@ -274,6 +276,7 @@ files:
274
276
  - spec/models/capability_translation_spec.rb
275
277
  - spec/models/host_cluster_create_spec.rb
276
278
  - spec/models/host_cluster_membership_spec.rb
279
+ - spec/models/host_cluster_response_spec.rb
277
280
  - spec/models/host_cluster_spec.rb
278
281
  - spec/models/host_cluster_volume_mapping_create_spec.rb
279
282
  - spec/models/host_cluster_volume_mapping_response_spec.rb
@@ -335,93 +338,94 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
338
  - !ruby/object:Gem::Version
336
339
  version: '0'
337
340
  requirements: []
338
- rubygems_version: 3.1.2
341
+ rubygems_version: 3.0.3.1
339
342
  signing_key:
340
343
  specification_version: 4
341
344
  summary: Site Manager API Ruby Gem
342
345
  test_files:
343
- - spec/api/abstract_capability_api_spec.rb
344
- - spec/api/account_api_spec.rb
345
346
  - spec/api/address_api_spec.rb
346
- - spec/api/authentication_api_spec.rb
347
- - spec/api/auto_sde_project_api_spec.rb
348
- - spec/api/auto_sde_role_api_spec.rb
349
- - spec/api/capability_translation_api_spec.rb
350
- - spec/api/host_api_spec.rb
347
+ - spec/api/storage_host_volume_mapping_api_spec.rb
348
+ - spec/api/native_capability_api_spec.rb
349
+ - spec/api/abstract_capability_api_spec.rb
350
+ - spec/api/storage_host_api_spec.rb
351
351
  - spec/api/host_cluster_api_spec.rb
352
+ - spec/api/volume_safe_delete_api_spec.rb
352
353
  - spec/api/host_cluster_membership_api_spec.rb
353
- - spec/api/host_cluster_volume_mapping_api_spec.rb
354
- - spec/api/host_volume_connection_api_spec.rb
355
- - spec/api/job_api_spec.rb
356
- - spec/api/native_capability_api_spec.rb
357
- - spec/api/profile_api_spec.rb
354
+ - spec/api/authentication_api_spec.rb
355
+ - spec/api/account_api_spec.rb
356
+ - spec/api/system_type_api_spec.rb
357
+ - spec/api/auto_sde_role_api_spec.rb
358
+ - spec/api/storage_system_api_spec.rb
359
+ - spec/api/snapshot_api_spec.rb
358
360
  - spec/api/provisioning_strategy_api_spec.rb
359
361
  - spec/api/service_api_spec.rb
360
- - spec/api/service_resource_attachment_api_spec.rb
361
- - spec/api/snapshot_api_spec.rb
362
- - spec/api/storage_host_api_spec.rb
363
- - spec/api/storage_host_volume_mapping_api_spec.rb
362
+ - spec/api/job_api_spec.rb
364
363
  - spec/api/storage_host_wwpn_candidates_api_spec.rb
364
+ - spec/api/host_api_spec.rb
365
+ - spec/api/capability_translation_api_spec.rb
365
366
  - spec/api/storage_resource_api_spec.rb
366
- - spec/api/storage_system_api_spec.rb
367
- - spec/api/system_type_api_spec.rb
367
+ - spec/api/auto_sde_project_api_spec.rb
368
+ - spec/api/host_volume_connection_api_spec.rb
369
+ - spec/api/profile_api_spec.rb
370
+ - spec/api/host_cluster_volume_mapping_api_spec.rb
371
+ - spec/api/service_resource_attachment_api_spec.rb
368
372
  - spec/api/volume_api_spec.rb
369
- - spec/api/volume_safe_delete_api_spec.rb
370
373
  - spec/api_client_spec.rb
371
374
  - spec/configuration_spec.rb
372
- - spec/models/abstract_capability_spec.rb
373
- - spec/models/account_post_request_spec.rb
374
- - spec/models/account_post_response_spec.rb
375
- - spec/models/account_spec.rb
376
- - spec/models/address_create_spec.rb
377
- - spec/models/address_spec.rb
378
- - spec/models/authentication_spec.rb
379
- - spec/models/auth_response_spec.rb
380
- - spec/models/auto_sde_project_spec.rb
381
- - spec/models/auto_sde_role_spec.rb
382
- - spec/models/capability_translation_create_spec.rb
383
- - spec/models/capability_translation_spec.rb
384
- - spec/models/host_cluster_create_spec.rb
385
- - spec/models/host_cluster_membership_spec.rb
375
+ - spec/models/volume_create_spec.rb
386
376
  - spec/models/host_cluster_spec.rb
387
- - spec/models/host_cluster_volume_mapping_create_spec.rb
388
- - spec/models/host_cluster_volume_mapping_response_spec.rb
389
- - spec/models/host_cluster_volume_mapping_spec.rb
390
- - spec/models/host_create_spec.rb
391
- - spec/models/host_spec.rb
392
377
  - spec/models/host_volume_connection_create_spec.rb
393
- - spec/models/host_volume_connection_spec.rb
394
- - spec/models/job_create_spec.rb
395
- - spec/models/job_spec.rb
378
+ - spec/models/address_spec.rb
379
+ - spec/models/host_create_spec.rb
380
+ - spec/models/address_create_spec.rb
381
+ - spec/models/storage_resource_response_spec.rb
382
+ - spec/models/snapshot_spec.rb
383
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
384
+ - spec/models/host_cluster_response_spec.rb
396
385
  - spec/models/native_capability_spec.rb
397
- - spec/models/profile_spec.rb
386
+ - spec/models/authentication_spec.rb
387
+ - spec/models/system_type_create_spec.rb
388
+ - spec/models/storage_resource_spec.rb
389
+ - spec/models/storage_host_update_spec.rb
398
390
  - spec/models/provisioning_strategy_spec.rb
399
- - spec/models/service_abstract_capability_value_spec.rb
391
+ - spec/models/account_post_request_spec.rb
392
+ - spec/models/volume_spec.rb
393
+ - spec/models/account_spec.rb
394
+ - spec/models/host_cluster_volume_mapping_spec.rb
395
+ - spec/models/storage_host_volume_mapping_create_spec.rb
400
396
  - spec/models/service_create_spec.rb
401
- - spec/models/service_resource_attachment_spec.rb
402
- - spec/models/service_spec.rb
397
+ - spec/models/capability_translation_spec.rb
398
+ - spec/models/host_volume_connection_spec.rb
399
+ - spec/models/volume_safe_delete_spec.rb
400
+ - spec/models/storage_system_update_spec.rb
401
+ - spec/models/auth_response_spec.rb
402
+ - spec/models/system_type_spec.rb
403
+ - spec/models/storage_system_spec.rb
403
404
  - spec/models/snapshot_create_spec.rb
404
- - spec/models/snapshot_spec.rb
405
- - spec/models/storage_host_create_spec.rb
406
405
  - spec/models/storage_host_response_spec.rb
406
+ - spec/models/job_create_spec.rb
407
+ - spec/models/host_cluster_create_spec.rb
408
+ - spec/models/service_abstract_capability_value_spec.rb
409
+ - spec/models/storage_resource_create_spec.rb
410
+ - spec/models/job_spec.rb
407
411
  - spec/models/storage_host_spec.rb
408
- - spec/models/storage_host_update_spec.rb
409
- - spec/models/storage_host_volume_mapping_create_spec.rb
412
+ - spec/models/storage_host_create_spec.rb
413
+ - spec/models/host_spec.rb
414
+ - spec/models/host_cluster_membership_spec.rb
415
+ - spec/models/abstract_capability_spec.rb
416
+ - spec/models/volume_safe_delete_create_spec.rb
417
+ - spec/models/service_spec.rb
418
+ - spec/models/volume_response_spec.rb
419
+ - spec/models/service_resource_attachment_spec.rb
410
420
  - spec/models/storage_host_volume_mapping_response_spec.rb
421
+ - spec/models/account_post_response_spec.rb
422
+ - spec/models/volume_update_spec.rb
423
+ - spec/models/host_cluster_volume_mapping_response_spec.rb
424
+ - spec/models/auto_sde_role_spec.rb
425
+ - spec/models/capability_translation_create_spec.rb
411
426
  - spec/models/storage_host_volume_mapping_spec.rb
412
427
  - spec/models/storage_host_wwpn_candidates_spec.rb
413
- - spec/models/storage_resource_create_spec.rb
414
- - spec/models/storage_resource_response_spec.rb
415
- - spec/models/storage_resource_spec.rb
428
+ - spec/models/profile_spec.rb
416
429
  - spec/models/storage_system_create_spec.rb
417
- - spec/models/storage_system_spec.rb
418
- - spec/models/storage_system_update_spec.rb
419
- - spec/models/system_type_create_spec.rb
420
- - spec/models/system_type_spec.rb
421
- - spec/models/volume_create_spec.rb
422
- - spec/models/volume_response_spec.rb
423
- - spec/models/volume_safe_delete_create_spec.rb
424
- - spec/models/volume_safe_delete_spec.rb
425
- - spec/models/volume_spec.rb
426
- - spec/models/volume_update_spec.rb
430
+ - spec/models/auto_sde_project_spec.rb
427
431
  - spec/spec_helper.rb