autosde_openapi_client 1.0.1 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +150 -149
- data/{openapi_client.gemspec → autosde_openapi_client.gemspec} +4 -4
- data/docs/AbstractCapability.md +11 -10
- data/docs/AbstractCapabilityApi.md +125 -53
- data/docs/Account.md +13 -12
- data/docs/AccountApi.md +158 -68
- data/docs/AccountPostRequest.md +11 -10
- data/docs/AccountPostResponse.md +15 -14
- data/docs/Address.md +23 -22
- data/docs/AddressApi.md +125 -53
- data/docs/AddressCreate.md +23 -22
- data/docs/AuthResponse.md +9 -8
- data/docs/Authentication.md +11 -10
- data/docs/AuthenticationApi.md +34 -17
- data/docs/AutoSDEProject.md +47 -46
- data/docs/AutoSDEProjectApi.md +125 -53
- data/docs/AutoSDERole.md +11 -10
- data/docs/AutoSDERoleApi.md +125 -53
- data/docs/CapabilityTranslation.md +27 -26
- data/docs/CapabilityTranslationApi.md +125 -53
- data/docs/CapabilityTranslationCreate.md +23 -22
- data/docs/Host.md +21 -20
- data/docs/HostApi.md +125 -53
- data/docs/HostCreate.md +31 -30
- data/docs/HostVolumeConnection.md +15 -14
- data/docs/HostVolumeConnectionApi.md +125 -53
- data/docs/HostVolumeConnectionCreate.md +13 -12
- data/docs/Job.md +21 -20
- data/docs/JobApi.md +63 -27
- data/docs/JobCreate.md +11 -10
- data/docs/NativeCapability.md +15 -14
- data/docs/NativeCapabilityApi.md +125 -53
- data/docs/Profile.md +17 -16
- data/docs/ProfileApi.md +125 -53
- data/docs/ProvisioningStrategy.md +11 -10
- data/docs/ProvisioningStrategyApi.md +125 -53
- data/docs/Service.md +27 -26
- data/docs/ServiceAbstractCapabilityValue.md +13 -12
- data/docs/ServiceApi.md +158 -68
- data/docs/ServiceCreate.md +25 -24
- data/docs/ServiceResourceAttachment.md +15 -14
- data/docs/ServiceResourceAttachmentApi.md +125 -53
- data/docs/Snapshot.md +17 -16
- data/docs/SnapshotApi.md +125 -53
- data/docs/SnapshotCreate.md +15 -14
- data/docs/StorageHost.md +21 -20
- data/docs/StorageHostApi.md +158 -68
- 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 +129 -57
- data/docs/StorageHostVolumeMappingCreate.md +15 -14
- data/docs/StorageHostVolumeMappingResponse.md +26 -0
- data/docs/StorageResource.md +25 -24
- data/docs/StorageResourceApi.md +158 -68
- data/docs/StorageResourceCreate.md +23 -22
- data/docs/StorageResourceResponse.md +25 -24
- data/docs/StorageSystem.md +21 -20
- data/docs/StorageSystemApi.md +125 -53
- data/docs/StorageSystemCreate.md +41 -40
- data/docs/SystemType.md +17 -16
- data/docs/SystemTypeApi.md +125 -53
- data/docs/SystemTypeCreate.md +19 -18
- data/docs/Volume.md +25 -24
- data/docs/VolumeApi.md +158 -68
- data/docs/VolumeCreate.md +21 -20
- data/docs/VolumeResponse.md +25 -24
- data/docs/VolumeSafeDelete.md +13 -12
- data/docs/VolumeSafeDeleteApi.md +125 -53
- data/docs/VolumeSafeDeleteCreate.md +9 -8
- data/docs/VolumeUpdate.md +11 -10
- data/lib/autosde_openapi_client.rb +109 -0
- data/lib/{openapi_client → autosde_openapi_client}/api/abstract_capability_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/account_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/address_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/authentication_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/auto_sde_project_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/auto_sde_role_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/capability_translation_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/host_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/host_volume_connection_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/job_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/native_capability_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/profile_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/provisioning_strategy_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/service_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/service_resource_attachment_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/snapshot_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/storage_host_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/storage_host_volume_mapping_api.rb +14 -14
- data/lib/{openapi_client → autosde_openapi_client}/api/storage_resource_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/storage_system_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/system_type_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/volume_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api/volume_safe_delete_api.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/api_client.rb +5 -4
- data/lib/{openapi_client → autosde_openapi_client}/api_error.rb +2 -2
- data/lib/{openapi_client → autosde_openapi_client}/configuration.rb +2 -2
- data/lib/{openapi_client/models/auto_sde_role.rb → autosde_openapi_client/models/abstract_capability.rb} +16 -8
- data/lib/{openapi_client → autosde_openapi_client}/models/account.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/account_post_request.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/account_post_response.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/address.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/address_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/auth_response.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/authentication.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/auto_sde_project.rb +14 -6
- data/lib/{openapi_client/models/abstract_capability.rb → autosde_openapi_client/models/auto_sde_role.rb} +16 -8
- data/lib/{openapi_client → autosde_openapi_client}/models/capability_translation.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/capability_translation_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/host.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/host_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/host_volume_connection.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/host_volume_connection_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/job.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/job_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/native_capability.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/profile.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/provisioning_strategy.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/service.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/service_abstract_capability_value.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/service_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/service_resource_attachment.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/snapshot.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/snapshot_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_host.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_host_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_host_response.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_host_update.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_host_volume_mapping.rb +14 -6
- data/lib/{openapi_client → 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/{openapi_client → autosde_openapi_client}/models/storage_resource.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_resource_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_resource_response.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_system.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/storage_system_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/system_type.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/system_type_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/volume.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/volume_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/volume_response.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/volume_safe_delete.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/volume_safe_delete_create.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/models/volume_update.rb +14 -6
- data/lib/{openapi_client → autosde_openapi_client}/version.rb +4 -4
- data/spec/api/abstract_capability_api_spec.rb +2 -2
- data/spec/api/account_api_spec.rb +3 -3
- data/spec/api/address_api_spec.rb +2 -2
- data/spec/api/authentication_api_spec.rb +1 -1
- data/spec/api/auto_sde_project_api_spec.rb +2 -2
- data/spec/api/auto_sde_role_api_spec.rb +2 -2
- data/spec/api/capability_translation_api_spec.rb +2 -2
- data/spec/api/host_api_spec.rb +2 -2
- data/spec/api/host_volume_connection_api_spec.rb +2 -2
- data/spec/api/job_api_spec.rb +2 -2
- data/spec/api/native_capability_api_spec.rb +2 -2
- data/spec/api/profile_api_spec.rb +2 -2
- data/spec/api/provisioning_strategy_api_spec.rb +2 -2
- data/spec/api/service_api_spec.rb +3 -3
- data/spec/api/service_resource_attachment_api_spec.rb +2 -2
- data/spec/api/snapshot_api_spec.rb +2 -2
- data/spec/api/storage_host_api_spec.rb +13 -2
- data/spec/api/storage_host_volume_mapping_api_spec.rb +2 -2
- data/spec/api/storage_resource_api_spec.rb +3 -3
- data/spec/api/storage_system_api_spec.rb +2 -2
- data/spec/api/system_type_api_spec.rb +2 -2
- data/spec/api/volume_api_spec.rb +3 -3
- data/spec/api/volume_safe_delete_api_spec.rb +2 -2
- 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 +11 -12
- data/spec/models/volume_response_spec.rb +11 -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 +11 -12
- data/spec/models/volume_update_spec.rb +4 -11
- data/spec/spec_helper.rb +2 -2
- metadata +136 -133
- data/lib/openapi_client.rb +0 -108
@@ -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 SnapshotCreate
|
19
19
|
# component_state
|
@@ -59,6 +59,11 @@ module OpenapiClient
|
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
62
|
+
# Returns all the JSON keys this model knows about
|
63
|
+
def self.acceptable_attributes
|
64
|
+
attribute_map.values
|
65
|
+
end
|
66
|
+
|
62
67
|
# Attribute type mapping.
|
63
68
|
def self.openapi_types
|
64
69
|
{
|
@@ -79,13 +84,13 @@ module OpenapiClient
|
|
79
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
80
85
|
def initialize(attributes = {})
|
81
86
|
if (!attributes.is_a?(Hash))
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
87
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::SnapshotCreate` initialize method"
|
83
88
|
end
|
84
89
|
|
85
90
|
# check to see if the attribute exists and convert string to symbol for hash key
|
86
91
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
92
|
if (!self.class.attribute_map.key?(k.to_sym))
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::SnapshotCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
89
94
|
end
|
90
95
|
h[k.to_sym] = v
|
91
96
|
}
|
@@ -226,7 +231,9 @@ module OpenapiClient
|
|
226
231
|
end
|
227
232
|
end
|
228
233
|
else # model
|
229
|
-
|
234
|
+
# models (e.g. Pet) or oneOf
|
235
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
236
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
230
237
|
end
|
231
238
|
end
|
232
239
|
|
@@ -252,7 +259,7 @@ module OpenapiClient
|
|
252
259
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
253
260
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
254
261
|
end
|
255
|
-
|
262
|
+
|
256
263
|
hash[param] = _to_hash(value)
|
257
264
|
end
|
258
265
|
hash
|
@@ -277,4 +284,5 @@ module OpenapiClient
|
|
277
284
|
end
|
278
285
|
|
279
286
|
end
|
287
|
+
|
280
288
|
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
|
# Storage host
|
18
18
|
class StorageHost
|
19
19
|
# component_state
|
@@ -70,6 +70,11 @@ module OpenapiClient
|
|
70
70
|
}
|
71
71
|
end
|
72
72
|
|
73
|
+
# Returns all the JSON keys this model knows about
|
74
|
+
def self.acceptable_attributes
|
75
|
+
attribute_map.values
|
76
|
+
end
|
77
|
+
|
73
78
|
# Attribute type mapping.
|
74
79
|
def self.openapi_types
|
75
80
|
{
|
@@ -93,13 +98,13 @@ module OpenapiClient
|
|
93
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
94
99
|
def initialize(attributes = {})
|
95
100
|
if (!attributes.is_a?(Hash))
|
96
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageHost` initialize method"
|
97
102
|
end
|
98
103
|
|
99
104
|
# check to see if the attribute exists and convert string to symbol for hash key
|
100
105
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
101
106
|
if (!self.class.attribute_map.key?(k.to_sym))
|
102
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
107
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageHost`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
103
108
|
end
|
104
109
|
h[k.to_sym] = v
|
105
110
|
}
|
@@ -255,7 +260,9 @@ module OpenapiClient
|
|
255
260
|
end
|
256
261
|
end
|
257
262
|
else # model
|
258
|
-
|
263
|
+
# models (e.g. Pet) or oneOf
|
264
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
265
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
259
266
|
end
|
260
267
|
end
|
261
268
|
|
@@ -281,7 +288,7 @@ module OpenapiClient
|
|
281
288
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
282
289
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
283
290
|
end
|
284
|
-
|
291
|
+
|
285
292
|
hash[param] = _to_hash(value)
|
286
293
|
end
|
287
294
|
hash
|
@@ -306,4 +313,5 @@ module OpenapiClient
|
|
306
313
|
end
|
307
314
|
|
308
315
|
end
|
316
|
+
|
309
317
|
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 StorageHostCreate
|
19
19
|
# chap_name
|
@@ -85,6 +85,11 @@ module OpenapiClient
|
|
85
85
|
}
|
86
86
|
end
|
87
87
|
|
88
|
+
# Returns all the JSON keys this model knows about
|
89
|
+
def self.acceptable_attributes
|
90
|
+
attribute_map.values
|
91
|
+
end
|
92
|
+
|
88
93
|
# Attribute type mapping.
|
89
94
|
def self.openapi_types
|
90
95
|
{
|
@@ -112,13 +117,13 @@ module OpenapiClient
|
|
112
117
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
118
|
def initialize(attributes = {})
|
114
119
|
if (!attributes.is_a?(Hash))
|
115
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
120
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageHostCreate` initialize method"
|
116
121
|
end
|
117
122
|
|
118
123
|
# check to see if the attribute exists and convert string to symbol for hash key
|
119
124
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
120
125
|
if (!self.class.attribute_map.key?(k.to_sym))
|
121
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
126
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageHostCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
122
127
|
end
|
123
128
|
h[k.to_sym] = v
|
124
129
|
}
|
@@ -306,7 +311,9 @@ module OpenapiClient
|
|
306
311
|
end
|
307
312
|
end
|
308
313
|
else # model
|
309
|
-
|
314
|
+
# models (e.g. Pet) or oneOf
|
315
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
316
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
310
317
|
end
|
311
318
|
end
|
312
319
|
|
@@ -332,7 +339,7 @@ module OpenapiClient
|
|
332
339
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
333
340
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
334
341
|
end
|
335
|
-
|
342
|
+
|
336
343
|
hash[param] = _to_hash(value)
|
337
344
|
end
|
338
345
|
hash
|
@@ -357,4 +364,5 @@ module OpenapiClient
|
|
357
364
|
end
|
358
365
|
|
359
366
|
end
|
367
|
+
|
360
368
|
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 StorageHostResponse
|
19
19
|
# addresses
|
@@ -76,6 +76,11 @@ module OpenapiClient
|
|
76
76
|
}
|
77
77
|
end
|
78
78
|
|
79
|
+
# Returns all the JSON keys this model knows about
|
80
|
+
def self.acceptable_attributes
|
81
|
+
attribute_map.values
|
82
|
+
end
|
83
|
+
|
79
84
|
# Attribute type mapping.
|
80
85
|
def self.openapi_types
|
81
86
|
{
|
@@ -100,13 +105,13 @@ module OpenapiClient
|
|
100
105
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
106
|
def initialize(attributes = {})
|
102
107
|
if (!attributes.is_a?(Hash))
|
103
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
108
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageHostResponse` initialize method"
|
104
109
|
end
|
105
110
|
|
106
111
|
# check to see if the attribute exists and convert string to symbol for hash key
|
107
112
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
108
113
|
if (!self.class.attribute_map.key?(k.to_sym))
|
109
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
114
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageHostResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
110
115
|
end
|
111
116
|
h[k.to_sym] = v
|
112
117
|
}
|
@@ -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 StorageHostUpdate
|
19
19
|
# operation
|
@@ -56,6 +56,11 @@ module OpenapiClient
|
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
|
+
# Returns all the JSON keys this model knows about
|
60
|
+
def self.acceptable_attributes
|
61
|
+
attribute_map.values
|
62
|
+
end
|
63
|
+
|
59
64
|
# Attribute type mapping.
|
60
65
|
def self.openapi_types
|
61
66
|
{
|
@@ -75,13 +80,13 @@ module OpenapiClient
|
|
75
80
|
# @param [Hash] attributes Model attributes in the form of hash
|
76
81
|
def initialize(attributes = {})
|
77
82
|
if (!attributes.is_a?(Hash))
|
78
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageHostUpdate` initialize method"
|
79
84
|
end
|
80
85
|
|
81
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
82
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
88
|
if (!self.class.attribute_map.key?(k.to_sym))
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageHostUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
85
90
|
end
|
86
91
|
h[k.to_sym] = v
|
87
92
|
}
|
@@ -239,7 +244,9 @@ module OpenapiClient
|
|
239
244
|
end
|
240
245
|
end
|
241
246
|
else # model
|
242
|
-
|
247
|
+
# models (e.g. Pet) or oneOf
|
248
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
249
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
243
250
|
end
|
244
251
|
end
|
245
252
|
|
@@ -265,7 +272,7 @@ module OpenapiClient
|
|
265
272
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
266
273
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
267
274
|
end
|
268
|
-
|
275
|
+
|
269
276
|
hash[param] = _to_hash(value)
|
270
277
|
end
|
271
278
|
hash
|
@@ -290,4 +297,5 @@ module OpenapiClient
|
|
290
297
|
end
|
291
298
|
|
292
299
|
end
|
300
|
+
|
293
301
|
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
|
# StorageHostVolumeMapping
|
18
18
|
class StorageHostVolumeMapping
|
19
19
|
# component_state
|
@@ -62,6 +62,11 @@ module OpenapiClient
|
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
65
|
+
# Returns all the JSON keys this model knows about
|
66
|
+
def self.acceptable_attributes
|
67
|
+
attribute_map.values
|
68
|
+
end
|
69
|
+
|
65
70
|
# Attribute type mapping.
|
66
71
|
def self.openapi_types
|
67
72
|
{
|
@@ -83,13 +88,13 @@ module OpenapiClient
|
|
83
88
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
89
|
def initialize(attributes = {})
|
85
90
|
if (!attributes.is_a?(Hash))
|
86
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
91
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageHostVolumeMapping` initialize method"
|
87
92
|
end
|
88
93
|
|
89
94
|
# check to see if the attribute exists and convert string to symbol for hash key
|
90
95
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
96
|
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageHostVolumeMapping`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
93
98
|
end
|
94
99
|
h[k.to_sym] = v
|
95
100
|
}
|
@@ -237,7 +242,9 @@ module OpenapiClient
|
|
237
242
|
end
|
238
243
|
end
|
239
244
|
else # model
|
240
|
-
|
245
|
+
# models (e.g. Pet) or oneOf
|
246
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
247
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
241
248
|
end
|
242
249
|
end
|
243
250
|
|
@@ -263,7 +270,7 @@ module OpenapiClient
|
|
263
270
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
264
271
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
265
272
|
end
|
266
|
-
|
273
|
+
|
267
274
|
hash[param] = _to_hash(value)
|
268
275
|
end
|
269
276
|
hash
|
@@ -288,4 +295,5 @@ module OpenapiClient
|
|
288
295
|
end
|
289
296
|
|
290
297
|
end
|
298
|
+
|
291
299
|
end
|
data/lib/{openapi_client → autosde_openapi_client}/models/storage_host_volume_mapping_create.rb
RENAMED
@@ -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 StorageHostVolumeMappingCreate
|
19
19
|
# component_state
|
@@ -60,6 +60,11 @@ module OpenapiClient
|
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
63
|
+
# Returns all the JSON keys this model knows about
|
64
|
+
def self.acceptable_attributes
|
65
|
+
attribute_map.values
|
66
|
+
end
|
67
|
+
|
63
68
|
# Attribute type mapping.
|
64
69
|
def self.openapi_types
|
65
70
|
{
|
@@ -80,13 +85,13 @@ module OpenapiClient
|
|
80
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
81
86
|
def initialize(attributes = {})
|
82
87
|
if (!attributes.is_a?(Hash))
|
83
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
88
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageHostVolumeMappingCreate` initialize method"
|
84
89
|
end
|
85
90
|
|
86
91
|
# check to see if the attribute exists and convert string to symbol for hash key
|
87
92
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
88
93
|
if (!self.class.attribute_map.key?(k.to_sym))
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageHostVolumeMappingCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
90
95
|
end
|
91
96
|
h[k.to_sym] = v
|
92
97
|
}
|
@@ -229,7 +234,9 @@ module OpenapiClient
|
|
229
234
|
end
|
230
235
|
end
|
231
236
|
else # model
|
232
|
-
|
237
|
+
# models (e.g. Pet) or oneOf
|
238
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
239
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
233
240
|
end
|
234
241
|
end
|
235
242
|
|
@@ -255,7 +262,7 @@ module OpenapiClient
|
|
255
262
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
256
263
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
257
264
|
end
|
258
|
-
|
265
|
+
|
259
266
|
hash[param] = _to_hash(value)
|
260
267
|
end
|
261
268
|
hash
|
@@ -280,4 +287,5 @@ module OpenapiClient
|
|
280
287
|
end
|
281
288
|
|
282
289
|
end
|
290
|
+
|
283
291
|
end
|