autosde_openapi_client 1.2.3 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/docs/AddressApi.md +4 -4
  4. data/docs/EventApi.md +4 -4
  5. data/docs/HostApi.md +4 -4
  6. data/docs/HostClusterMembershipApi.md +4 -4
  7. data/docs/HostVolumeConnectionApi.md +4 -4
  8. data/docs/Job.md +2 -0
  9. data/docs/ServiceApi.md +4 -4
  10. data/docs/ServiceResourceAttachmentApi.md +4 -4
  11. data/docs/SnapshotApi.md +4 -4
  12. data/docs/StorageHostApi.md +4 -4
  13. data/docs/StorageHostsMappingApi.md +4 -4
  14. data/docs/StorageResourceApi.md +6 -6
  15. data/docs/StorageResourceUpdate.md +20 -0
  16. data/docs/StorageSystemApi.md +4 -4
  17. data/docs/SystemTypeApi.md +4 -4
  18. data/docs/VolumeApi.md +4 -4
  19. data/lib/autosde_openapi_client/api/address_api.rb +3 -3
  20. data/lib/autosde_openapi_client/api/event_api.rb +3 -3
  21. data/lib/autosde_openapi_client/api/host_api.rb +3 -3
  22. data/lib/autosde_openapi_client/api/host_cluster_membership_api.rb +3 -3
  23. data/lib/autosde_openapi_client/api/host_volume_connection_api.rb +3 -3
  24. data/lib/autosde_openapi_client/api/service_api.rb +3 -3
  25. data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +3 -3
  26. data/lib/autosde_openapi_client/api/snapshot_api.rb +3 -3
  27. data/lib/autosde_openapi_client/api/storage_host_api.rb +3 -3
  28. data/lib/autosde_openapi_client/api/storage_hosts_mapping_api.rb +3 -3
  29. data/lib/autosde_openapi_client/api/storage_resource_api.rb +9 -9
  30. data/lib/autosde_openapi_client/api/storage_system_api.rb +3 -3
  31. data/lib/autosde_openapi_client/api/system_type_api.rb +3 -3
  32. data/lib/autosde_openapi_client/api/volume_api.rb +3 -3
  33. data/lib/autosde_openapi_client/models/job.rb +11 -1
  34. data/lib/autosde_openapi_client/models/storage_resource_update.rb +232 -0
  35. data/lib/autosde_openapi_client/version.rb +2 -2
  36. data/lib/autosde_openapi_client.rb +1 -0
  37. data/spec/api/address_api_spec.rb +1 -1
  38. data/spec/api/event_api_spec.rb +1 -1
  39. data/spec/api/host_api_spec.rb +1 -1
  40. data/spec/api/host_cluster_membership_api_spec.rb +1 -1
  41. data/spec/api/host_volume_connection_api_spec.rb +1 -1
  42. data/spec/api/service_api_spec.rb +1 -1
  43. data/spec/api/service_resource_attachment_api_spec.rb +1 -1
  44. data/spec/api/snapshot_api_spec.rb +1 -1
  45. data/spec/api/storage_host_api_spec.rb +1 -1
  46. data/spec/api/storage_hosts_mapping_api_spec.rb +1 -1
  47. data/spec/api/storage_resource_api_spec.rb +1 -1
  48. data/spec/api/storage_system_api_spec.rb +1 -1
  49. data/spec/api/system_type_api_spec.rb +1 -1
  50. data/spec/api/volume_api_spec.rb +1 -1
  51. data/spec/models/job_spec.rb +6 -0
  52. data/spec/models/storage_resource_update_spec.rb +40 -0
  53. metadata +83 -79
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param host_cluster_membership [HostClusterMembership]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [HostClusterMembership]
195
+ # @return [AsyncResponse]
196
196
  def host_cluster_membership_post(host_cluster_membership, opts = {})
