autosde_openapi_client 1.0.2 → 1.0.23
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 +147 -146
- data/autosde_openapi_client.gemspec +4 -4
- data/docs/AbstractCapability.md +11 -10
- data/docs/AbstractCapabilityApi.md +121 -49
- data/docs/Account.md +13 -12
- data/docs/AccountApi.md +153 -63
- data/docs/AccountPostRequest.md +11 -10
- data/docs/AccountPostResponse.md +15 -14
- data/docs/Address.md +23 -22
- data/docs/AddressApi.md +121 -49
- data/docs/AddressCreate.md +23 -22
- data/docs/AuthResponse.md +9 -8
- data/docs/Authentication.md +11 -10
- data/docs/AuthenticationApi.md +33 -16
- data/docs/AutoSDEProject.md +47 -46
- data/docs/AutoSDEProjectApi.md +121 -49
- data/docs/AutoSDERole.md +11 -10
- data/docs/AutoSDERoleApi.md +121 -49
- data/docs/CapabilityTranslation.md +27 -26
- data/docs/CapabilityTranslationApi.md +121 -49
- data/docs/CapabilityTranslationCreate.md +23 -22
- data/docs/Host.md +21 -20
- data/docs/HostApi.md +121 -49
- data/docs/HostCreate.md +31 -30
- data/docs/HostVolumeConnection.md +15 -14
- data/docs/HostVolumeConnectionApi.md +121 -49
- data/docs/HostVolumeConnectionCreate.md +13 -12
- data/docs/Job.md +21 -20
- data/docs/JobApi.md +61 -25
- data/docs/JobCreate.md +11 -10
- data/docs/NativeCapability.md +15 -14
- data/docs/NativeCapabilityApi.md +121 -49
- data/docs/Profile.md +17 -16
- data/docs/ProfileApi.md +121 -49
- data/docs/ProvisioningStrategy.md +11 -10
- data/docs/ProvisioningStrategyApi.md +121 -49
- data/docs/Service.md +27 -26
- data/docs/ServiceAbstractCapabilityValue.md +13 -12
- data/docs/ServiceApi.md +153 -63
- data/docs/ServiceCreate.md +25 -24
- data/docs/ServiceResourceAttachment.md +15 -14
- data/docs/ServiceResourceAttachmentApi.md +121 -49
- data/docs/Snapshot.md +17 -16
- data/docs/SnapshotApi.md +121 -49
- data/docs/SnapshotCreate.md +15 -14
- data/docs/StorageHost.md +21 -20
- data/docs/StorageHostApi.md +153 -63
- data/docs/StorageHostCreate.md +29 -28
- data/docs/StorageHostResponse.md +23 -22
- data/docs/StorageHostUpdate.md +13 -12
- data/docs/StorageHostVolumeMapping.md +17 -16
- data/docs/StorageHostVolumeMappingApi.md +125 -53
- data/docs/StorageHostVolumeMappingCreate.md +15 -14
- data/docs/StorageHostVolumeMappingResponse.md +26 -0
- data/docs/StorageResource.md +25 -24
- data/docs/StorageResourceApi.md +153 -63
- data/docs/StorageResourceCreate.md +23 -22
- data/docs/StorageResourceResponse.md +25 -24
- data/docs/StorageSystem.md +21 -20
- data/docs/StorageSystemApi.md +121 -49
- data/docs/StorageSystemCreate.md +41 -40
- data/docs/SystemType.md +17 -16
- data/docs/SystemTypeApi.md +121 -49
- data/docs/SystemTypeCreate.md +19 -18
- data/docs/Volume.md +25 -24
- data/docs/VolumeApi.md +153 -63
- data/docs/VolumeCreate.md +21 -20
- data/docs/VolumeResponse.md +25 -24
- data/docs/VolumeSafeDelete.md +13 -12
- data/docs/VolumeSafeDeleteApi.md +121 -49
- data/docs/VolumeSafeDeleteCreate.md +9 -8
- data/docs/VolumeUpdate.md +11 -10
- data/lib/autosde_openapi_client.rb +4 -3
- data/lib/autosde_openapi_client/api/abstract_capability_api.rb +2 -2
- data/lib/autosde_openapi_client/api/account_api.rb +2 -2
- data/lib/autosde_openapi_client/api/address_api.rb +2 -2
- data/lib/autosde_openapi_client/api/authentication_api.rb +2 -2
- data/lib/autosde_openapi_client/api/auto_sde_project_api.rb +2 -2
- data/lib/autosde_openapi_client/api/auto_sde_role_api.rb +2 -2
- data/lib/autosde_openapi_client/api/capability_translation_api.rb +2 -2
- data/lib/autosde_openapi_client/api/host_api.rb +2 -2
- data/lib/autosde_openapi_client/api/host_volume_connection_api.rb +2 -2
- data/lib/autosde_openapi_client/api/job_api.rb +2 -2
- data/lib/autosde_openapi_client/api/native_capability_api.rb +2 -2
- data/lib/autosde_openapi_client/api/profile_api.rb +2 -2
- data/lib/autosde_openapi_client/api/provisioning_strategy_api.rb +2 -2
- data/lib/autosde_openapi_client/api/service_api.rb +2 -2
- data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +2 -2
- data/lib/autosde_openapi_client/api/snapshot_api.rb +2 -2
- data/lib/autosde_openapi_client/api/storage_host_api.rb +2 -2
- data/lib/autosde_openapi_client/api/storage_host_volume_mapping_api.rb +14 -14
- data/lib/autosde_openapi_client/api/storage_resource_api.rb +2 -2
- data/lib/autosde_openapi_client/api/storage_system_api.rb +2 -2
- data/lib/autosde_openapi_client/api/system_type_api.rb +2 -2
- data/lib/autosde_openapi_client/api/volume_api.rb +2 -2
- data/lib/autosde_openapi_client/api/volume_safe_delete_api.rb +2 -2
- data/lib/autosde_openapi_client/api_client.rb +5 -4
- data/lib/autosde_openapi_client/api_error.rb +2 -2
- data/lib/autosde_openapi_client/configuration.rb +2 -2
- data/lib/autosde_openapi_client/models/abstract_capability.rb +14 -6
- data/lib/autosde_openapi_client/models/account.rb +14 -6
- data/lib/autosde_openapi_client/models/account_post_request.rb +14 -6
- data/lib/autosde_openapi_client/models/account_post_response.rb +14 -6
- data/lib/autosde_openapi_client/models/address.rb +14 -6
- data/lib/autosde_openapi_client/models/address_create.rb +14 -6
- data/lib/autosde_openapi_client/models/auth_response.rb +14 -6
- data/lib/autosde_openapi_client/models/authentication.rb +14 -6
- data/lib/autosde_openapi_client/models/auto_sde_project.rb +14 -6
- data/lib/autosde_openapi_client/models/auto_sde_role.rb +14 -6
- data/lib/autosde_openapi_client/models/capability_translation.rb +14 -6
- data/lib/autosde_openapi_client/models/capability_translation_create.rb +14 -6
- data/lib/autosde_openapi_client/models/host.rb +14 -6
- data/lib/autosde_openapi_client/models/host_create.rb +14 -6
- data/lib/autosde_openapi_client/models/host_volume_connection.rb +14 -6
- data/lib/autosde_openapi_client/models/host_volume_connection_create.rb +14 -6
- data/lib/autosde_openapi_client/models/job.rb +14 -6
- data/lib/autosde_openapi_client/models/job_create.rb +14 -6
- data/lib/autosde_openapi_client/models/native_capability.rb +14 -6
- data/lib/autosde_openapi_client/models/profile.rb +14 -6
- data/lib/autosde_openapi_client/models/provisioning_strategy.rb +14 -6
- data/lib/autosde_openapi_client/models/service.rb +14 -6
- data/lib/autosde_openapi_client/models/service_abstract_capability_value.rb +14 -6
- data/lib/autosde_openapi_client/models/service_create.rb +14 -6
- data/lib/autosde_openapi_client/models/service_resource_attachment.rb +14 -6
- data/lib/autosde_openapi_client/models/snapshot.rb +14 -6
- data/lib/autosde_openapi_client/models/snapshot_create.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_host.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_host_create.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_host_response.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_host_update.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_host_volume_mapping.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_host_volume_mapping_create.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_host_volume_mapping_response.rb +301 -0
- data/lib/autosde_openapi_client/models/storage_resource.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_resource_create.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_resource_response.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_system.rb +14 -6
- data/lib/autosde_openapi_client/models/storage_system_create.rb +14 -6
- data/lib/autosde_openapi_client/models/system_type.rb +14 -6
- data/lib/autosde_openapi_client/models/system_type_create.rb +14 -6
- data/lib/autosde_openapi_client/models/volume.rb +14 -6
- data/lib/autosde_openapi_client/models/volume_create.rb +14 -6
- data/lib/autosde_openapi_client/models/volume_response.rb +14 -6
- data/lib/autosde_openapi_client/models/volume_safe_delete.rb +14 -6
- data/lib/autosde_openapi_client/models/volume_safe_delete_create.rb +14 -6
- data/lib/autosde_openapi_client/models/volume_update.rb +14 -6
- data/lib/autosde_openapi_client/version.rb +4 -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 +1 -1
- 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 +1 -1
- data/spec/api/storage_host_api_spec.rb +1 -1
- data/spec/api/storage_host_volume_mapping_api_spec.rb +1 -1
- 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 +30 -30
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/abstract_capability_spec.rb +4 -11
- data/spec/models/account_post_request_spec.rb +4 -11
- data/spec/models/account_post_response_spec.rb +4 -11
- data/spec/models/account_spec.rb +4 -11
- data/spec/models/address_create_spec.rb +6 -13
- data/spec/models/address_spec.rb +6 -13
- data/spec/models/auth_response_spec.rb +4 -11
- data/spec/models/authentication_spec.rb +4 -11
- data/spec/models/auto_sde_project_spec.rb +4 -11
- data/spec/models/auto_sde_role_spec.rb +4 -11
- data/spec/models/capability_translation_create_spec.rb +4 -11
- data/spec/models/capability_translation_spec.rb +4 -11
- data/spec/models/host_create_spec.rb +7 -14
- data/spec/models/host_spec.rb +6 -13
- data/spec/models/host_volume_connection_create_spec.rb +5 -12
- data/spec/models/host_volume_connection_spec.rb +5 -12
- data/spec/models/job_create_spec.rb +4 -11
- data/spec/models/job_spec.rb +4 -11
- data/spec/models/native_capability_spec.rb +4 -11
- data/spec/models/profile_spec.rb +5 -12
- data/spec/models/provisioning_strategy_spec.rb +5 -12
- data/spec/models/service_abstract_capability_value_spec.rb +4 -11
- data/spec/models/service_create_spec.rb +5 -12
- data/spec/models/service_resource_attachment_spec.rb +4 -11
- data/spec/models/service_spec.rb +5 -12
- data/spec/models/snapshot_create_spec.rb +5 -12
- data/spec/models/snapshot_spec.rb +5 -12
- data/spec/models/storage_host_create_spec.rb +6 -13
- data/spec/models/storage_host_response_spec.rb +5 -12
- data/spec/models/storage_host_spec.rb +5 -12
- data/spec/models/storage_host_update_spec.rb +6 -13
- data/spec/models/storage_host_volume_mapping_create_spec.rb +5 -12
- data/spec/models/storage_host_volume_mapping_response_spec.rb +62 -0
- data/spec/models/storage_host_volume_mapping_spec.rb +5 -12
- data/spec/models/storage_resource_create_spec.rb +6 -13
- data/spec/models/storage_resource_response_spec.rb +6 -13
- data/spec/models/storage_resource_spec.rb +6 -13
- data/spec/models/storage_system_create_spec.rb +7 -14
- data/spec/models/storage_system_spec.rb +6 -13
- data/spec/models/system_type_create_spec.rb +6 -13
- data/spec/models/system_type_spec.rb +6 -13
- data/spec/models/volume_create_spec.rb +5 -12
- data/spec/models/volume_response_spec.rb +5 -12
- data/spec/models/volume_safe_delete_create_spec.rb +4 -11
- data/spec/models/volume_safe_delete_spec.rb +4 -11
- data/spec/models/volume_spec.rb +5 -12
- data/spec/models/volume_update_spec.rb +4 -11
- data/spec/spec_helper.rb +1 -1
- metadata +61 -57
|
@@ -6,14 +6,14 @@
|
|
|
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: 5.0.0
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# Use to define storage system properties.
|
|
18
18
|
class StorageSystem
|
|
19
19
|
# component_state
|
|
@@ -71,6 +71,11 @@ module OpenapiClient
|
|
|
71
71
|
}
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
# Returns all the JSON keys this model knows about
|
|
75
|
+
def self.acceptable_attributes
|
|
76
|
+
attribute_map.values
|
|
77
|
+
end
|
|
78
|
+
|
|
74
79
|
# Attribute type mapping.
|
|
75
80
|
def self.openapi_types
|
|
76
81
|
{
|
|
@@ -94,13 +99,13 @@ module OpenapiClient
|
|
|
94
99
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
95
100
|
def initialize(attributes = {})
|
|
96
101
|
if (!attributes.is_a?(Hash))
|
|
97
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
102
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageSystem` initialize method"
|
|
98
103
|
end
|
|
99
104
|
|
|
100
105
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
101
106
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
102
107
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
103
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
108
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageSystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
104
109
|
end
|
|
105
110
|
h[k.to_sym] = v
|
|
106
111
|
}
|
|
@@ -283,7 +288,9 @@ module OpenapiClient
|
|
|
283
288
|
end
|
|
284
289
|
end
|
|
285
290
|
else # model
|
|
286
|
-
|
|
291
|
+
# models (e.g. Pet) or oneOf
|
|
292
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
293
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
287
294
|
end
|
|
288
295
|
end
|
|
289
296
|
|
|
@@ -309,7 +316,7 @@ module OpenapiClient
|
|
|
309
316
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
310
317
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
311
318
|
end
|
|
312
|
-
|
|
319
|
+
|
|
313
320
|
hash[param] = _to_hash(value)
|
|
314
321
|
end
|
|
315
322
|
hash
|
|
@@ -334,4 +341,5 @@ module OpenapiClient
|
|
|
334
341
|
end
|
|
335
342
|
|
|
336
343
|
end
|
|
344
|
+
|
|
337
345
|
end
|
|
@@ -6,14 +6,14 @@
|
|
|
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: 5.0.0
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# TODO add description
|
|
18
18
|
class StorageSystemCreate
|
|
19
19
|
# auto_add_pools
|
|
@@ -110,6 +110,11 @@ module OpenapiClient
|
|
|
110
110
|
}
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
+
# Returns all the JSON keys this model knows about
|
|
114
|
+
def self.acceptable_attributes
|
|
115
|
+
attribute_map.values
|
|
116
|
+
end
|
|
117
|
+
|
|
113
118
|
# Attribute type mapping.
|
|
114
119
|
def self.openapi_types
|
|
115
120
|
{
|
|
@@ -143,13 +148,13 @@ module OpenapiClient
|
|
|
143
148
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
144
149
|
def initialize(attributes = {})
|
|
145
150
|
if (!attributes.is_a?(Hash))
|
|
146
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
151
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageSystemCreate` initialize method"
|
|
147
152
|
end
|
|
148
153
|
|
|
149
154
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
150
155
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
151
156
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
152
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
157
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageSystemCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
153
158
|
end
|
|
154
159
|
h[k.to_sym] = v
|
|
155
160
|
}
|
|
@@ -398,7 +403,9 @@ module OpenapiClient
|
|
|
398
403
|
end
|
|
399
404
|
end
|
|
400
405
|
else # model
|
|
401
|
-
|
|
406
|
+
# models (e.g. Pet) or oneOf
|
|
407
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
408
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
402
409
|
end
|
|
403
410
|
end
|
|
404
411
|
|
|
@@ -424,7 +431,7 @@ module OpenapiClient
|
|
|
424
431
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
425
432
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
426
433
|
end
|
|
427
|
-
|
|
434
|
+
|
|
428
435
|
hash[param] = _to_hash(value)
|
|
429
436
|
end
|
|
430
437
|
hash
|
|
@@ -449,4 +456,5 @@ module OpenapiClient
|
|
|
449
456
|
end
|
|
450
457
|
|
|
451
458
|
end
|
|
459
|
+
|
|
452
460
|
end
|
|
@@ -6,14 +6,14 @@
|
|
|
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: 5.0.0
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# Use to define the storage system type.
|
|
18
18
|
class SystemType
|
|
19
19
|
# component_state
|
|
@@ -64,6 +64,11 @@ module OpenapiClient
|
|
|
64
64
|
}
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
# Returns all the JSON keys this model knows about
|
|
68
|
+
def self.acceptable_attributes
|
|
69
|
+
attribute_map.values
|
|
70
|
+
end
|
|
71
|
+
|
|
67
72
|
# Attribute type mapping.
|
|
68
73
|
def self.openapi_types
|
|
69
74
|
{
|
|
@@ -85,13 +90,13 @@ module OpenapiClient
|
|
|
85
90
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
86
91
|
def initialize(attributes = {})
|
|
87
92
|
if (!attributes.is_a?(Hash))
|
|
88
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
93
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::SystemType` initialize method"
|
|
89
94
|
end
|
|
90
95
|
|
|
91
96
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
92
97
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
93
98
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
94
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::SystemType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
95
100
|
end
|
|
96
101
|
h[k.to_sym] = v
|
|
97
102
|
}
|
|
@@ -271,7 +276,9 @@ module OpenapiClient
|
|
|
271
276
|
end
|
|
272
277
|
end
|
|
273
278
|
else # model
|
|
274
|
-
|
|
279
|
+
# models (e.g. Pet) or oneOf
|
|
280
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
281
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
275
282
|
end
|
|
276
283
|
end
|
|
277
284
|
|
|
@@ -297,7 +304,7 @@ module OpenapiClient
|
|
|
297
304
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
298
305
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
299
306
|
end
|
|
300
|
-
|
|
307
|
+
|
|
301
308
|
hash[param] = _to_hash(value)
|
|
302
309
|
end
|
|
303
310
|
hash
|
|
@@ -322,4 +329,5 @@ module OpenapiClient
|
|
|
322
329
|
end
|
|
323
330
|
|
|
324
331
|
end
|
|
332
|
+
|
|
325
333
|
end
|
|
@@ -6,14 +6,14 @@
|
|
|
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: 5.0.0
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# TODO add description
|
|
18
18
|
class SystemTypeCreate
|
|
19
19
|
# component_state
|
|
@@ -68,6 +68,11 @@ module OpenapiClient
|
|
|
68
68
|
}
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
+
# Returns all the JSON keys this model knows about
|
|
72
|
+
def self.acceptable_attributes
|
|
73
|
+
attribute_map.values
|
|
74
|
+
end
|
|
75
|
+
|
|
71
76
|
# Attribute type mapping.
|
|
72
77
|
def self.openapi_types
|
|
73
78
|
{
|
|
@@ -90,13 +95,13 @@ module OpenapiClient
|
|
|
90
95
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
91
96
|
def initialize(attributes = {})
|
|
92
97
|
if (!attributes.is_a?(Hash))
|
|
93
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
98
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::SystemTypeCreate` initialize method"
|
|
94
99
|
end
|
|
95
100
|
|
|
96
101
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
97
102
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
98
103
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
99
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::SystemTypeCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
100
105
|
end
|
|
101
106
|
h[k.to_sym] = v
|
|
102
107
|
}
|
|
@@ -283,7 +288,9 @@ module OpenapiClient
|
|
|
283
288
|
end
|
|
284
289
|
end
|
|
285
290
|
else # model
|
|
286
|
-
|
|
291
|
+
# models (e.g. Pet) or oneOf
|
|
292
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
293
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
287
294
|
end
|
|
288
295
|
end
|
|
289
296
|
|
|
@@ -309,7 +316,7 @@ module OpenapiClient
|
|
|
309
316
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
310
317
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
311
318
|
end
|
|
312
|
-
|
|
319
|
+
|
|
313
320
|
hash[param] = _to_hash(value)
|
|
314
321
|
end
|
|
315
322
|
hash
|
|
@@ -334,4 +341,5 @@ module OpenapiClient
|
|
|
334
341
|
end
|
|
335
342
|
|
|
336
343
|
end
|
|
344
|
+
|
|
337
345
|
end
|
|
@@ -6,14 +6,14 @@
|
|
|
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: 5.0.0
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# Define volume properties on a specific storage resource.
|
|
18
18
|
class Volume
|
|
19
19
|
# compliant
|
|
@@ -77,6 +77,11 @@ module OpenapiClient
|
|
|
77
77
|
}
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
# Returns all the JSON keys this model knows about
|
|
81
|
+
def self.acceptable_attributes
|
|
82
|
+
attribute_map.values
|
|
83
|
+
end
|
|
84
|
+
|
|
80
85
|
# Attribute type mapping.
|
|
81
86
|
def self.openapi_types
|
|
82
87
|
{
|
|
@@ -102,13 +107,13 @@ module OpenapiClient
|
|
|
102
107
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
103
108
|
def initialize(attributes = {})
|
|
104
109
|
if (!attributes.is_a?(Hash))
|
|
105
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
110
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::Volume` initialize method"
|
|
106
111
|
end
|
|
107
112
|
|
|
108
113
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
109
114
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
110
115
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
111
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
116
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::Volume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
112
117
|
end
|
|
113
118
|
h[k.to_sym] = v
|
|
114
119
|
}
|
|
@@ -276,7 +281,9 @@ module OpenapiClient
|
|
|
276
281
|
end
|
|
277
282
|
end
|
|
278
283
|
else # model
|
|
279
|
-
|
|
284
|
+
# models (e.g. Pet) or oneOf
|
|
285
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
286
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
280
287
|
end
|
|
281
288
|
end
|
|
282
289
|
|
|
@@ -302,7 +309,7 @@ module OpenapiClient
|
|
|
302
309
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
303
310
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
304
311
|
end
|
|
305
|
-
|
|
312
|
+
|
|
306
313
|
hash[param] = _to_hash(value)
|
|
307
314
|
end
|
|
308
315
|
hash
|
|
@@ -327,4 +334,5 @@ module OpenapiClient
|
|
|
327
334
|
end
|
|
328
335
|
|
|
329
336
|
end
|
|
337
|
+
|
|
330
338
|
end
|
|
@@ -6,14 +6,14 @@
|
|
|
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: 5.0.0
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# TODO add description
|
|
18
18
|
class VolumeCreate
|
|
19
19
|
# compliant
|
|
@@ -72,6 +72,11 @@ module OpenapiClient
|
|
|
72
72
|
}
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
# Returns all the JSON keys this model knows about
|
|
76
|
+
def self.acceptable_attributes
|
|
77
|
+
attribute_map.values
|
|
78
|
+
end
|
|
79
|
+
|
|
75
80
|
# Attribute type mapping.
|
|
76
81
|
def self.openapi_types
|
|
77
82
|
{
|
|
@@ -95,13 +100,13 @@ module OpenapiClient
|
|
|
95
100
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
96
101
|
def initialize(attributes = {})
|
|
97
102
|
if (!attributes.is_a?(Hash))
|
|
98
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
103
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::VolumeCreate` initialize method"
|
|
99
104
|
end
|
|
100
105
|
|
|
101
106
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
102
107
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
103
108
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
104
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
109
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::VolumeCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
105
110
|
end
|
|
106
111
|
h[k.to_sym] = v
|
|
107
112
|
}
|
|
@@ -259,7 +264,9 @@ module OpenapiClient
|
|
|
259
264
|
end
|
|
260
265
|
end
|
|
261
266
|
else # model
|
|
262
|
-
|
|
267
|
+
# models (e.g. Pet) or oneOf
|
|
268
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
269
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
263
270
|
end
|
|
264
271
|
end
|
|
265
272
|
|
|
@@ -285,7 +292,7 @@ module OpenapiClient
|
|
|
285
292
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
286
293
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
287
294
|
end
|
|
288
|
-
|
|
295
|
+
|
|
289
296
|
hash[param] = _to_hash(value)
|
|
290
297
|
end
|
|
291
298
|
hash
|
|
@@ -310,4 +317,5 @@ module OpenapiClient
|
|
|
310
317
|
end
|
|
311
318
|
|
|
312
319
|
end
|
|
320
|
+
|
|
313
321
|
end
|
|
@@ -6,14 +6,14 @@
|
|
|
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: 5.0.0
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# TODO add description
|
|
18
18
|
class VolumeResponse
|
|
19
19
|
# compliant
|
|
@@ -79,6 +79,11 @@ module OpenapiClient
|
|
|
79
79
|
}
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
# Returns all the JSON keys this model knows about
|
|
83
|
+
def self.acceptable_attributes
|
|
84
|
+
attribute_map.values
|
|
85
|
+
end
|
|
86
|
+
|
|
82
87
|
# Attribute type mapping.
|
|
83
88
|
def self.openapi_types
|
|
84
89
|
{
|
|
@@ -104,13 +109,13 @@ module OpenapiClient
|
|
|
104
109
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
110
|
def initialize(attributes = {})
|
|
106
111
|
if (!attributes.is_a?(Hash))
|
|
107
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
112
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::VolumeResponse` initialize method"
|
|
108
113
|
end
|
|
109
114
|
|
|
110
115
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
111
116
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
112
117
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
113
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
118
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::VolumeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
114
119
|
end
|
|
115
120
|
h[k.to_sym] = v
|
|
116
121
|
}
|
|
@@ -278,7 +283,9 @@ module OpenapiClient
|
|
|
278
283
|
end
|
|
279
284
|
end
|
|
280
285
|
else # model
|
|
281
|
-
|
|
286
|
+
# models (e.g. Pet) or oneOf
|
|
287
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
288
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
282
289
|
end
|
|
283
290
|
end
|
|
284
291
|
|
|
@@ -304,7 +311,7 @@ module OpenapiClient
|
|
|
304
311
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
305
312
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
306
313
|
end
|
|
307
|
-
|
|
314
|
+
|
|
308
315
|
hash[param] = _to_hash(value)
|
|
309
316
|
end
|
|
310
317
|
hash
|
|
@@ -329,4 +336,5 @@ module OpenapiClient
|
|
|
329
336
|
end
|
|
330
337
|
|
|
331
338
|
end
|
|
339
|
+
|
|
332
340
|
end
|