autosde_openapi_client 1.0.2 → 1.0.3
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 +146 -146
- data/autosde_openapi_client.gemspec +2 -2
- 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 +121 -49
- data/docs/StorageHostVolumeMappingCreate.md +15 -14
- 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 +3 -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 +2 -2
- 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 +6 -5
- data/lib/autosde_openapi_client/api_error.rb +2 -2
- data/lib/autosde_openapi_client/configuration.rb +7 -5
- 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_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_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 +55 -55
|
@@ -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.
|
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# Used for capacity provisioning details.
|
|
18
18
|
class ProvisioningStrategy
|
|
19
19
|
# name
|
|
@@ -52,6 +52,11 @@ module OpenapiClient
|
|
|
52
52
|
}
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
# Returns all the JSON keys this model knows about
|
|
56
|
+
def self.acceptable_attributes
|
|
57
|
+
attribute_map.values
|
|
58
|
+
end
|
|
59
|
+
|
|
55
60
|
# Attribute type mapping.
|
|
56
61
|
def self.openapi_types
|
|
57
62
|
{
|
|
@@ -70,13 +75,13 @@ module OpenapiClient
|
|
|
70
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
71
76
|
def initialize(attributes = {})
|
|
72
77
|
if (!attributes.is_a?(Hash))
|
|
73
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ProvisioningStrategy` initialize method"
|
|
74
79
|
end
|
|
75
80
|
|
|
76
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
82
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
83
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ProvisioningStrategy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
80
85
|
end
|
|
81
86
|
h[k.to_sym] = v
|
|
82
87
|
}
|
|
@@ -207,7 +212,9 @@ module OpenapiClient
|
|
|
207
212
|
end
|
|
208
213
|
end
|
|
209
214
|
else # model
|
|
210
|
-
|
|
215
|
+
# models (e.g. Pet) or oneOf
|
|
216
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
217
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
211
218
|
end
|
|
212
219
|
end
|
|
213
220
|
|
|
@@ -233,7 +240,7 @@ module OpenapiClient
|
|
|
233
240
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
234
241
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
235
242
|
end
|
|
236
|
-
|
|
243
|
+
|
|
237
244
|
hash[param] = _to_hash(value)
|
|
238
245
|
end
|
|
239
246
|
hash
|
|
@@ -258,4 +265,5 @@ module OpenapiClient
|
|
|
258
265
|
end
|
|
259
266
|
|
|
260
267
|
end
|
|
268
|
+
|
|
261
269
|
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.
|
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# Service
|
|
18
18
|
class Service
|
|
19
19
|
attr_accessor :capability_values
|
|
@@ -80,6 +80,11 @@ module OpenapiClient
|
|
|
80
80
|
}
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
# Returns all the JSON keys this model knows about
|
|
84
|
+
def self.acceptable_attributes
|
|
85
|
+
attribute_map.values
|
|
86
|
+
end
|
|
87
|
+
|
|
83
88
|
# Attribute type mapping.
|
|
84
89
|
def self.openapi_types
|
|
85
90
|
{
|
|
@@ -106,13 +111,13 @@ module OpenapiClient
|
|
|
106
111
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
107
112
|
def initialize(attributes = {})
|
|
108
113
|
if (!attributes.is_a?(Hash))
|
|
109
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
114
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::Service` initialize method"
|
|
110
115
|
end
|
|
111
116
|
|
|
112
117
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
113
118
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
114
119
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
115
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
120
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::Service`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
116
121
|
end
|
|
117
122
|
h[k.to_sym] = v
|
|
118
123
|
}
|
|
@@ -289,7 +294,9 @@ module OpenapiClient
|
|
|
289
294
|
end
|
|
290
295
|
end
|
|
291
296
|
else # model
|
|
292
|
-
|
|
297
|
+
# models (e.g. Pet) or oneOf
|
|
298
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
299
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
293
300
|
end
|
|
294
301
|
end
|
|
295
302
|
|
|
@@ -315,7 +322,7 @@ module OpenapiClient
|
|
|
315
322
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
316
323
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
317
324
|
end
|
|
318
|
-
|
|
325
|
+
|
|
319
326
|
hash[param] = _to_hash(value)
|
|
320
327
|
end
|
|
321
328
|
hash
|
|
@@ -340,4 +347,5 @@ module OpenapiClient
|
|
|
340
347
|
end
|
|
341
348
|
|
|
342
349
|
end
|
|
350
|
+
|
|
343
351
|
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.
|
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# ServiceAbstractCapabilityValue
|
|
18
18
|
class ServiceAbstractCapabilityValue
|
|
19
19
|
attr_accessor :abstract_capability
|
|
@@ -33,6 +33,11 @@ module OpenapiClient
|
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
36
41
|
# Attribute type mapping.
|
|
37
42
|
def self.openapi_types
|
|
38
43
|
{
|
|
@@ -52,13 +57,13 @@ module OpenapiClient
|
|
|
52
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
58
|
def initialize(attributes = {})
|
|
54
59
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceAbstractCapabilityValue` initialize method"
|
|
56
61
|
end
|
|
57
62
|
|
|
58
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
65
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceAbstractCapabilityValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
67
|
end
|
|
63
68
|
h[k.to_sym] = v
|
|
64
69
|
}
|
|
@@ -177,7 +182,9 @@ module OpenapiClient
|
|
|
177
182
|
end
|
|
178
183
|
end
|
|
179
184
|
else # model
|
|
180
|
-
|
|
185
|
+
# models (e.g. Pet) or oneOf
|
|
186
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
187
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
181
188
|
end
|
|
182
189
|
end
|
|
183
190
|
|
|
@@ -203,7 +210,7 @@ module OpenapiClient
|
|
|
203
210
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
204
211
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
205
212
|
end
|
|
206
|
-
|
|
213
|
+
|
|
207
214
|
hash[param] = _to_hash(value)
|
|
208
215
|
end
|
|
209
216
|
hash
|
|
@@ -228,4 +235,5 @@ module OpenapiClient
|
|
|
228
235
|
end
|
|
229
236
|
|
|
230
237
|
end
|
|
238
|
+
|
|
231
239
|
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.
|
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
|
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 ServiceCreate
|
|
19
19
|
attr_accessor :capability_values
|
|
@@ -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
|
{
|
|
@@ -101,13 +106,13 @@ module OpenapiClient
|
|
|
101
106
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
102
107
|
def initialize(attributes = {})
|
|
103
108
|
if (!attributes.is_a?(Hash))
|
|
104
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
109
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceCreate` initialize method"
|
|
105
110
|
end
|
|
106
111
|
|
|
107
112
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
108
113
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
109
114
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
110
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
115
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
111
116
|
end
|
|
112
117
|
h[k.to_sym] = v
|
|
113
118
|
}
|
|
@@ -277,7 +282,9 @@ module OpenapiClient
|
|
|
277
282
|
end
|
|
278
283
|
end
|
|
279
284
|
else # model
|
|
280
|
-
|
|
285
|
+
# models (e.g. Pet) or oneOf
|
|
286
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
287
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
281
288
|
end
|
|
282
289
|
end
|
|
283
290
|
|
|
@@ -303,7 +310,7 @@ module OpenapiClient
|
|
|
303
310
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
304
311
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
305
312
|
end
|
|
306
|
-
|
|
313
|
+
|
|
307
314
|
hash[param] = _to_hash(value)
|
|
308
315
|
end
|
|
309
316
|
hash
|
|
@@ -328,4 +335,5 @@ module OpenapiClient
|
|
|
328
335
|
end
|
|
329
336
|
|
|
330
337
|
end
|
|
338
|
+
|
|
331
339
|
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.
|
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
|
-
module
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
17
|
# ServiceResourceAttachment
|
|
18
18
|
class ServiceResourceAttachment
|
|
19
19
|
# compliant
|
|
@@ -36,6 +36,11 @@ module OpenapiClient
|
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
39
44
|
# Attribute type mapping.
|
|
40
45
|
def self.openapi_types
|
|
41
46
|
{
|
|
@@ -56,13 +61,13 @@ module OpenapiClient
|
|
|
56
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
62
|
def initialize(attributes = {})
|
|
58
63
|
if (!attributes.is_a?(Hash))
|
|
59
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceResourceAttachment` initialize method"
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
69
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceResourceAttachment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
66
71
|
end
|
|
67
72
|
h[k.to_sym] = v
|
|
68
73
|
}
|
|
@@ -188,7 +193,9 @@ module OpenapiClient
|
|
|
188
193
|
end
|
|
189
194
|
end
|
|
190
195
|
else # model
|
|
191
|
-
|
|
196
|
+
# models (e.g. Pet) or oneOf
|
|
197
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
198
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
192
199
|
end
|
|
193
200
|
end
|
|
194
201
|
|
|
@@ -214,7 +221,7 @@ module OpenapiClient
|
|
|
214
221
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
215
222
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
216
223
|
end
|
|
217
|
-
|
|
224
|
+
|
|
218
225
|
hash[param] = _to_hash(value)
|
|
219
226
|
end
|
|
220
227
|
hash
|
|
@@ -239,4 +246,5 @@ module OpenapiClient
|
|
|
239
246
|
end
|
|
240
247
|
|
|
241
248
|
end
|
|
249
|
+
|
|
242
250
|
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.
|
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
|
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 snapshot.
|
|
18
18
|
class Snapshot
|
|
19
19
|
# component_state
|
|
@@ -63,6 +63,11 @@ module OpenapiClient
|
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
# Returns all the JSON keys this model knows about
|
|
67
|
+
def self.acceptable_attributes
|
|
68
|
+
attribute_map.values
|
|
69
|
+
end
|
|
70
|
+
|
|
66
71
|
# Attribute type mapping.
|
|
67
72
|
def self.openapi_types
|
|
68
73
|
{
|
|
@@ -84,13 +89,13 @@ module OpenapiClient
|
|
|
84
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
85
90
|
def initialize(attributes = {})
|
|
86
91
|
if (!attributes.is_a?(Hash))
|
|
87
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
92
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::Snapshot` initialize method"
|
|
88
93
|
end
|
|
89
94
|
|
|
90
95
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
91
96
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
92
97
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
93
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
98
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::Snapshot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
94
99
|
end
|
|
95
100
|
h[k.to_sym] = v
|
|
96
101
|
}
|
|
@@ -236,7 +241,9 @@ module OpenapiClient
|
|
|
236
241
|
end
|
|
237
242
|
end
|
|
238
243
|
else # model
|
|
239
|
-
|
|
244
|
+
# models (e.g. Pet) or oneOf
|
|
245
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
246
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
240
247
|
end
|
|
241
248
|
end
|
|
242
249
|
|
|
@@ -262,7 +269,7 @@ module OpenapiClient
|
|
|
262
269
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
263
270
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
264
271
|
end
|
|
265
|
-
|
|
272
|
+
|
|
266
273
|
hash[param] = _to_hash(value)
|
|
267
274
|
end
|
|
268
275
|
hash
|
|
@@ -287,4 +294,5 @@ module OpenapiClient
|
|
|
287
294
|
end
|
|
288
295
|
|
|
289
296
|
end
|
|
297
|
+
|
|
290
298
|
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.
|
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
|
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
|