197
197
  data, _status_code, _headers = host_cluster_membership_post_with_http_info(host_cluster_membership, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param host_cluster_membership [HostClusterMembership]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(HostClusterMembership, Integer, Hash)>] HostClusterMembership data, response status code and response headers
203
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
204
204
  def host_cluster_membership_post_with_http_info(host_cluster_membership, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: HostClusterMembershipApi.host_cluster_membership_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_membership)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'HostClusterMembership'
232
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param host_volume_connection_create [HostVolumeConnectionCreate]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [HostVolumeConnection]
195
+ # @return [AsyncResponse]
196
196
  def host_volume_connection_post(host_volume_connection_create, opts = {})
197
197
  data, _status_code, _headers = host_volume_connection_post_with_http_info(host_volume_connection_create, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param host_volume_connection_create [HostVolumeConnectionCreate]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(HostVolumeConnection, Integer, Hash)>] HostVolumeConnection data, response status code and response headers
203
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
204
204
  def host_volume_connection_post_with_http_info(host_volume_connection_create, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: HostVolumeConnectionApi.host_volume_connection_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(host_volume_connection_create)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'HostVolumeConnection'
232
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -259,7 +259,7 @@ module AutosdeOpenapiClient
259
259
 
260
260
  # @param service_create [ServiceCreate]
261
261
  # @param [Hash] opts the optional parameters
262
- # @return [Service]
262
+ # @return [AsyncResponse]
263
263
  def services_post(service_create, opts = {})
264
264
  data, _status_code, _headers = services_post_with_http_info(service_create, opts)
265
265
  data
@@ -267,7 +267,7 @@ module AutosdeOpenapiClient
267
267
 
268
268
  # @param service_create [ServiceCreate]
269
269
  # @param [Hash] opts the optional parameters
270
- # @return [Array<(Service, Integer, Hash)>] Service data, response status code and response headers
270
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
271
271
  def services_post_with_http_info(service_create, opts = {})
272
272
  if @api_client.config.debugging
273
273
  @api_client.config.logger.debug 'Calling API: ServiceApi.services_post ...'
@@ -296,7 +296,7 @@ module AutosdeOpenapiClient
296
296
  post_body = opts[:debug_body] || @api_client.object_to_http_body(service_create)
297
297
 
298
298
  # return_type
299
- return_type = opts[:debug_return_type] || 'Service'
299
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
300
300
 
301
301
  # auth_names
302
302
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param service_resource_attachment [ServiceResourceAttachment]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [ServiceResourceAttachment]
195
+ # @return [AsyncResponse]
196
196
  def service_resource_attachment_post(service_resource_attachment, opts = {})
197
197
  data, _status_code, _headers = service_resource_attachment_post_with_http_info(service_resource_attachment, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param service_resource_attachment [ServiceResourceAttachment]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(ServiceResourceAttachment, Integer, Hash)>] ServiceResourceAttachment data, response status code and response headers
203
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
204
204
  def service_resource_attachment_post_with_http_info(service_resource_attachment, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: ServiceResourceAttachmentApi.service_resource_attachment_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(service_resource_attachment)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'ServiceResourceAttachment'
232
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param snapshot_create [SnapshotCreate]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [Snapshot]
195
+ # @return [AsyncResponse]
196
196
  def snapshots_post(snapshot_create, opts = {})
197
197
  data, _status_code, _headers = snapshots_post_with_http_info(snapshot_create, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param snapshot_create [SnapshotCreate]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(Snapshot, Integer, Hash)>] Snapshot data, response status code and response headers
203
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
204
204
  def snapshots_post_with_http_info(snapshot_create, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: SnapshotApi.snapshots_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(snapshot_create)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'Snapshot'
232
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -259,7 +259,7 @@ module AutosdeOpenapiClient
259
259
 
260
260
  # @param storage_host_create [StorageHostCreate]
261
261
  # @param [Hash] opts the optional parameters
262
- # @return [StorageHostResponse]
262
+ # @return [AsyncResponse]
263
263
  def storage_hosts_post(storage_host_create, opts = {})
264
264
  data, _status_code, _headers = storage_hosts_post_with_http_info(storage_host_create, opts)
265
265
  data
@@ -267,7 +267,7 @@ module AutosdeOpenapiClient
267
267
 
268
268
  # @param storage_host_create [StorageHostCreate]
269
269
  # @param [Hash] opts the optional parameters
270
- # @return [Array<(StorageHostResponse, Integer, Hash)>] StorageHostResponse data, response status code and response headers
270
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
271
271
  def storage_hosts_post_with_http_info(storage_host_create, opts = {})
272
272
  if @api_client.config.debugging
273
273
  @api_client.config.logger.debug 'Calling API: StorageHostApi.storage_hosts_post ...'
@@ -296,7 +296,7 @@ module AutosdeOpenapiClient
296
296
  post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_host_create)
297
297
 
298
298
  # return_type
299
- return_type = opts[:debug_return_type] || 'StorageHostResponse'
299
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
300
300
 
301
301
  # auth_names
302
302
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param storage_hosts_mapping_create [StorageHostsMappingCreate]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [StorageHostsMapping]
195
+ # @return [AsyncResponse]
196
196
  def storage_hosts_mapping_post(storage_hosts_mapping_create, opts = {})
197
197
  data, _status_code, _headers = storage_hosts_mapping_post_with_http_info(storage_hosts_mapping_create, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param storage_hosts_mapping_create [StorageHostsMappingCreate]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(StorageHostsMapping, Integer, Hash)>] StorageHostsMapping data, response status code and response headers
203
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
204
204
  def storage_hosts_mapping_post_with_http_info(storage_hosts_mapping_create, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: StorageHostsMappingApi.storage_hosts_mapping_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_hosts_mapping_create)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'StorageHostsMapping'
232
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -191,19 +191,19 @@ module AutosdeOpenapiClient
191
191
  end
192
192
 
193
193
  # @param pk [Integer]
194
- # @param storage_resource_create [StorageResourceCreate]
194
+ # @param storage_resource_update [StorageResourceUpdate]
195
195
  # @param [Hash] opts the optional parameters
196
196
  # @return [AsyncResponse]
197
- def storage_resources_pk_put(pk, storage_resource_create, opts = {})
198
- data, _status_code, _headers = storage_resources_pk_put_with_http_info(pk, storage_resource_create, opts)
197
+ def storage_resources_pk_put(pk, storage_resource_update, opts = {})
198
+ data, _status_code, _headers = storage_resources_pk_put_with_http_info(pk, storage_resource_update, opts)
199
199
  data
200
200
  end
201
201
 
202
202
  # @param pk [Integer]
203
- # @param storage_resource_create [StorageResourceCreate]
203
+ # @param storage_resource_update [StorageResourceUpdate]
204
204
  # @param [Hash] opts the optional parameters
205
205
  # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
206
- def storage_resources_pk_put_with_http_info(pk, storage_resource_create, opts = {})
206
+ def storage_resources_pk_put_with_http_info(pk, storage_resource_update, opts = {})
207
207
  if @api_client.config.debugging
208
208
  @api_client.config.logger.debug 'Calling API: StorageResourceApi.storage_resources_pk_put ...'
209
209
  end
@@ -211,9 +211,9 @@ module AutosdeOpenapiClient
211
211
  if @api_client.config.client_side_validation && pk.nil?
212
212
  fail ArgumentError, "Missing the required parameter 'pk' when calling StorageResourceApi.storage_resources_pk_put"
213
213
  end
214
- # verify the required parameter 'storage_resource_create' is set
215
- if @api_client.config.client_side_validation && storage_resource_create.nil?
216
- fail ArgumentError, "Missing the required parameter 'storage_resource_create' when calling StorageResourceApi.storage_resources_pk_put"
214
+ # verify the required parameter 'storage_resource_update' is set
215
+ if @api_client.config.client_side_validation && storage_resource_update.nil?
216
+ fail ArgumentError, "Missing the required parameter 'storage_resource_update' when calling StorageResourceApi.storage_resources_pk_put"
217
217
  end
218
218
  # resource path
219
219
  local_var_path = '/storage-resources/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
@@ -232,7 +232,7 @@ module AutosdeOpenapiClient
232
232
  form_params = opts[:form_params] || {}
233
233
 
234
234
  # http body (model)
235
- post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_resource_create)
235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_resource_update)
236
236
 
