autosde_openapi_client 3.0.2 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1d2218fb3bed0806cf73ceb77730c92e1370f7ff0db9c6ba7856a391f33f055
4
- data.tar.gz: ffc214f88eb27b2ada9cb18a3ae61af00ab601a1edff61b848ccacb40cec289e
3
+ metadata.gz: 5a743f54951a6c292562110df3a3c271e11dd1e42c757efc8d8f556d7c37882b
4
+ data.tar.gz: de2fedda897d5bae082f26aaf30080a898312d48b29923f19819e5175a1a495f
5
5
  SHA512:
6
- metadata.gz: b20865aa9f6bc82d34d63fb9f41a61f5bb674c9423c5b4e9c67f45de50620ed4827917ba7d622081e62b31de2a6092fc14a7c141d19461116837c0154ec0e004
7
- data.tar.gz: e3553f0f7f106783c03ed43f824a8cb372921cc7381871b1e06db709a46bca23c8af3ed7e2c9e255264ab4908e4750118443a172d2599d3f356f36f5ccc24b01
6
+ metadata.gz: 98863ff0004afcc115e3416ac27028b2b3c871d08ae493c7862d9a66cbafe60486cfbf391c8faa226ef255ec6a698953f0ef19f76d195f8e92a5aab60f008a62
7
+ data.tar.gz: 6a351572a06b8853c00f81eefd482184d074cf10b3768dcc58789d9b8f500668d606d30077ff7f7c208f340025c52148ccd2e220676c4a86a7107392a9ff7ec9
data/README.md CHANGED
@@ -118,6 +118,7 @@ Class | Method | HTTP request | Description
118
118
  *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_get**](docs/HostClusterApi.md#host_clusters_get) | **GET** /host-clusters |
119
119
  *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_delete**](docs/HostClusterApi.md#host_clusters_pk_delete) | **DELETE** /host-clusters/{pk} |
120
120
  *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_get**](docs/HostClusterApi.md#host_clusters_pk_get) | **GET** /host-clusters/{pk} |
121
+ *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_pk_put**](docs/HostClusterApi.md#host_clusters_pk_put) | **PUT** /host-clusters/{pk} |
121
122
  *AutosdeOpenapiClient::HostClusterApi* | [**host_clusters_post**](docs/HostClusterApi.md#host_clusters_post) | **POST** /host-clusters |
122
123
  *AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_get**](docs/HostClusterMembershipApi.md#host_cluster_membership_get) | **GET** /host-cluster-membership |
123
124
  *AutosdeOpenapiClient::HostClusterMembershipApi* | [**host_cluster_membership_pk_delete**](docs/HostClusterMembershipApi.md#host_cluster_membership_pk_delete) | **DELETE** /host-cluster-membership/{pk} |
@@ -228,6 +229,7 @@ Class | Method | HTTP request | Description
228
229
  - [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
229
230
  - [AutosdeOpenapiClient::HostClusterMembership](docs/HostClusterMembership.md)
230
231
  - [AutosdeOpenapiClient::HostClusterResponse](docs/HostClusterResponse.md)
232
+ - [AutosdeOpenapiClient::HostClusterUpdate](docs/HostClusterUpdate.md)
231
233
  - [AutosdeOpenapiClient::HostClusterVolumeMapping](docs/HostClusterVolumeMapping.md)
232
234
  - [AutosdeOpenapiClient::HostClusterVolumeMappingCreate](docs/HostClusterVolumeMappingCreate.md)
233
235
  - [AutosdeOpenapiClient::HostClusterVolumeMappingResponse](docs/HostClusterVolumeMappingResponse.md)
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
7
7
  | [**host_clusters_get**](HostClusterApi.md#host_clusters_get) | **GET** /host-clusters | |
8
8
  | [**host_clusters_pk_delete**](HostClusterApi.md#host_clusters_pk_delete) | **DELETE** /host-clusters/{pk} | |
9
9
  | [**host_clusters_pk_get**](HostClusterApi.md#host_clusters_pk_get) | **GET** /host-clusters/{pk} | |
10
+ | [**host_clusters_pk_put**](HostClusterApi.md#host_clusters_pk_put) | **PUT** /host-clusters/{pk} | |
10
11
  | [**host_clusters_post**](HostClusterApi.md#host_clusters_post) | **POST** /host-clusters | |
11
12
 
12
13
 
@@ -208,6 +209,75 @@ end
208
209
  - **Accept**: */*
209
210
 
210
211
 
212
+ ## host_clusters_pk_put
213
+
214
+ > <AsyncResponse> host_clusters_pk_put(pk, host_cluster_update)
215
+
216
+
217
+
218
+ ### Examples
219
+
220
+ ```ruby
221
+ require 'time'
222
+ require 'autosde_openapi_client'
223
+ # setup authorization
224
+ AutosdeOpenapiClient.configure do |config|
225
+ # Configure Bearer authorization: bearerAuth
226
+ config.access_token = 'YOUR_BEARER_TOKEN'
227
+ end
228
+
229
+ api_instance = AutosdeOpenapiClient::HostClusterApi.new
230
+ pk = 56 # Integer |
231
+ host_cluster_update = AutosdeOpenapiClient::HostClusterUpdate.new # HostClusterUpdate |
232
+
233
+ begin
234
+
235
+ result = api_instance.host_clusters_pk_put(pk, host_cluster_update)
236
+ p result
237
+ rescue AutosdeOpenapiClient::ApiError => e
238
+ puts "Error when calling HostClusterApi->host_clusters_pk_put: #{e}"
239
+ end
240
+ ```
241
+
242
+ #### Using the host_clusters_pk_put_with_http_info variant
243
+
244
+ This returns an Array which contains the response data, status code and headers.
245
+
246
+ > <Array(<AsyncResponse>, Integer, Hash)> host_clusters_pk_put_with_http_info(pk, host_cluster_update)
247
+
248
+ ```ruby
249
+ begin
250
+
251
+ data, status_code, headers = api_instance.host_clusters_pk_put_with_http_info(pk, host_cluster_update)
252
+ p status_code # => 2xx
253
+ p headers # => { ... }
254
+ p data # => <AsyncResponse>
255
+ rescue AutosdeOpenapiClient::ApiError => e
256
+ puts "Error when calling HostClusterApi->host_clusters_pk_put_with_http_info: #{e}"
257
+ end
258
+ ```
259
+
260
+ ### Parameters
261
+
262
+ | Name | Type | Description | Notes |
263
+ | ---- | ---- | ----------- | ----- |
264
+ | **pk** | **Integer** | | |
265
+ | **host_cluster_update** | [**HostClusterUpdate**](HostClusterUpdate.md) | | |
266
+
267
+ ### Return type
268
+
269
+ [**AsyncResponse**](AsyncResponse.md)
270
+
271
+ ### Authorization
272
+
273
+ [bearerAuth](../README.md#bearerAuth)
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: application/json
278
+ - **Accept**: */*
279
+
280
+
211
281
  ## host_clusters_post
212
282
 
213
283
  > <AsyncResponse> host_clusters_post(host_cluster_create)
@@ -0,0 +1,28 @@
1
+ # AutosdeOpenapiClient::HostClusterUpdate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | name | [optional] |
8
+ | **owner_id** | **String** | owner_id | [optional] |
9
+ | **owner_name** | **String** | owner_name | [optional] |
10
+ | **protocol** | **String** | protocol | [optional] |
11
+ | **status** | **String** | status | [optional] |
12
+ | **volumes** | [**Volume**](Volume.md) | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'autosde_openapi_client'
18
+
19
+ instance = AutosdeOpenapiClient::HostClusterUpdate.new(
20
+ name: null,
21
+ owner_id: null,
22
+ owner_name: null,
23
+ protocol: null,
24
+ status: null,
25
+ volumes: null
26
+ )
27
+ ```
28
+
@@ -190,6 +190,73 @@ module AutosdeOpenapiClient
190
190
  return data, status_code, headers
191
191
  end
192
192
 
193
+ # @param pk [Integer]
194
+ # @param host_cluster_update [HostClusterUpdate]
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [AsyncResponse]
197
+ def host_clusters_pk_put(pk, host_cluster_update, opts = {})
198
+ data, _status_code, _headers = host_clusters_pk_put_with_http_info(pk, host_cluster_update, opts)
199
+ data
200
+ end
201
+
202
+ # @param pk [Integer]
203
+ # @param host_cluster_update [HostClusterUpdate]
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
206
+ def host_clusters_pk_put_with_http_info(pk, host_cluster_update, opts = {})
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_pk_put ...'
209
+ end
210
+ # verify the required parameter 'pk' is set
211
+ if @api_client.config.client_side_validation && pk.nil?
212
+ fail ArgumentError, "Missing the required parameter 'pk' when calling HostClusterApi.host_clusters_pk_put"
213
+ end
214
+ # verify the required parameter 'host_cluster_update' is set
215
+ if @api_client.config.client_side_validation && host_cluster_update.nil?
216
+ fail ArgumentError, "Missing the required parameter 'host_cluster_update' when calling HostClusterApi.host_clusters_pk_put"
217
+ end
218
+ # resource path
219
+ local_var_path = '/host-clusters/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
220
+
221
+ # query parameters
222
+ query_params = opts[:query_params] || {}
223
+
224
+ # header parameters
225
+ header_params = opts[:header_params] || {}
226
+ # HTTP header 'Accept' (if needed)
227
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
228
+ # HTTP header 'Content-Type'
229
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
230
+
231
+ # form parameters
232
+ form_params = opts[:form_params] || {}
233
+
234
+ # http body (model)
235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_update)
236
+
237
+ # return_type
238
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
239
+
240
+ # auth_names
241
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
242
+
243
+ new_options = opts.merge(
244
+ :operation => :"HostClusterApi.host_clusters_pk_put",
245
+ :header_params => header_params,
246
+ :query_params => query_params,
247
+ :form_params => form_params,
248
+ :body => post_body,
249
+ :auth_names => auth_names,
250
+ :return_type => return_type
251
+ )
252
+
253
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
254
+ if @api_client.config.debugging
255
+ @api_client.config.logger.debug "API called: HostClusterApi#host_clusters_pk_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
256
+ end
257
+ return data, status_code, headers
258
+ end
259
+
193
260
  # @param host_cluster_create [HostClusterCreate]
194
261
  # @param [Hash] opts the optional parameters
195
262
  # @return [AsyncResponse]
@@ -0,0 +1,329 @@
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 HostClusterUpdate
19
+ # name
20
+ attr_accessor :name
21
+
22
+ # owner_id
23
+ attr_accessor :owner_id
24
+
25
+ # owner_name
26
+ attr_accessor :owner_name
27
+
28
+ # protocol
29
+ attr_accessor :protocol
30
+
31
+ # status
32
+ attr_accessor :status
33
+
34
+ attr_accessor :volumes
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'name' => :'name',
40
+ :'owner_id' => :'owner_id',
41
+ :'owner_name' => :'owner_name',
42
+ :'protocol' => :'protocol',
43
+ :'status' => :'status',
44
+ :'volumes' => :'volumes'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'name' => :'String',
57
+ :'owner_id' => :'String',
58
+ :'owner_name' => :'String',
59
+ :'protocol' => :'String',
60
+ :'status' => :'String',
61
+ :'volumes' => :'Volume'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::HostClusterUpdate` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::HostClusterUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
88
+ end
89
+
90
+ if attributes.key?(:'owner_id')
91
+ self.owner_id = attributes[:'owner_id']
92
+ end
93
+
94
+ if attributes.key?(:'owner_name')
95
+ self.owner_name = attributes[:'owner_name']
96
+ end
97
+
98
+ if attributes.key?(:'protocol')
99
+ self.protocol = attributes[:'protocol']
100
+ end
101
+
102
+ if attributes.key?(:'status')
103
+ self.status = attributes[:'status']
104
+ end
105
+
106
+ if attributes.key?(:'volumes')
107
+ self.volumes = attributes[:'volumes']
108
+ end
109
+ end
110
+
111
+ # Show invalid properties with the reasons. Usually used together with valid?
112
+ # @return Array for valid properties with the reasons
113
+ def list_invalid_properties
114
+ invalid_properties = Array.new
115
+ if !@name.nil? && @name.to_s.length > 15
116
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
117
+ end
118
+
119
+ if !@owner_id.nil? && @owner_id.to_s.length > 15
120
+ invalid_properties.push('invalid value for "owner_id", the character length must be smaller than or equal to 15.')
121
+ end
122
+
123
+ if !@owner_name.nil? && @owner_name.to_s.length > 15
124
+ invalid_properties.push('invalid value for "owner_name", the character length must be smaller than or equal to 15.')
125
+ end
126
+
127
+ if !@protocol.nil? && @protocol.to_s.length > 15
128
+ invalid_properties.push('invalid value for "protocol", the character length must be smaller than or equal to 15.')
129
+ end
130
+
131
+ invalid_properties
132
+ end
133
+
134
+ # Check to see if the all the properties in the model are valid
135
+ # @return true if the model is valid
136
+ def valid?
137
+ return false if !@name.nil? && @name.to_s.length > 15
138
+ return false if !@owner_id.nil? && @owner_id.to_s.length > 15
139
+ return false if !@owner_name.nil? && @owner_name.to_s.length > 15
140
+ return false if !@protocol.nil? && @protocol.to_s.length > 15
141
+ true
142
+ end
143
+
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] name Value to be assigned
146
+ def name=(name)
147
+ if !name.nil? && name.to_s.length > 15
148
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
149
+ end
150
+
151
+ @name = name
152
+ end
153
+
154
+ # Custom attribute writer method with validation
155
+ # @param [Object] owner_id Value to be assigned
156
+ def owner_id=(owner_id)
157
+ if !owner_id.nil? && owner_id.to_s.length > 15
158
+ fail ArgumentError, 'invalid value for "owner_id", the character length must be smaller than or equal to 15.'
159
+ end
160
+
161
+ @owner_id = owner_id
162
+ end
163
+
164
+ # Custom attribute writer method with validation
165
+ # @param [Object] owner_name Value to be assigned
166
+ def owner_name=(owner_name)
167
+ if !owner_name.nil? && owner_name.to_s.length > 15
168
+ fail ArgumentError, 'invalid value for "owner_name", the character length must be smaller than or equal to 15.'
169
+ end
170
+
171
+ @owner_name = owner_name
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] protocol Value to be assigned
176
+ def protocol=(protocol)
177
+ if !protocol.nil? && protocol.to_s.length > 15
178
+ fail ArgumentError, 'invalid value for "protocol", the character length must be smaller than or equal to 15.'
179
+ end
180
+
181
+ @protocol = protocol
182
+ end
183
+
184
+ # Checks equality by comparing each attribute.
185
+ # @param [Object] Object to be compared
186
+ def ==(o)
187
+ return true if self.equal?(o)
188
+ self.class == o.class &&
189
+ name == o.name &&
190
+ owner_id == o.owner_id &&
191
+ owner_name == o.owner_name &&
192
+ protocol == o.protocol &&
193
+ status == o.status &&
194
+ volumes == o.volumes
195
+ end
196
+
197
+ # @see the `==` method
198
+ # @param [Object] Object to be compared
199
+ def eql?(o)
200
+ self == o
201
+ end
202
+
203
+ # Calculates hash code according to all attributes.
204
+ # @return [Integer] Hash code
205
+ def hash
206
+ [name, owner_id, owner_name, protocol, status, volumes].hash
207
+ end
208
+
209
+ # Builds the object from hash
210
+ # @param [Hash] attributes Model attributes in the form of hash
211
+ # @return [Object] Returns the model itself
212
+ def self.build_from_hash(attributes)
213
+ new.build_from_hash(attributes)
214
+ end
215
+
216
+ # Builds the object from hash
217
+ # @param [Hash] attributes Model attributes in the form of hash
218
+ # @return [Object] Returns the model itself
219
+ def build_from_hash(attributes)
220
+ return nil unless attributes.is_a?(Hash)
221
+ self.class.openapi_types.each_pair do |key, type|
222
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
223
+ self.send("#{key}=", nil)
224
+ elsif type =~ /\AArray<(.*)>/i
225
+ # check to ensure the input is an array given that the attribute
226
+ # is documented as an array but the input is not
227
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
228
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
229
+ end
230
+ elsif !attributes[self.class.attribute_map[key]].nil?
231
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
232
+ end
233
+ end
234
+
235
+ self
236
+ end
237
+
238
+ # Deserializes the data based on type
239
+ # @param string type Data type
240
+ # @param string value Value to be deserialized
241
+ # @return [Object] Deserialized data
242
+ def _deserialize(type, value)
243
+ case type.to_sym
244
+ when :Time
245
+ Time.parse(value)
246
+ when :Date
247
+ Date.parse(value)
248
+ when :String
249
+ value.to_s
250
+ when :Integer
251
+ value.to_i
252
+ when :Float
253
+ value.to_f
254
+ when :Boolean
255
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
256
+ true
257
+ else
258
+ false
259
+ end
260
+ when :Object
261
+ # generic object (usually a Hash), return directly
262
+ value
263
+ when /\AArray<(?<inner_type>.+)>\z/
264
+ inner_type = Regexp.last_match[:inner_type]
265
+ value.map { |v| _deserialize(inner_type, v) }
266
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
267
+ k_type = Regexp.last_match[:k_type]
268
+ v_type = Regexp.last_match[:v_type]
269
+ {}.tap do |hash|
270
+ value.each do |k, v|
271
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
272
+ end
273
+ end
274
+ else # model
275
+ # models (e.g. Pet) or oneOf
276
+ klass = AutosdeOpenapiClient.const_get(type)
277
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
278
+ end
279
+ end
280
+
281
+ # Returns the string representation of the object
282
+ # @return [String] String presentation of the object
283
+ def to_s
284
+ to_hash.to_s
285
+ end
286
+
287
+ # to_body is an alias to to_hash (backward compatibility)
288
+ # @return [Hash] Returns the object in the form of hash
289
+ def to_body
290
+ to_hash
291
+ end
292
+
293
+ # Returns the object in the form of hash
294
+ # @return [Hash] Returns the object in the form of hash
295
+ def to_hash
296
+ hash = {}
297
+ self.class.attribute_map.each_pair do |attr, param|
298
+ value = self.send(attr)
299
+ if value.nil?
300
+ is_nullable = self.class.openapi_nullable.include?(attr)
301
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
302
+ end
303
+
304
+ hash[param] = _to_hash(value)
305
+ end
306
+ hash
307
+ end
308
+
309
+ # Outputs non-array value in the form of hash
310
+ # For object, use to_hash. Otherwise, just return the value
311
+ # @param [Object] value Any valid value
312
+ # @return [Hash] Returns the value in the form of hash
313
+ def _to_hash(value)
314
+ if value.is_a?(Array)
315
+ value.compact.map { |v| _to_hash(v) }
316
+ elsif value.is_a?(Hash)
317
+ {}.tap do |hash|
318
+ value.each { |k, v| hash[k] = _to_hash(v) }
319
+ end
320
+ elsif value.respond_to? :to_hash
321
+ value.to_hash
322
+ else
323
+ value
324
+ end
325
+ end
326
+
327
+ end
328
+
329
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 3.0.2
6
+ The version of the OpenAPI document: 3.1.0
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 = '3.0.2'
14
+ VERSION = '3.1.0'
15
15
  end
@@ -39,6 +39,7 @@ require 'autosde_openapi_client/models/host_cluster'
39
39
  require 'autosde_openapi_client/models/host_cluster_create'
40
40
  require 'autosde_openapi_client/models/host_cluster_membership'
41
41
  require 'autosde_openapi_client/models/host_cluster_response'
42
+ require 'autosde_openapi_client/models/host_cluster_update'
42
43
  require 'autosde_openapi_client/models/host_cluster_volume_mapping'
43
44
  require 'autosde_openapi_client/models/host_cluster_volume_mapping_create'
44
45
  require 'autosde_openapi_client/models/host_cluster_volume_mapping_response'
@@ -61,6 +61,17 @@ describe 'HostClusterApi' do
61
61
  end
62
62
  end
63
63
 
64
+ # unit tests for host_clusters_pk_put
65
+ # @param pk
66
+ # @param host_cluster_update
67
+ # @param [Hash] opts the optional parameters
68
+ # @return [AsyncResponse]
69
+ describe 'host_clusters_pk_put test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
64
75
  # unit tests for host_clusters_post
65
76
  # @param host_cluster_create
66
77
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,64 @@
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::HostClusterUpdate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterUpdate do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterUpdate.new }
22
+
23
+ describe 'test an instance of HostClusterUpdate' do
24
+ it 'should create an instance of HostClusterUpdate' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterUpdate)
26
+ end
27
+ end
28
+ describe 'test attribute "name"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "owner_id"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "owner_name"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "protocol"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "status"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "volumes"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ 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: 3.0.2
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-22 00:00:00.000000000 Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -96,6 +96,7 @@ files:
96
96
  - docs/HostClusterMembership.md
97
97
  - docs/HostClusterMembershipApi.md
98
98
  - docs/HostClusterResponse.md
99
+ - docs/HostClusterUpdate.md
99
100
  - docs/HostClusterVolumeMapping.md
100
101
  - docs/HostClusterVolumeMappingApi.md
101
102
  - docs/HostClusterVolumeMappingCreate.md
@@ -232,6 +233,7 @@ files:
232
233
  - lib/autosde_openapi_client/models/host_cluster_create.rb
233
234
  - lib/autosde_openapi_client/models/host_cluster_membership.rb
234
235
  - lib/autosde_openapi_client/models/host_cluster_response.rb
236
+ - lib/autosde_openapi_client/models/host_cluster_update.rb
235
237
  - lib/autosde_openapi_client/models/host_cluster_volume_mapping.rb
236
238
  - lib/autosde_openapi_client/models/host_cluster_volume_mapping_create.rb
237
239
  - lib/autosde_openapi_client/models/host_cluster_volume_mapping_response.rb
@@ -343,6 +345,7 @@ files:
343
345
  - spec/models/host_cluster_membership_spec.rb
344
346
  - spec/models/host_cluster_response_spec.rb
345
347
  - spec/models/host_cluster_spec.rb
348
+ - spec/models/host_cluster_update_spec.rb
346
349
  - spec/models/host_cluster_volume_mapping_create_spec.rb
347
350
  - spec/models/host_cluster_volume_mapping_response_spec.rb
348
351
  - spec/models/host_cluster_volume_mapping_spec.rb
@@ -422,115 +425,116 @@ signing_key:
422
425
  specification_version: 4
423
426
  summary: Site Manager API Ruby Gem
424
427
  test_files:
428
+ - spec/api/host_volume_connection_api_spec.rb
429
+ - spec/api/storage_host_api_spec.rb
430
+ - spec/api/storage_host_wwpn_candidates_api_spec.rb
425
431
  - spec/api/capability_translation_api_spec.rb
432
+ - spec/api/storage_hosts_mapping_api_spec.rb
433
+ - spec/api/auto_sde_role_api_spec.rb
434
+ - spec/api/host_cluster_api_spec.rb
426
435
  - spec/api/celery_config_api_spec.rb
436
+ - spec/api/host_cluster_volume_mapping_api_spec.rb
437
+ - spec/api/event_api_spec.rb
438
+ - spec/api/auto_sde_project_api_spec.rb
427
439
  - spec/api/refresh_system_api_spec.rb
428
- - spec/api/snapshot_api_spec.rb
429
- - spec/api/system_type_api_spec.rb
430
- - spec/api/storage_host_wwpn_candidates_api_spec.rb
431
- - spec/api/auto_sde_role_api_spec.rb
432
- - spec/api/host_api_spec.rb
433
- - spec/api/account_api_spec.rb
434
- - spec/api/volume_api_spec.rb
440
+ - spec/api/service_abstract_capability_value_api_spec.rb
435
441
  - spec/api/abstract_capability_api_spec.rb
436
- - spec/api/auto_sde_project_api_spec.rb
437
- - spec/api/storage_resource_api_spec.rb
438
- - spec/api/host_cluster_volume_mapping_api_spec.rb
442
+ - spec/api/storage_system_api_spec.rb
443
+ - spec/api/account_api_spec.rb
439
444
  - spec/api/service_api_spec.rb
440
- - spec/api/volume_migration_api_spec.rb
441
- - spec/api/authentication_api_spec.rb
442
- - spec/api/job_api_spec.rb
445
+ - spec/api/system_type_api_spec.rb
446
+ - spec/api/snapshot_api_spec.rb
443
447
  - spec/api/user_api_spec.rb
444
- - spec/api/storage_host_api_spec.rb
445
- - spec/api/service_resource_attachment_api_spec.rb
446
- - spec/api/native_capability_api_spec.rb
447
- - spec/api/profile_api_spec.rb
448
- - spec/api/storage_hosts_mapping_api_spec.rb
448
+ - spec/api/volume_api_spec.rb
449
+ - spec/api/job_api_spec.rb
449
450
  - spec/api/volume_clone_api_spec.rb
450
- - spec/api/host_cluster_membership_api_spec.rb
451
- - spec/api/provisioning_strategy_api_spec.rb
452
- - spec/api/storage_system_api_spec.rb
453
- - spec/api/service_abstract_capability_value_api_spec.rb
454
- - spec/api/host_volume_connection_api_spec.rb
455
- - spec/api/host_cluster_api_spec.rb
456
- - spec/api/event_api_spec.rb
457
451
  - spec/api/address_api_spec.rb
458
452
  - spec/api/validate_system_api_spec.rb
453
+ - spec/api/native_capability_api_spec.rb
454
+ - spec/api/authentication_api_spec.rb
455
+ - spec/api/host_cluster_membership_api_spec.rb
456
+ - spec/api/service_resource_attachment_api_spec.rb
457
+ - spec/api/host_api_spec.rb
458
+ - spec/api/provisioning_strategy_api_spec.rb
459
+ - spec/api/storage_resource_api_spec.rb
460
+ - spec/api/volume_migration_api_spec.rb
461
+ - spec/api/profile_api_spec.rb
459
462
  - spec/api_client_spec.rb
460
463
  - spec/configuration_spec.rb
461
- - spec/models/capability_translation_create_spec.rb
462
- - spec/models/host_create_spec.rb
463
- - spec/models/account_post_request_spec.rb
464
- - spec/models/authentication_spec.rb
465
- - spec/models/native_capability_spec.rb
464
+ - spec/models/storage_host_create_spec.rb
466
465
  - spec/models/storage_hosts_mapping_response_spec.rb
467
- - spec/models/storage_hosts_mapping_spec.rb
468
- - spec/models/refresh_system_spec.rb
469
- - spec/models/service_resource_attachment_spec.rb
470
- - spec/models/system_type_create_spec.rb
471
- - spec/models/event_spec.rb
472
- - spec/models/address_create_spec.rb
473
- - spec/models/service_update_spec.rb
474
- - spec/models/host_cluster_response_spec.rb
475
- - spec/models/storage_system_update_spec.rb
476
- - spec/models/storage_resource_create_spec.rb
477
- - spec/models/service_abstract_capability_value_response_spec.rb
478
- - spec/models/snapshot_spec.rb
479
- - spec/models/address_spec.rb
480
- - spec/models/service_resource_attachment_response_spec.rb
481
- - spec/models/host_cluster_volume_mapping_create_spec.rb
482
- - spec/models/storage_host_wwpn_candidates_spec.rb
483
- - spec/models/host_cluster_volume_mapping_response_spec.rb
484
- - spec/models/storage_system_response_spec.rb
485
- - spec/models/job_response_spec.rb
486
- - spec/models/storage_system_spec.rb
487
- - spec/models/volume_clone_spec.rb
488
- - spec/models/storage_host_response_spec.rb
489
466
  - spec/models/storage_resource_spec.rb
467
+ - spec/models/storage_host_spec.rb
468
+ - spec/models/auto_sde_role_spec.rb
469
+ - spec/models/host_cluster_volume_mapping_spec.rb
470
+ - spec/models/service_spec.rb
471
+ - spec/models/job_spec.rb
472
+ - spec/models/account_post_response_spec.rb
490
473
  - spec/models/service_abstract_capability_value_spec.rb
491
- - spec/models/storage_host_update_spec.rb
492
- - spec/models/host_cluster_create_spec.rb
474
+ - spec/models/host_cluster_update_spec.rb
475
+ - spec/models/auto_sde_project_spec.rb
493
476
  - spec/models/auth_response_spec.rb
494
- - spec/models/service_response_spec.rb
495
- - spec/models/validate_system_spec.rb
496
- - spec/models/job_create_spec.rb
477
+ - spec/models/host_create_spec.rb
478
+ - spec/models/provisioning_strategy_spec.rb
497
479
  - spec/models/service_create_spec.rb
498
- - spec/models/storage_hosts_mapping_create_spec.rb
499
- - spec/models/volume_spec.rb
500
- - spec/models/account_post_response_spec.rb
501
- - spec/models/system_type_response_spec.rb
502
- - spec/models/volume_response_spec.rb
480
+ - spec/models/host_cluster_spec.rb
481
+ - spec/models/service_resource_attachment_response_spec.rb
482
+ - spec/models/refresh_system_spec.rb
483
+ - spec/models/job_response_spec.rb
503
484
  - spec/models/volume_migration_spec.rb
504
- - spec/models/host_cluster_membership_spec.rb
505
- - spec/models/abstract_capability_spec.rb
506
- - spec/models/storage_resource_response_spec.rb
507
- - spec/models/capability_translation_spec.rb
508
- - spec/models/snapshot_response_spec.rb
485
+ - spec/models/volume_create_spec.rb
486
+ - spec/models/account_spec.rb
487
+ - spec/models/storage_resource_update_spec.rb
488
+ - spec/models/account_post_request_spec.rb
489
+ - spec/models/event_spec.rb
490
+ - spec/models/host_volume_connection_spec.rb
491
+ - spec/models/user_spec.rb
509
492
  - spec/models/user_create_spec.rb
493
+ - spec/models/storage_system_update_spec.rb
494
+ - spec/models/storage_hosts_mapping_spec.rb
495
+ - spec/models/system_type_response_spec.rb
496
+ - spec/models/system_type_create_spec.rb
497
+ - spec/models/validate_system_spec.rb
510
498
  - spec/models/profile_spec.rb
511
- - spec/models/user_spec.rb
512
- - spec/models/abstract_capability_response_spec.rb
513
- - spec/models/host_cluster_volume_mapping_spec.rb
514
- - spec/models/host_volume_connection_spec.rb
499
+ - spec/models/capability_translation_create_spec.rb
500
+ - spec/models/volume_clone_spec.rb
501
+ - spec/models/storage_host_wwpn_candidates_spec.rb
502
+ - spec/models/storage_system_create_spec.rb
515
503
  - spec/models/snapshot_create_spec.rb
516
- - spec/models/volume_create_spec.rb
504
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
505
+ - spec/models/abstract_capability_response_spec.rb
506
+ - spec/models/event_response_spec.rb
507
+ - spec/models/host_cluster_membership_spec.rb
517
508
  - spec/models/host_spec.rb
509
+ - spec/models/storage_host_response_spec.rb
510
+ - spec/models/volume_response_spec.rb
511
+ - spec/models/address_spec.rb
512
+ - spec/models/celery_config_spec.rb
513
+ - spec/models/host_cluster_volume_mapping_response_spec.rb
518
514
  - spec/models/host_volume_connection_create_spec.rb
519
- - spec/models/account_spec.rb
520
- - spec/models/event_response_spec.rb
521
- - spec/models/storage_resource_update_spec.rb
522
- - spec/models/job_spec.rb
515
+ - spec/models/service_response_spec.rb
516
+ - spec/models/host_cluster_response_spec.rb
517
+ - spec/models/storage_system_spec.rb
518
+ - spec/models/job_create_spec.rb
519
+ - spec/models/capability_translation_spec.rb
520
+ - spec/models/storage_system_response_spec.rb
521
+ - spec/models/service_update_spec.rb
522
+ - spec/models/abstract_capability_spec.rb
523
+ - spec/models/storage_resource_create_spec.rb
524
+ - spec/models/storage_hosts_mapping_create_spec.rb
525
+ - spec/models/authentication_spec.rb
526
+ - spec/models/volume_spec.rb
527
+ - spec/models/service_resource_attachment_spec.rb
528
+ - spec/models/native_capability_spec.rb
523
529
  - spec/models/volume_update_spec.rb
530
+ - spec/models/async_response_spec.rb
531
+ - spec/models/storage_host_update_spec.rb
524
532
  - spec/models/user_update_spec.rb
525
- - spec/models/auto_sde_project_spec.rb
526
- - spec/models/storage_host_create_spec.rb
527
- - spec/models/celery_config_spec.rb
533
+ - spec/models/service_abstract_capability_value_response_spec.rb
534
+ - spec/models/snapshot_spec.rb
535
+ - spec/models/host_cluster_create_spec.rb
536
+ - spec/models/snapshot_response_spec.rb
528
537
  - spec/models/system_type_spec.rb
529
- - spec/models/storage_host_spec.rb
530
- - spec/models/storage_system_create_spec.rb
531
- - spec/models/async_response_spec.rb
532
- - spec/models/host_cluster_spec.rb
533
- - spec/models/provisioning_strategy_spec.rb
534
- - spec/models/auto_sde_role_spec.rb
535
- - spec/models/service_spec.rb
538
+ - spec/models/address_create_spec.rb
539
+ - spec/models/storage_resource_response_spec.rb
536
540
  - spec/spec_helper.rb