autosde_openapi_client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -7
- data/docs/AbstractCapabilityApi.md +6 -6
- data/docs/AccountApi.md +9 -9
- data/docs/AddressApi.md +6 -6
- data/docs/AuthenticationApi.md +1 -1
- data/docs/AutoSDEProjectApi.md +6 -6
- data/docs/AutoSDERoleApi.md +6 -6
- data/docs/CapabilityTranslationApi.md +6 -6
- data/docs/HostApi.md +6 -6
- data/docs/HostVolumeConnectionApi.md +6 -6
- data/docs/Job.md +29 -0
- data/docs/JobApi.md +104 -0
- data/docs/JobCreate.md +19 -0
- data/docs/NativeCapabilityApi.md +6 -6
- data/docs/ProfileApi.md +6 -6
- data/docs/ProvisioningStrategyApi.md +6 -6
- data/docs/ServiceApi.md +9 -9
- data/docs/ServiceResourceAttachmentApi.md +6 -6
- data/docs/Snapshot.md +25 -0
- data/docs/SnapshotApi.md +204 -0
- data/docs/SnapshotCreate.md +23 -0
- data/docs/StorageHost.md +29 -0
- data/docs/StorageHostApi.md +256 -0
- data/docs/StorageHostCreate.md +37 -0
- data/docs/StorageHostResponse.md +31 -0
- data/docs/StorageHostUpdate.md +21 -0
- data/docs/StorageHostVolumeMapping.md +25 -0
- data/docs/StorageHostVolumeMappingApi.md +204 -0
- data/docs/StorageHostVolumeMappingCreate.md +23 -0
- data/docs/StorageResourceApi.md +9 -9
- data/docs/StorageSystemApi.md +6 -6
- data/docs/SystemTypeApi.md +6 -6
- data/docs/Volume.md +2 -0
- data/docs/VolumeApi.md +9 -9
- data/docs/VolumeCreate.md +2 -0
- data/docs/VolumeResponse.md +2 -0
- data/docs/VolumeSafeDeleteApi.md +6 -6
- data/docs/VolumeUpdate.md +3 -1
- data/lib/openapi_client.rb +108 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/abstract_capability_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/account_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/address_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/authentication_api.rb +5 -4
- data/lib/{autosde_openapi_client → openapi_client}/api/auto_sde_project_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/auto_sde_role_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/capability_translation_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/host_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/host_volume_connection_api.rb +19 -15
- data/lib/openapi_client/api/job_api.rb +136 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/native_capability_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/profile_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/provisioning_strategy_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/service_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/service_resource_attachment_api.rb +19 -15
- data/lib/openapi_client/api/snapshot_api.rb +254 -0
- data/lib/openapi_client/api/storage_host_api.rb +321 -0
- data/lib/openapi_client/api/storage_host_volume_mapping_api.rb +254 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/storage_resource_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/storage_system_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/system_type_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/volume_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/volume_safe_delete_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api_client.rb +46 -45
- data/lib/{autosde_openapi_client → openapi_client}/api_error.rb +1 -1
- data/lib/{autosde_openapi_client → openapi_client}/configuration.rb +34 -7
- data/lib/{autosde_openapi_client → openapi_client}/models/abstract_capability.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account_post_request.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account_post_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/address.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/address_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auth_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/authentication.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auto_sde_project.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auto_sde_role.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/capability_translation.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/capability_translation_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_volume_connection.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_volume_connection_create.rb +9 -5
- data/lib/openapi_client/models/job.rb +272 -0
- data/lib/openapi_client/models/job_create.rb +222 -0
- data/lib/{autosde_openapi_client → openapi_client}/models/native_capability.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/profile.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/provisioning_strategy.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_abstract_capability_value.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_resource_attachment.rb +9 -5
- data/lib/openapi_client/models/snapshot.rb +290 -0
- data/lib/openapi_client/models/snapshot_create.rb +280 -0
- data/lib/openapi_client/models/storage_host.rb +309 -0
- data/lib/openapi_client/models/storage_host_create.rb +360 -0
- data/lib/openapi_client/models/storage_host_response.rb +325 -0
- data/lib/openapi_client/models/storage_host_update.rb +293 -0
- data/lib/openapi_client/models/storage_host_volume_mapping.rb +291 -0
- data/lib/openapi_client/models/storage_host_volume_mapping_create.rb +283 -0
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_system.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_system_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/system_type.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/system_type_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_create.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_response.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_safe_delete.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_safe_delete_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_update.rb +22 -6
- data/lib/{autosde_openapi_client → openapi_client}/version.rb +2 -2
- data/{autosde_openapi_client.gemspec → openapi_client.gemspec} +3 -4
- data/spec/api/abstract_capability_api_spec.rb +1 -1
- data/spec/api/account_api_spec.rb +1 -1
- data/spec/api/address_api_spec.rb +1 -1
- data/spec/api/authentication_api_spec.rb +1 -1
- data/spec/api/auto_sde_project_api_spec.rb +1 -1
- data/spec/api/auto_sde_role_api_spec.rb +1 -1
- data/spec/api/capability_translation_api_spec.rb +1 -1
- data/spec/api/host_api_spec.rb +1 -1
- data/spec/api/host_volume_connection_api_spec.rb +1 -1
- data/spec/api/job_api_spec.rb +54 -0
- data/spec/api/native_capability_api_spec.rb +1 -1
- data/spec/api/profile_api_spec.rb +1 -1
- data/spec/api/provisioning_strategy_api_spec.rb +1 -1
- data/spec/api/service_api_spec.rb +1 -1
- data/spec/api/service_resource_attachment_api_spec.rb +1 -1
- data/spec/api/snapshot_api_spec.rb +74 -0
- data/spec/api/storage_host_api_spec.rb +74 -0
- data/spec/api/storage_host_volume_mapping_api_spec.rb +74 -0
- data/spec/api/storage_resource_api_spec.rb +1 -1
- data/spec/api/storage_system_api_spec.rb +1 -1
- data/spec/api/system_type_api_spec.rb +1 -1
- data/spec/api/volume_api_spec.rb +1 -1
- data/spec/api/volume_safe_delete_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/abstract_capability_spec.rb +1 -1
- data/spec/models/account_post_request_spec.rb +1 -1
- data/spec/models/account_post_response_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/address_create_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/auth_response_spec.rb +1 -1
- data/spec/models/authentication_spec.rb +1 -1
- data/spec/models/auto_sde_project_spec.rb +1 -1
- data/spec/models/auto_sde_role_spec.rb +1 -1
- data/spec/models/capability_translation_create_spec.rb +1 -1
- data/spec/models/capability_translation_spec.rb +1 -1
- data/spec/models/host_create_spec.rb +1 -1
- data/spec/models/host_spec.rb +1 -1
- data/spec/models/host_volume_connection_create_spec.rb +1 -1
- data/spec/models/host_volume_connection_spec.rb +1 -1
- data/spec/models/job_create_spec.rb +47 -0
- data/spec/models/job_spec.rb +77 -0
- data/spec/models/native_capability_spec.rb +1 -1
- data/spec/models/profile_spec.rb +1 -1
- data/spec/models/provisioning_strategy_spec.rb +1 -1
- data/spec/models/service_abstract_capability_value_spec.rb +1 -1
- data/spec/models/service_create_spec.rb +1 -1
- data/spec/models/service_resource_attachment_spec.rb +1 -1
- data/spec/models/service_spec.rb +1 -1
- data/spec/models/snapshot_create_spec.rb +63 -0
- data/spec/models/snapshot_spec.rb +69 -0
- data/spec/models/storage_host_create_spec.rb +109 -0
- data/spec/models/storage_host_response_spec.rb +87 -0
- data/spec/models/storage_host_spec.rb +81 -0
- data/spec/models/storage_host_update_spec.rb +61 -0
- data/spec/models/storage_host_volume_mapping_create_spec.rb +63 -0
- data/spec/models/storage_host_volume_mapping_spec.rb +69 -0
- data/spec/models/storage_resource_create_spec.rb +1 -1
- data/spec/models/storage_resource_response_spec.rb +1 -1
- data/spec/models/storage_resource_spec.rb +1 -1
- data/spec/models/storage_system_create_spec.rb +1 -1
- data/spec/models/storage_system_spec.rb +1 -1
- data/spec/models/system_type_create_spec.rb +1 -1
- data/spec/models/system_type_spec.rb +1 -1
- data/spec/models/volume_create_spec.rb +1 -1
- data/spec/models/volume_response_spec.rb +1 -1
- data/spec/models/volume_safe_delete_create_spec.rb +1 -1
- data/spec/models/volume_safe_delete_spec.rb +1 -1
- data/spec/models/volume_spec.rb +1 -1
- data/spec/models/volume_update_spec.rb +7 -1
- data/spec/spec_helper.rb +2 -2
- metadata +142 -106
- data/lib/autosde_openapi_client.rb +0 -94
- data/site_manager_oas.json +0 -3992
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# TODO add description
|
@@ -344,7 +345,9 @@ module OpenapiClient
|
|
344
345
|
def build_from_hash(attributes)
|
345
346
|
return nil unless attributes.is_a?(Hash)
|
346
347
|
self.class.openapi_types.each_pair do |key, type|
|
347
|
-
if
|
348
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
349
|
+
self.send("#{key}=", nil)
|
350
|
+
elsif type =~ /\AArray<(.*)>/i
|
348
351
|
# check to ensure the input is an array given that the attribute
|
349
352
|
# is documented as an array but the input is not
|
350
353
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -352,7 +355,7 @@ module OpenapiClient
|
|
352
355
|
end
|
353
356
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
354
357
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
355
|
-
end
|
358
|
+
end
|
356
359
|
end
|
357
360
|
|
358
361
|
self
|
@@ -364,8 +367,8 @@ module OpenapiClient
|
|
364
367
|
# @return [Object] Deserialized data
|
365
368
|
def _deserialize(type, value)
|
366
369
|
case type.to_sym
|
367
|
-
when :
|
368
|
-
|
370
|
+
when :Time
|
371
|
+
Time.parse(value)
|
369
372
|
when :Date
|
370
373
|
Date.parse(value)
|
371
374
|
when :String
|
@@ -444,5 +447,6 @@ module OpenapiClient
|
|
444
447
|
value
|
445
448
|
end
|
446
449
|
end
|
450
|
+
|
447
451
|
end
|
448
452
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# Use to define the storage system type.
|
@@ -217,7 +218,9 @@ module OpenapiClient
|
|
217
218
|
def build_from_hash(attributes)
|
218
219
|
return nil unless attributes.is_a?(Hash)
|
219
220
|
self.class.openapi_types.each_pair do |key, type|
|
220
|
-
if
|
221
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
222
|
+
self.send("#{key}=", nil)
|
223
|
+
elsif type =~ /\AArray<(.*)>/i
|
221
224
|
# check to ensure the input is an array given that the attribute
|
222
225
|
# is documented as an array but the input is not
|
223
226
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -225,7 +228,7 @@ module OpenapiClient
|
|
225
228
|
end
|
226
229
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
227
230
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
228
|
-
end
|
231
|
+
end
|
229
232
|
end
|
230
233
|
|
231
234
|
self
|
@@ -237,8 +240,8 @@ module OpenapiClient
|
|
237
240
|
# @return [Object] Deserialized data
|
238
241
|
def _deserialize(type, value)
|
239
242
|
case type.to_sym
|
240
|
-
when :
|
241
|
-
|
243
|
+
when :Time
|
244
|
+
Time.parse(value)
|
242
245
|
when :Date
|
243
246
|
Date.parse(value)
|
244
247
|
when :String
|
@@ -317,5 +320,6 @@ module OpenapiClient
|
|
317
320
|
value
|
318
321
|
end
|
319
322
|
end
|
323
|
+
|
320
324
|
end
|
321
325
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# TODO add description
|
@@ -229,7 +230,9 @@ module OpenapiClient
|
|
229
230
|
def build_from_hash(attributes)
|
230
231
|
return nil unless attributes.is_a?(Hash)
|
231
232
|
self.class.openapi_types.each_pair do |key, type|
|
232
|
-
if
|
233
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
234
|
+
self.send("#{key}=", nil)
|
235
|
+
elsif type =~ /\AArray<(.*)>/i
|
233
236
|
# check to ensure the input is an array given that the attribute
|
234
237
|
# is documented as an array but the input is not
|
235
238
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -237,7 +240,7 @@ module OpenapiClient
|
|
237
240
|
end
|
238
241
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
239
242
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
240
|
-
end
|
243
|
+
end
|
241
244
|
end
|
242
245
|
|
243
246
|
self
|
@@ -249,8 +252,8 @@ module OpenapiClient
|
|
249
252
|
# @return [Object] Deserialized data
|
250
253
|
def _deserialize(type, value)
|
251
254
|
case type.to_sym
|
252
|
-
when :
|
253
|
-
|
255
|
+
when :Time
|
256
|
+
Time.parse(value)
|
254
257
|
when :Date
|
255
258
|
Date.parse(value)
|
256
259
|
when :String
|
@@ -329,5 +332,6 @@ module OpenapiClient
|
|
329
332
|
value
|
330
333
|
end
|
331
334
|
end
|
335
|
+
|
332
336
|
end
|
333
337
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# Define volume properties on a specific storage resource.
|
@@ -33,6 +34,9 @@ module OpenapiClient
|
|
33
34
|
|
34
35
|
attr_accessor :storage_resource
|
35
36
|
|
37
|
+
# unmapped_since
|
38
|
+
attr_accessor :unmapped_since
|
39
|
+
|
36
40
|
# uuid
|
37
41
|
attr_accessor :uuid
|
38
42
|
|
@@ -68,6 +72,7 @@ module OpenapiClient
|
|
68
72
|
:'service' => :'service',
|
69
73
|
:'size' => :'size',
|
70
74
|
:'storage_resource' => :'storage_resource',
|
75
|
+
:'unmapped_since' => :'unmapped_since',
|
71
76
|
:'uuid' => :'uuid'
|
72
77
|
}
|
73
78
|
end
|
@@ -82,6 +87,7 @@ module OpenapiClient
|
|
82
87
|
:'service' => :'Service',
|
83
88
|
:'size' => :'Integer',
|
84
89
|
:'storage_resource' => :'StorageResource',
|
90
|
+
:'unmapped_since' => :'Time',
|
85
91
|
:'uuid' => :'String'
|
86
92
|
}
|
87
93
|
end
|
@@ -137,6 +143,10 @@ module OpenapiClient
|
|
137
143
|
self.storage_resource = attributes[:'storage_resource']
|
138
144
|
end
|
139
145
|
|
146
|
+
if attributes.key?(:'unmapped_since')
|
147
|
+
self.unmapped_since = attributes[:'unmapped_since']
|
148
|
+
end
|
149
|
+
|
140
150
|
if attributes.key?(:'uuid')
|
141
151
|
self.uuid = attributes[:'uuid']
|
142
152
|
end
|
@@ -184,6 +194,7 @@ module OpenapiClient
|
|
184
194
|
service == o.service &&
|
185
195
|
size == o.size &&
|
186
196
|
storage_resource == o.storage_resource &&
|
197
|
+
unmapped_since == o.unmapped_since &&
|
187
198
|
uuid == o.uuid
|
188
199
|
end
|
189
200
|
|
@@ -196,7 +207,7 @@ module OpenapiClient
|
|
196
207
|
# Calculates hash code according to all attributes.
|
197
208
|
# @return [Integer] Hash code
|
198
209
|
def hash
|
199
|
-
[compliant, component_state, historical_service, name, service, size, storage_resource, uuid].hash
|
210
|
+
[compliant, component_state, historical_service, name, service, size, storage_resource, unmapped_since, uuid].hash
|
200
211
|
end
|
201
212
|
|
202
213
|
# Builds the object from hash
|
@@ -212,7 +223,9 @@ module OpenapiClient
|
|
212
223
|
def build_from_hash(attributes)
|
213
224
|
return nil unless attributes.is_a?(Hash)
|
214
225
|
self.class.openapi_types.each_pair do |key, type|
|
215
|
-
if
|
226
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
227
|
+
self.send("#{key}=", nil)
|
228
|
+
elsif type =~ /\AArray<(.*)>/i
|
216
229
|
# check to ensure the input is an array given that the attribute
|
217
230
|
# is documented as an array but the input is not
|
218
231
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -220,7 +233,7 @@ module OpenapiClient
|
|
220
233
|
end
|
221
234
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
222
235
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
223
|
-
end
|
236
|
+
end
|
224
237
|
end
|
225
238
|
|
226
239
|
self
|
@@ -232,8 +245,8 @@ module OpenapiClient
|
|
232
245
|
# @return [Object] Deserialized data
|
233
246
|
def _deserialize(type, value)
|
234
247
|
case type.to_sym
|
235
|
-
when :
|
236
|
-
|
248
|
+
when :Time
|
249
|
+
Time.parse(value)
|
237
250
|
when :Date
|
238
251
|
Date.parse(value)
|
239
252
|
when :String
|
@@ -312,5 +325,6 @@ module OpenapiClient
|
|
312
325
|
value
|
313
326
|
end
|
314
327
|
end
|
328
|
+
|
315
329
|
end
|
316
330
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# TODO add description
|
@@ -30,6 +31,9 @@ module OpenapiClient
|
|
30
31
|
# size
|
31
32
|
attr_accessor :size
|
32
33
|
|
34
|
+
# unmapped_since
|
35
|
+
attr_accessor :unmapped_since
|
36
|
+
|
33
37
|
# uuid
|
34
38
|
attr_accessor :uuid
|
35
39
|
|
@@ -63,6 +67,7 @@ module OpenapiClient
|
|
63
67
|
:'name' => :'name',
|
64
68
|
:'service' => :'service',
|
65
69
|
:'size' => :'size',
|
70
|
+
:'unmapped_since' => :'unmapped_since',
|
66
71
|
:'uuid' => :'uuid'
|
67
72
|
}
|
68
73
|
end
|
@@ -75,6 +80,7 @@ module OpenapiClient
|
|
75
80
|
:'name' => :'String',
|
76
81
|
:'service' => :'String',
|
77
82
|
:'size' => :'Integer',
|
83
|
+
:'unmapped_since' => :'Time',
|
78
84
|
:'uuid' => :'String'
|
79
85
|
}
|
80
86
|
end
|
@@ -122,6 +128,10 @@ module OpenapiClient
|
|
122
128
|
self.size = attributes[:'size']
|
123
129
|
end
|
124
130
|
|
131
|
+
if attributes.key?(:'unmapped_since')
|
132
|
+
self.unmapped_since = attributes[:'unmapped_since']
|
133
|
+
end
|
134
|
+
|
125
135
|
if attributes.key?(:'uuid')
|
126
136
|
self.uuid = attributes[:'uuid']
|
127
137
|
end
|
@@ -167,6 +177,7 @@ module OpenapiClient
|
|
167
177
|
name == o.name &&
|
168
178
|
service == o.service &&
|
169
179
|
size == o.size &&
|
180
|
+
unmapped_since == o.unmapped_since &&
|
170
181
|
uuid == o.uuid
|
171
182
|
end
|
172
183
|
|
@@ -179,7 +190,7 @@ module OpenapiClient
|
|
179
190
|
# Calculates hash code according to all attributes.
|
180
191
|
# @return [Integer] Hash code
|
181
192
|
def hash
|
182
|
-
[compliant, component_state, name, service, size, uuid].hash
|
193
|
+
[compliant, component_state, name, service, size, unmapped_since, uuid].hash
|
183
194
|
end
|
184
195
|
|
185
196
|
# Builds the object from hash
|
@@ -195,7 +206,9 @@ module OpenapiClient
|
|
195
206
|
def build_from_hash(attributes)
|
196
207
|
return nil unless attributes.is_a?(Hash)
|
197
208
|
self.class.openapi_types.each_pair do |key, type|
|
198
|
-
if
|
209
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
210
|
+
self.send("#{key}=", nil)
|
211
|
+
elsif type =~ /\AArray<(.*)>/i
|
199
212
|
# check to ensure the input is an array given that the attribute
|
200
213
|
# is documented as an array but the input is not
|
201
214
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -203,7 +216,7 @@ module OpenapiClient
|
|
203
216
|
end
|
204
217
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
205
218
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
206
|
-
end
|
219
|
+
end
|
207
220
|
end
|
208
221
|
|
209
222
|
self
|
@@ -215,8 +228,8 @@ module OpenapiClient
|
|
215
228
|
# @return [Object] Deserialized data
|
216
229
|
def _deserialize(type, value)
|
217
230
|
case type.to_sym
|
218
|
-
when :
|
219
|
-
|
231
|
+
when :Time
|
232
|
+
Time.parse(value)
|
220
233
|
when :Date
|
221
234
|
Date.parse(value)
|
222
235
|
when :String
|
@@ -295,5 +308,6 @@ module OpenapiClient
|
|
295
308
|
value
|
296
309
|
end
|
297
310
|
end
|
311
|
+
|
298
312
|
end
|
299
313
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# TODO add description
|
@@ -35,6 +36,9 @@ module OpenapiClient
|
|
35
36
|
# !!uuid of storage_resource
|
36
37
|
attr_accessor :storage_resource
|
37
38
|
|
39
|
+
# unmapped_since
|
40
|
+
attr_accessor :unmapped_since
|
41
|
+
|
38
42
|
# uuid
|
39
43
|
attr_accessor :uuid
|
40
44
|
|
@@ -70,6 +74,7 @@ module OpenapiClient
|
|
70
74
|
:'service' => :'service',
|
71
75
|
:'size' => :'size',
|
72
76
|
:'storage_resource' => :'storage_resource',
|
77
|
+
:'unmapped_since' => :'unmapped_since',
|
73
78
|
:'uuid' => :'uuid'
|
74
79
|
}
|
75
80
|
end
|
@@ -84,6 +89,7 @@ module OpenapiClient
|
|
84
89
|
:'service' => :'String',
|
85
90
|
:'size' => :'Integer',
|
86
91
|
:'storage_resource' => :'String',
|
92
|
+
:'unmapped_since' => :'Time',
|
87
93
|
:'uuid' => :'String'
|
88
94
|
}
|
89
95
|
end
|
@@ -139,6 +145,10 @@ module OpenapiClient
|
|
139
145
|
self.storage_resource = attributes[:'storage_resource']
|
140
146
|
end
|
141
147
|
|
148
|
+
if attributes.key?(:'unmapped_since')
|
149
|
+
self.unmapped_since = attributes[:'unmapped_since']
|
150
|
+
end
|
151
|
+
|
142
152
|
if attributes.key?(:'uuid')
|
143
153
|
self.uuid = attributes[:'uuid']
|
144
154
|
end
|
@@ -186,6 +196,7 @@ module OpenapiClient
|
|
186
196
|
service == o.service &&
|
187
197
|
size == o.size &&
|
188
198
|
storage_resource == o.storage_resource &&
|
199
|
+
unmapped_since == o.unmapped_since &&
|
189
200
|
uuid == o.uuid
|
190
201
|
end
|
191
202
|
|
@@ -198,7 +209,7 @@ module OpenapiClient
|
|
198
209
|
# Calculates hash code according to all attributes.
|
199
210
|
# @return [Integer] Hash code
|
200
211
|
def hash
|
201
|
-
[compliant, component_state, historical_service, name, service, size, storage_resource, uuid].hash
|
212
|
+
[compliant, component_state, historical_service, name, service, size, storage_resource, unmapped_since, uuid].hash
|
202
213
|
end
|
203
214
|
|
204
215
|
# Builds the object from hash
|
@@ -214,7 +225,9 @@ module OpenapiClient
|
|
214
225
|
def build_from_hash(attributes)
|
215
226
|
return nil unless attributes.is_a?(Hash)
|
216
227
|
self.class.openapi_types.each_pair do |key, type|
|
217
|
-
if
|
228
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
229
|
+
self.send("#{key}=", nil)
|
230
|
+
elsif type =~ /\AArray<(.*)>/i
|
218
231
|
# check to ensure the input is an array given that the attribute
|
219
232
|
# is documented as an array but the input is not
|
220
233
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -222,7 +235,7 @@ module OpenapiClient
|
|
222
235
|
end
|
223
236
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
224
237
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
225
|
-
end
|
238
|
+
end
|
226
239
|
end
|
227
240
|
|
228
241
|
self
|
@@ -234,8 +247,8 @@ module OpenapiClient
|
|
234
247
|
# @return [Object] Deserialized data
|
235
248
|
def _deserialize(type, value)
|
236
249
|
case type.to_sym
|
237
|
-
when :
|
238
|
-
|
250
|
+
when :Time
|
251
|
+
Time.parse(value)
|
239
252
|
when :Date
|
240
253
|
Date.parse(value)
|
241
254
|
when :String
|
@@ -314,5 +327,6 @@ module OpenapiClient
|
|
314
327
|
value
|
315
328
|
end
|
316
329
|
end
|
330
|
+
|
317
331
|
end
|
318
332
|
end
|