237
237
  # return_type
238
238
  return_type = opts[:debug_return_type] || 'AsyncResponse'
@@ -259,7 +259,7 @@ module AutosdeOpenapiClient
259
259
 
260
260
  # @param storage_system_create [StorageSystemCreate]
261
261
  # @param [Hash] opts the optional parameters
262
- # @return [StorageSystem]
262
+ # @return [AsyncResponse]
263
263
  def storage_systems_post(storage_system_create, opts = {})
264
264
  data, _status_code, _headers = storage_systems_post_with_http_info(storage_system_create, opts)
265
265
  data
@@ -267,7 +267,7 @@ module AutosdeOpenapiClient
267
267
 
268
268
  # @param storage_system_create [StorageSystemCreate]
269
269
  # @param [Hash] opts the optional parameters
270
- # @return [Array<(StorageSystem, Integer, Hash)>] StorageSystem data, response status code and response headers
270
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
271
271
  def storage_systems_post_with_http_info(storage_system_create, opts = {})
272
272
  if @api_client.config.debugging
273
273
  @api_client.config.logger.debug 'Calling API: StorageSystemApi.storage_systems_post ...'
@@ -296,7 +296,7 @@ module AutosdeOpenapiClient
296
296
  post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_system_create)
297
297
 
298
298
  # return_type
