autosde_openapi_client 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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
|
# Authentication
|
|
@@ -114,7 +115,9 @@ module OpenapiClient
|
|
|
114
115
|
def build_from_hash(attributes)
|
|
115
116
|
return nil unless attributes.is_a?(Hash)
|
|
116
117
|
self.class.openapi_types.each_pair do |key, type|
|
|
117
|
-
if
|
|
118
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
119
|
+
self.send("#{key}=", nil)
|
|
120
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
118
121
|
# check to ensure the input is an array given that the attribute
|
|
119
122
|
# is documented as an array but the input is not
|
|
120
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -122,7 +125,7 @@ module OpenapiClient
|
|
|
122
125
|
end
|
|
123
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
124
127
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
125
|
-
end
|
|
128
|
+
end
|
|
126
129
|
end
|
|
127
130
|
|
|
128
131
|
self
|
|
@@ -134,8 +137,8 @@ module OpenapiClient
|
|
|
134
137
|
# @return [Object] Deserialized data
|
|
135
138
|
def _deserialize(type, value)
|
|
136
139
|
case type.to_sym
|
|
137
|
-
when :
|
|
138
|
-
|
|
140
|
+
when :Time
|
|
141
|
+
Time.parse(value)
|
|
139
142
|
when :Date
|
|
140
143
|
Date.parse(value)
|
|
141
144
|
when :String
|
|
@@ -214,5 +217,6 @@ module OpenapiClient
|
|
|
214
217
|
value
|
|
215
218
|
end
|
|
216
219
|
end
|
|
220
|
+
|
|
217
221
|
end
|
|
218
222
|
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 this for AutoSDE project information.
|
|
@@ -294,7 +295,9 @@ module OpenapiClient
|
|
|
294
295
|
def build_from_hash(attributes)
|
|
295
296
|
return nil unless attributes.is_a?(Hash)
|
|
296
297
|
self.class.openapi_types.each_pair do |key, type|
|
|
297
|
-
if
|
|
298
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
299
|
+
self.send("#{key}=", nil)
|
|
300
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
298
301
|
# check to ensure the input is an array given that the attribute
|
|
299
302
|
# is documented as an array but the input is not
|
|
300
303
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -302,7 +305,7 @@ module OpenapiClient
|
|
|
302
305
|
end
|
|
303
306
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
304
307
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
305
|
-
end
|
|
308
|
+
end
|
|
306
309
|
end
|
|
307
310
|
|
|
308
311
|
self
|
|
@@ -314,8 +317,8 @@ module OpenapiClient
|
|
|
314
317
|
# @return [Object] Deserialized data
|
|
315
318
|
def _deserialize(type, value)
|
|
316
319
|
case type.to_sym
|
|
317
|
-
when :
|
|
318
|
-
|
|
320
|
+
when :Time
|
|
321
|
+
Time.parse(value)
|
|
319
322
|
when :Date
|
|
320
323
|
Date.parse(value)
|
|
321
324
|
when :String
|
|
@@ -394,5 +397,6 @@ module OpenapiClient
|
|
|
394
397
|
value
|
|
395
398
|
end
|
|
396
399
|
end
|
|
400
|
+
|
|
397
401
|
end
|
|
398
402
|
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
|
# doc-todo: what types of roles is this defining?
|
|
@@ -114,7 +115,9 @@ module OpenapiClient
|
|
|
114
115
|
def build_from_hash(attributes)
|
|
115
116
|
return nil unless attributes.is_a?(Hash)
|
|
116
117
|
self.class.openapi_types.each_pair do |key, type|
|
|
117
|
-
if
|
|
118
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
119
|
+
self.send("#{key}=", nil)
|
|
120
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
118
121
|
# check to ensure the input is an array given that the attribute
|
|
119
122
|
# is documented as an array but the input is not
|
|
120
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -122,7 +125,7 @@ module OpenapiClient
|
|
|
122
125
|
end
|
|
123
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
124
127
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
125
|
-
end
|
|
128
|
+
end
|
|
126
129
|
end
|
|
127
130
|
|
|
128
131
|
self
|
|
@@ -134,8 +137,8 @@ module OpenapiClient
|
|
|
134
137
|
# @return [Object] Deserialized data
|
|
135
138
|
def _deserialize(type, value)
|
|
136
139
|
case type.to_sym
|
|
137
|
-
when :
|
|
138
|
-
|
|
140
|
+
when :Time
|
|
141
|
+
Time.parse(value)
|
|
139
142
|
when :Date
|
|
140
143
|
Date.parse(value)
|
|
141
144
|
when :String
|
|
@@ -214,5 +217,6 @@ module OpenapiClient
|
|
|
214
217
|
value
|
|
215
218
|
end
|
|
216
219
|
end
|
|
220
|
+
|
|
217
221
|
end
|
|
218
222
|
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
|
# doc-todo: what is capabilityTranslationProps used for / what is it?.
|
|
@@ -224,7 +225,9 @@ module OpenapiClient
|
|
|
224
225
|
def build_from_hash(attributes)
|
|
225
226
|
return nil unless attributes.is_a?(Hash)
|
|
226
227
|
self.class.openapi_types.each_pair do |key, type|
|
|
227
|
-
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
|
|
228
231
|
# check to ensure the input is an array given that the attribute
|
|
229
232
|
# is documented as an array but the input is not
|
|
230
233
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -232,7 +235,7 @@ module OpenapiClient
|
|
|
232
235
|
end
|
|
233
236
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
234
237
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
235
|
-
end
|
|
238
|
+
end
|
|
236
239
|
end
|
|
237
240
|
|
|
238
241
|
self
|
|
@@ -244,8 +247,8 @@ module OpenapiClient
|
|
|
244
247
|
# @return [Object] Deserialized data
|
|
245
248
|
def _deserialize(type, value)
|
|
246
249
|
case type.to_sym
|
|
247
|
-
when :
|
|
248
|
-
|
|
250
|
+
when :Time
|
|
251
|
+
Time.parse(value)
|
|
249
252
|
when :Date
|
|
250
253
|
Date.parse(value)
|
|
251
254
|
when :String
|
|
@@ -324,5 +327,6 @@ module OpenapiClient
|
|
|
324
327
|
value
|
|
325
328
|
end
|
|
326
329
|
end
|
|
330
|
+
|
|
327
331
|
end
|
|
328
332
|
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
|
|
@@ -206,7 +207,9 @@ module OpenapiClient
|
|
|
206
207
|
def build_from_hash(attributes)
|
|
207
208
|
return nil unless attributes.is_a?(Hash)
|
|
208
209
|
self.class.openapi_types.each_pair do |key, type|
|
|
209
|
-
if
|
|
210
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
211
|
+
self.send("#{key}=", nil)
|
|
212
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
210
213
|
# check to ensure the input is an array given that the attribute
|
|
211
214
|
# is documented as an array but the input is not
|
|
212
215
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -214,7 +217,7 @@ module OpenapiClient
|
|
|
214
217
|
end
|
|
215
218
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
216
219
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
217
|
-
end
|
|
220
|
+
end
|
|
218
221
|
end
|
|
219
222
|
|
|
220
223
|
self
|
|
@@ -226,8 +229,8 @@ module OpenapiClient
|
|
|
226
229
|
# @return [Object] Deserialized data
|
|
227
230
|
def _deserialize(type, value)
|
|
228
231
|
case type.to_sym
|
|
229
|
-
when :
|
|
230
|
-
|
|
232
|
+
when :Time
|
|
233
|
+
Time.parse(value)
|
|
231
234
|
when :Date
|
|
232
235
|
Date.parse(value)
|
|
233
236
|
when :String
|
|
@@ -306,5 +309,6 @@ module OpenapiClient
|
|
|
306
309
|
value
|
|
307
310
|
end
|
|
308
311
|
end
|
|
312
|
+
|
|
309
313
|
end
|
|
310
314
|
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
|
# doc-todo: what 'host' is this defining or being filled in for? Fill in host properties: name, UUID, management IP address, and IQN.
|
|
@@ -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
|
|
@@ -278,7 +279,9 @@ module OpenapiClient
|
|
|
278
279
|
def build_from_hash(attributes)
|
|
279
280
|
return nil unless attributes.is_a?(Hash)
|
|
280
281
|
self.class.openapi_types.each_pair do |key, type|
|
|
281
|
-
if
|
|
282
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
283
|
+
self.send("#{key}=", nil)
|
|
284
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
282
285
|
# check to ensure the input is an array given that the attribute
|
|
283
286
|
# is documented as an array but the input is not
|
|
284
287
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -286,7 +289,7 @@ module OpenapiClient
|
|
|
286
289
|
end
|
|
287
290
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
288
291
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
289
|
-
end
|
|
292
|
+
end
|
|
290
293
|
end
|
|
291
294
|
|
|
292
295
|
self
|
|
@@ -298,8 +301,8 @@ module OpenapiClient
|
|
|
298
301
|
# @return [Object] Deserialized data
|
|
299
302
|
def _deserialize(type, value)
|
|
300
303
|
case type.to_sym
|
|
301
|
-
when :
|
|
302
|
-
|
|
304
|
+
when :Time
|
|
305
|
+
Time.parse(value)
|
|
303
306
|
when :Date
|
|
304
307
|
Date.parse(value)
|
|
305
308
|
when :String
|
|
@@ -378,5 +381,6 @@ module OpenapiClient
|
|
|
378
381
|
value
|
|
379
382
|
end
|
|
380
383
|
end
|
|
384
|
+
|
|
381
385
|
end
|
|
382
386
|
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
|
# Fill in the host volume connection properties.
|
|
@@ -171,7 +172,9 @@ module OpenapiClient
|
|
|
171
172
|
def build_from_hash(attributes)
|
|
172
173
|
return nil unless attributes.is_a?(Hash)
|
|
173
174
|
self.class.openapi_types.each_pair do |key, type|
|
|
174
|
-
if
|
|
175
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
176
|
+
self.send("#{key}=", nil)
|
|
177
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
175
178
|
# check to ensure the input is an array given that the attribute
|
|
176
179
|
# is documented as an array but the input is not
|
|
177
180
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -179,7 +182,7 @@ module OpenapiClient
|
|
|
179
182
|
end
|
|
180
183
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
181
184
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
182
|
-
end
|
|
185
|
+
end
|
|
183
186
|
end
|
|
184
187
|
|
|
185
188
|
self
|
|
@@ -191,8 +194,8 @@ module OpenapiClient
|
|
|
191
194
|
# @return [Object] Deserialized data
|
|
192
195
|
def _deserialize(type, value)
|
|
193
196
|
case type.to_sym
|
|
194
|
-
when :
|
|
195
|
-
|
|
197
|
+
when :Time
|
|
198
|
+
Time.parse(value)
|
|
196
199
|
when :Date
|
|
197
200
|
Date.parse(value)
|
|
198
201
|
when :String
|
|
@@ -271,5 +274,6 @@ module OpenapiClient
|
|
|
271
274
|
value
|
|
272
275
|
end
|
|
273
276
|
end
|
|
277
|
+
|
|
274
278
|
end
|
|
275
279
|
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
|
|
@@ -161,7 +162,9 @@ module OpenapiClient
|
|
|
161
162
|
def build_from_hash(attributes)
|
|
162
163
|
return nil unless attributes.is_a?(Hash)
|
|
163
164
|
self.class.openapi_types.each_pair do |key, type|
|
|
164
|
-
if
|
|
165
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
166
|
+
self.send("#{key}=", nil)
|
|
167
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
165
168
|
# check to ensure the input is an array given that the attribute
|
|
166
169
|
# is documented as an array but the input is not
|
|
167
170
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -169,7 +172,7 @@ module OpenapiClient
|
|
|
169
172
|
end
|
|
170
173
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
171
174
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
172
|
-
end
|
|
175
|
+
end
|
|
173
176
|
end
|
|
174
177
|
|
|
175
178
|
self
|
|
@@ -181,8 +184,8 @@ module OpenapiClient
|
|
|
181
184
|
# @return [Object] Deserialized data
|
|
182
185
|
def _deserialize(type, value)
|
|
183
186
|
case type.to_sym
|
|
184
|
-
when :
|
|
185
|
-
|
|
187
|
+
when :Time
|
|
188
|
+
Time.parse(value)
|
|
186
189
|
when :Date
|
|
187
190
|
Date.parse(value)
|
|
188
191
|
when :String
|
|
@@ -261,5 +264,6 @@ module OpenapiClient
|
|
|
261
264
|
value
|
|
262
265
|
end
|
|
263
266
|
end
|
|
267
|
+
|
|
264
268
|
end
|
|
265
269
|
end
|