autosde_openapi_client 1.0.2 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
# doc-todo: what 'host' is this defining or being filled in for? Fill in host properties: name, UUID, management IP address, and IQN.
|
18
18
|
class Host
|
19
19
|
# component_state
|
@@ -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::Host` 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::Host`. 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
|
}
|
@@ -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 HostCreate
|
19
19
|
# chap_name
|
@@ -91,6 +91,11 @@ module OpenapiClient
|
|
91
91
|
}
|
92
92
|
end
|
93
93
|
|
94
|
+
# Returns all the JSON keys this model knows about
|
95
|
+
def self.acceptable_attributes
|
96
|
+
attribute_map.values
|
97
|
+
end
|
98
|
+
|
94
99
|
# Attribute type mapping.
|
95
100
|
def self.openapi_types
|
96
101
|
{
|
@@ -119,13 +124,13 @@ module OpenapiClient
|
|
119
124
|
# @param [Hash] attributes Model attributes in the form of hash
|
120
125
|
def initialize(attributes = {})
|
121
126
|
if (!attributes.is_a?(Hash))
|
122
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
127
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::HostCreate` initialize method"
|
123
128
|
end
|
124
129
|
|
125
130
|
# check to see if the attribute exists and convert string to symbol for hash key
|
126
131
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
127
132
|
if (!self.class.attribute_map.key?(k.to_sym))
|
128
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
133
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::HostCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
129
134
|
end
|
130
135
|
h[k.to_sym] = v
|
131
136
|
}
|
@@ -332,7 +337,9 @@ module OpenapiClient
|
|
332
337
|
end
|
333
338
|
end
|
334
339
|
else # model
|
335
|
-
|
340
|
+
# models (e.g. Pet) or oneOf
|
341
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
342
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
336
343
|
end
|
337
344
|
end
|
338
345
|
|
@@ -358,7 +365,7 @@ module OpenapiClient
|
|
358
365
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
359
366
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
360
367
|
end
|
361
|
-
|
368
|
+
|
362
369
|
hash[param] = _to_hash(value)
|
363
370
|
end
|
364
371
|
hash
|
@@ -383,4 +390,5 @@ module OpenapiClient
|
|
383
390
|
end
|
384
391
|
|
385
392
|
end
|
393
|
+
|
386
394
|
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
|
# Fill in the host volume connection properties.
|
18
18
|
class HostVolumeConnection
|
19
19
|
# component_state
|
@@ -58,6 +58,11 @@ module OpenapiClient
|
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
61
|
+
# Returns all the JSON keys this model knows about
|
62
|
+
def self.acceptable_attributes
|
63
|
+
attribute_map.values
|
64
|
+
end
|
65
|
+
|
61
66
|
# Attribute type mapping.
|
62
67
|
def self.openapi_types
|
63
68
|
{
|
@@ -78,13 +83,13 @@ module OpenapiClient
|
|
78
83
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
84
|
def initialize(attributes = {})
|
80
85
|
if (!attributes.is_a?(Hash))
|
81
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::HostVolumeConnection` initialize method"
|
82
87
|
end
|
83
88
|
|
84
89
|
# check to see if the attribute exists and convert string to symbol for hash key
|
85
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
91
|
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::HostVolumeConnection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
93
|
end
|
89
94
|
h[k.to_sym] = v
|
90
95
|
}
|
@@ -225,7 +230,9 @@ module OpenapiClient
|
|
225
230
|
end
|
226
231
|
end
|
227
232
|
else # model
|
228
|
-
|
233
|
+
# models (e.g. Pet) or oneOf
|
234
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
235
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
229
236
|
end
|
230
237
|
end
|
231
238
|
|
@@ -251,7 +258,7 @@ module OpenapiClient
|
|
251
258
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
252
259
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
253
260
|
end
|
254
|
-
|
261
|
+
|
255
262
|
hash[param] = _to_hash(value)
|
256
263
|
end
|
257
264
|
hash
|
@@ -276,4 +283,5 @@ module OpenapiClient
|
|
276
283
|
end
|
277
284
|
|
278
285
|
end
|
286
|
+
|
279
287
|
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 HostVolumeConnectionCreate
|
19
19
|
# component_state
|
@@ -54,6 +54,11 @@ module OpenapiClient
|
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
57
|
+
# Returns all the JSON keys this model knows about
|
58
|
+
def self.acceptable_attributes
|
59
|
+
attribute_map.values
|
60
|
+
end
|
61
|
+
|
57
62
|
# Attribute type mapping.
|
58
63
|
def self.openapi_types
|
59
64
|
{
|
@@ -73,13 +78,13 @@ module OpenapiClient
|
|
73
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
79
|
def initialize(attributes = {})
|
75
80
|
if (!attributes.is_a?(Hash))
|
76
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::HostVolumeConnectionCreate` initialize method"
|
77
82
|
end
|
78
83
|
|
79
84
|
# check to see if the attribute exists and convert string to symbol for hash key
|
80
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
86
|
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::HostVolumeConnectionCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
88
|
end
|
84
89
|
h[k.to_sym] = v
|
85
90
|
}
|
@@ -215,7 +220,9 @@ module OpenapiClient
|
|
215
220
|
end
|
216
221
|
end
|
217
222
|
else # model
|
218
|
-
|
223
|
+
# models (e.g. Pet) or oneOf
|
224
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
225
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
219
226
|
end
|
220
227
|
end
|
221
228
|
|
@@ -241,7 +248,7 @@ module OpenapiClient
|
|
241
248
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
242
249
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
243
250
|
end
|
244
|
-
|
251
|
+
|
245
252
|
hash[param] = _to_hash(value)
|
246
253
|
end
|
247
254
|
hash
|
@@ -266,4 +273,5 @@ module OpenapiClient
|
|
266
273
|
end
|
267
274
|
|
268
275
|
end
|
276
|
+
|
269
277
|
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
|
# Job
|
18
18
|
class Job
|
19
19
|
# date_finished
|
@@ -50,6 +50,11 @@ module OpenapiClient
|
|
50
50
|
}
|
51
51
|
end
|
52
52
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
54
|
+
def self.acceptable_attributes
|
55
|
+
attribute_map.values
|
56
|
+
end
|
57
|
+
|
53
58
|
# Attribute type mapping.
|
54
59
|
def self.openapi_types
|
55
60
|
{
|
@@ -73,13 +78,13 @@ module OpenapiClient
|
|
73
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
79
|
def initialize(attributes = {})
|
75
80
|
if (!attributes.is_a?(Hash))
|
76
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::Job` initialize method"
|
77
82
|
end
|
78
83
|
|
79
84
|
# check to see if the attribute exists and convert string to symbol for hash key
|
80
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
86
|
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::Job`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
88
|
end
|
84
89
|
h[k.to_sym] = v
|
85
90
|
}
|
@@ -218,7 +223,9 @@ module OpenapiClient
|
|
218
223
|
end
|
219
224
|
end
|
220
225
|
else # model
|
221
|
-
|
226
|
+
# models (e.g. Pet) or oneOf
|
227
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
228
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
222
229
|
end
|
223
230
|
end
|
224
231
|
|
@@ -244,7 +251,7 @@ module OpenapiClient
|
|
244
251
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
245
252
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
246
253
|
end
|
247
|
-
|
254
|
+
|
248
255
|
hash[param] = _to_hash(value)
|
249
256
|
end
|
250
257
|
hash
|
@@ -269,4 +276,5 @@ module OpenapiClient
|
|
269
276
|
end
|
270
277
|
|
271
278
|
end
|
279
|
+
|
272
280
|
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
|
# JobCreate
|
18
18
|
class JobCreate
|
19
19
|
# task_args
|
@@ -30,6 +30,11 @@ module OpenapiClient
|
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
33
38
|
# Attribute type mapping.
|
34
39
|
def self.openapi_types
|
35
40
|
{
|
@@ -48,13 +53,13 @@ module OpenapiClient
|
|
48
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
54
|
def initialize(attributes = {})
|
50
55
|
if (!attributes.is_a?(Hash))
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::JobCreate` initialize method"
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::JobCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
63
|
end
|
59
64
|
h[k.to_sym] = v
|
60
65
|
}
|
@@ -168,7 +173,9 @@ module OpenapiClient
|
|
168
173
|
end
|
169
174
|
end
|
170
175
|
else # model
|
171
|
-
|
176
|
+
# models (e.g. Pet) or oneOf
|
177
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
178
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
172
179
|
end
|
173
180
|
end
|
174
181
|
|
@@ -194,7 +201,7 @@ module OpenapiClient
|
|
194
201
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
202
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
203
|
end
|
197
|
-
|
204
|
+
|
198
205
|
hash[param] = _to_hash(value)
|
199
206
|
end
|
200
207
|
hash
|
@@ -219,4 +226,5 @@ module OpenapiClient
|
|
219
226
|
end
|
220
227
|
|
221
228
|
end
|
229
|
+
|
222
230
|
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
|
# NativeCapability
|
18
18
|
class NativeCapability
|
19
19
|
# name
|
@@ -37,6 +37,11 @@ module OpenapiClient
|
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
40
45
|
# Attribute type mapping.
|
41
46
|
def self.openapi_types
|
42
47
|
{
|
@@ -57,13 +62,13 @@ module OpenapiClient
|
|
57
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
58
63
|
def initialize(attributes = {})
|
59
64
|
if (!attributes.is_a?(Hash))
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::NativeCapability` initialize method"
|
61
66
|
end
|
62
67
|
|
63
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
64
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::NativeCapability`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
72
|
end
|
68
73
|
h[k.to_sym] = v
|
69
74
|
}
|
@@ -189,7 +194,9 @@ module OpenapiClient
|
|
189
194
|
end
|
190
195
|
end
|
191
196
|
else # model
|
192
|
-
|
197
|
+
# models (e.g. Pet) or oneOf
|
198
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
199
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
193
200
|
end
|
194
201
|
end
|
195
202
|
|
@@ -215,7 +222,7 @@ module OpenapiClient
|
|
215
222
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
216
223
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
217
224
|
end
|
218
|
-
|
225
|
+
|
219
226
|
hash[param] = _to_hash(value)
|
220
227
|
end
|
221
228
|
hash
|
@@ -240,4 +247,5 @@ module OpenapiClient
|
|
240
247
|
end
|
241
248
|
|
242
249
|
end
|
250
|
+
|
243
251
|
end
|