299
- return_type = opts[:debug_return_type] || 'StorageSystem'
299
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
300
300
 
301
301
  # auth_names
302
302
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param system_type_create [SystemTypeCreate]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [SystemType]
195
+ # @return [AsyncResponse]
196
196
  def system_types_post(system_type_create, opts = {})
197
197
  data, _status_code, _headers = system_types_post_with_http_info(system_type_create, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param system_type_create [SystemTypeCreate]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(SystemType, Integer, Hash)>] SystemType data, response status code and response headers
203
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
204
204
  def system_types_post_with_http_info(system_type_create, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: SystemTypeApi.system_types_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(system_type_create)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'SystemType'
232
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -259,7 +259,7 @@ module AutosdeOpenapiClient
259
259
 
260
260
  # @param volume_create [VolumeCreate]
261
261
  # @param [Hash] opts the optional parameters
262
- # @return [VolumeResponse]
262
+ # @return [AsyncResponse]
263
263
  def volumes_post(volume_create, opts = {})
264
264
  data, _status_code, _headers = volumes_post_with_http_info(volume_create, opts)
265
265
  data
@@ -267,7 +267,7 @@ module AutosdeOpenapiClient
267
267
 
268
268
  # @param volume_create [VolumeCreate]
269
269
  # @param [Hash] opts the optional parameters
270
- # @return [Array<(VolumeResponse, Integer, Hash)>] VolumeResponse data, response status code and response headers
270
+ # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
271
271
  def volumes_post_with_http_info(volume_create, opts = {})
272
272
  if @api_client.config.debugging
273
273
  @api_client.config.logger.debug 'Calling API: VolumeApi.volumes_post ...'
@@ -296,7 +296,7 @@ module AutosdeOpenapiClient
296
296
  post_body = opts[:debug_body] || @api_client.object_to_http_body(volume_create)
297
297
 
298
298
  # return_type
299
- return_type = opts[:debug_return_type] || 'VolumeResponse'
299
+ return_type = opts[:debug_return_type] || 'AsyncResponse'
300
300
 
301
301
  # auth_names
302
302
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -25,6 +25,9 @@ module AutosdeOpenapiClient
25
25
  # extra
26
26
  attr_accessor :extra
27
27
 
28
+ # result
29
+ attr_accessor :result
30
+
28
31
  # status
29
32
  attr_accessor :status
30
33
 
@@ -46,6 +49,7 @@ module AutosdeOpenapiClient
46
49
  :'date_finished' => :'date_finished',
47
50
  :'date_started' => :'date_started',
48
51
  :'extra' => :'extra',
52
+ :'result' => :'result',
49
53
  :'status' => :'status',
50
54
  :'task_args' => :'task_args',
51
55
  :'task_id' => :'task_id',
@@ -65,6 +69,7 @@ module AutosdeOpenapiClient
65
69
  :'date_finished' => :'Time',
66
70
  :'date_started' => :'Time',
67
71
  :'extra' => :'String',
72
+ :'result' => :'String',
68
73
  :'status' => :'String',
69
74
  :'task_args' => :'String',
70
75
  :'task_id' => :'String',
@@ -106,6 +111,10 @@ module AutosdeOpenapiClient
106
111
  self.extra = attributes[:'extra']
107
112
  end
108
113
 
114
+ if attributes.key?(:'result')
115
+ self.result = attributes[:'result']
116
+ end
117
+
109
118
  if attributes.key?(:'status')
110
119
  self.status = attributes[:'status']
111
120
  end
@@ -148,6 +157,7 @@ module AutosdeOpenapiClient
148
157
  date_finished == o.date_finished &&
149
158
  date_started == o.date_started &&
150
159
  extra == o.extra &&
160
+ result == o.result &&
151
161
  status == o.status &&
152
162
  task_args == o.task_args &&
153
163
  task_id == o.task_id &&
@@ -164,7 +174,7 @@ module AutosdeOpenapiClient
164
174
  # Calculates hash code according to all attributes.
165
175
  # @return [Integer] Hash code
166
176
  def hash
167
- [date_finished, date_started, extra, status, task_args, task_id, task_kwargs, task_name].hash
177
+ [date_finished, date_started, extra, result, status, task_args, task_id, task_kwargs, task_name].hash
168
178
  end
169
179
 
170
180
  # Builds the object from hash
@@ -0,0 +1,232 @@
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 StorageResourceUpdate
19
+ # advanced_attributes_map
20
+ attr_accessor :advanced_attributes_map
21
+
22
+ # name
23
+ attr_accessor :name
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'advanced_attributes_map' => :'advanced_attributes_map',
29
+ :'name' => :'name'
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
+ :'advanced_attributes_map' => :'String',
42
+ :'name' => :'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::StorageResourceUpdate` 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::StorageResourceUpdate`. 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?(:'advanced_attributes_map')
68
+ self.advanced_attributes_map = attributes[:'advanced_attributes_map']
69
+ end
70
+
71
+ if attributes.key?(:'name')
72
+ self.name = attributes[:'name']
73
+ else
74
+ self.name = 'null'
75
+ end
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ true
89
+ end
90
+
91
+ # Checks equality by comparing each attribute.
92
+ # @param [Object] Object to be compared
93
+ def ==(o)
94
+ return true if self.equal?(o)
95
+ self.class == o.class &&
96
+ advanced_attributes_map == o.advanced_attributes_map &&
97
+ name == o.name
98
+ end
99
+
100
+ # @see the `==` method
101
+ # @param [Object] Object to be compared
102
+ def eql?(o)
103
+ self == o
104
+ end
105
+
106
+ # Calculates hash code according to all attributes.
107
+ # @return [Integer] Hash code
108
+ def hash
109
+ [advanced_attributes_map, name].hash
110
+ end
111
+
112
+ # Builds the object from hash
113
+ # @param [Hash] attributes Model attributes in the form of hash
114
+ # @return [Object] Returns the model itself
115
+ def self.build_from_hash(attributes)
116
+ new.build_from_hash(attributes)
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ self.class.openapi_types.each_pair do |key, type|
125
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
126
+ self.send("#{key}=", nil)
127
+ elsif type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
131
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
+ end
133
+ elsif !attributes[self.class.attribute_map[key]].nil?
134
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
+ end
136
+ end
137
+
138
+ self
139
+ end
140
+
141
+ # Deserializes the data based on type
142
+ # @param string type Data type
143
+ # @param string value Value to be deserialized
144
+ # @return [Object] Deserialized data
145
+ def _deserialize(type, value)
146
+ case type.to_sym
147
+ when :Time
148
+ Time.parse(value)
149
+ when :Date
150
+ Date.parse(value)
151
+ when :String
152
+ value.to_s
153
+ when :Integer
154
+ value.to_i
155
+ when :Float
156
+ value.to_f
157
+ when :Boolean
158
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
+ true
160
+ else
161
+ false
162
+ end
163
+ when :Object
164
+ # generic object (usually a Hash), return directly
165
+ value
166
+ when /\AArray<(?<inner_type>.+)>\z/
167
+ inner_type = Regexp.last_match[:inner_type]
168
+ value.map { |v| _deserialize(inner_type, v) }
169
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
+ k_type = Regexp.last_match[:k_type]
171
+ v_type = Regexp.last_match[:v_type]
172
+ {}.tap do |hash|
173
+ value.each do |k, v|
174
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
+ end
176
+ end
177
+ else # model
178
+ # models (e.g. Pet) or oneOf
179
+ klass = AutosdeOpenapiClient.const_get(type)
180
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
181
+ end
182
+ end
183
+
184
+ # Returns the string representation of the object
185
+ # @return [String] String presentation of the object
186
+ def to_s
187
+ to_hash.to_s
188
+ end
189
+
190
+ # to_body is an alias to to_hash (backward compatibility)
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_body
193
+ to_hash
194
+ end
195
+
196
+ # Returns the object in the form of hash
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_hash
199
+ hash = {}
200
+ self.class.attribute_map.each_pair do |attr, param|
201
+ value = self.send(attr)
202
+ if value.nil?
203
+ is_nullable = self.class.openapi_nullable.include?(attr)
204
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
+ end
206
+
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+
230
+ end
231
+
232
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.2.3
6
+ The version of the OpenAPI document: 1.2.6
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.2.3'
14
+ VERSION = '1.2.6'
15
15
  end
@@ -67,6 +67,7 @@ require 'autosde_openapi_client/models/storage_hosts_mapping_response'
67
67
  require 'autosde_openapi_client/models/storage_resource'
68
68
  require 'autosde_openapi_client/models/storage_resource_create'
69
69
  require 'autosde_openapi_client/models/storage_resource_response'
70
+ require 'autosde_openapi_client/models/storage_resource_update'
70
71
  require 'autosde_openapi_client/models/storage_system'
71
72
  require 'autosde_openapi_client/models/storage_system_create'
72
73
  require 'autosde_openapi_client/models/storage_system_update'
@@ -64,7 +64,7 @@ describe 'AddressApi' do
64
64
  # unit tests for addresses_post
65
65
  # @param address_create
66
66
  # @param [Hash] opts the optional parameters
67
- # @return [Address]
67
+ # @return [AsyncResponse]
68
68
  describe 'addresses_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
@@ -64,7 +64,7 @@ describe 'EventApi' do
64
64
  # unit tests for events_post
65
65
  # @param event
66
66
  # @param [Hash] opts the optional parameters
67
- # @return [EventResponse]
67
+ # @return [AsyncResponse]
68
68
  describe 'events_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
@@ -64,7 +64,7 @@ describe 'HostApi' do
64
64
  # unit tests for hosts_post
65
65
  # @param host_create
66
66
  # @param [Hash] opts the optional parameters
67
- # @return [Host]
67
+ # @return [AsyncResponse]
68
68
  describe 'hosts_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