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
|
# TODO add description
|
18
18
|
class AddressCreate
|
19
19
|
# chap_name
|
@@ -75,6 +75,11 @@ module OpenapiClient
|
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
78
|
+
# Returns all the JSON keys this model knows about
|
79
|
+
def self.acceptable_attributes
|
80
|
+
attribute_map.values
|
81
|
+
end
|
82
|
+
|
78
83
|
# Attribute type mapping.
|
79
84
|
def self.openapi_types
|
80
85
|
{
|
@@ -99,13 +104,13 @@ module OpenapiClient
|
|
99
104
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
105
|
def initialize(attributes = {})
|
101
106
|
if (!attributes.is_a?(Hash))
|
102
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::AddressCreate` initialize method"
|
103
108
|
end
|
104
109
|
|
105
110
|
# check to see if the attribute exists and convert string to symbol for hash key
|
106
111
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
107
112
|
if (!self.class.attribute_map.key?(k.to_sym))
|
108
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::AddressCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
109
114
|
end
|
110
115
|
h[k.to_sym] = v
|
111
116
|
}
|
@@ -280,7 +285,9 @@ module OpenapiClient
|
|
280
285
|
end
|
281
286
|
end
|
282
287
|
else # model
|
283
|
-
|
288
|
+
# models (e.g. Pet) or oneOf
|
289
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
290
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
284
291
|
end
|
285
292
|
end
|
286
293
|
|
@@ -306,7 +313,7 @@ module OpenapiClient
|
|
306
313
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
307
314
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
308
315
|
end
|
309
|
-
|
316
|
+
|
310
317
|
hash[param] = _to_hash(value)
|
311
318
|
end
|
312
319
|
hash
|
@@ -331,4 +338,5 @@ module OpenapiClient
|
|
331
338
|
end
|
332
339
|
|
333
340
|
end
|
341
|
+
|
334
342
|
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 AuthResponse
|
19
19
|
# token
|
@@ -26,6 +26,11 @@ module OpenapiClient
|
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
29
34
|
# Attribute type mapping.
|
30
35
|
def self.openapi_types
|
31
36
|
{
|
@@ -43,13 +48,13 @@ module OpenapiClient
|
|
43
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
44
49
|
def initialize(attributes = {})
|
45
50
|
if (!attributes.is_a?(Hash))
|
46
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::AuthResponse` initialize method"
|
47
52
|
end
|
48
53
|
|
49
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
50
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
51
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
52
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::AuthResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
53
58
|
end
|
54
59
|
h[k.to_sym] = v
|
55
60
|
}
|
@@ -158,7 +163,9 @@ module OpenapiClient
|
|
158
163
|
end
|
159
164
|
end
|
160
165
|
else # model
|
161
|
-
|
166
|
+
# models (e.g. Pet) or oneOf
|
167
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
168
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
162
169
|
end
|
163
170
|
end
|
164
171
|
|
@@ -184,7 +191,7 @@ module OpenapiClient
|
|
184
191
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
185
192
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
186
193
|
end
|
187
|
-
|
194
|
+
|
188
195
|
hash[param] = _to_hash(value)
|
189
196
|
end
|
190
197
|
hash
|
@@ -209,4 +216,5 @@ module OpenapiClient
|
|
209
216
|
end
|
210
217
|
|
211
218
|
end
|
219
|
+
|
212
220
|
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
|
# Authentication
|
18
18
|
class Authentication
|
19
19
|
# password
|
@@ -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::Authentication` 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::Authentication`. 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
|
# Use this for AutoSDE project information.
|
18
18
|
class AutoSDEProject
|
19
19
|
# The number of instance cores that are allowed per project. doc-todo: what is a CORE?
|
@@ -102,6 +102,11 @@ module OpenapiClient
|
|
102
102
|
}
|
103
103
|
end
|
104
104
|
|
105
|
+
# Returns all the JSON keys this model knows about
|
106
|
+
def self.acceptable_attributes
|
107
|
+
attribute_map.values
|
108
|
+
end
|
109
|
+
|
105
110
|
# Attribute type mapping.
|
106
111
|
def self.openapi_types
|
107
112
|
{
|
@@ -138,13 +143,13 @@ module OpenapiClient
|
|
138
143
|
# @param [Hash] attributes Model attributes in the form of hash
|
139
144
|
def initialize(attributes = {})
|
140
145
|
if (!attributes.is_a?(Hash))
|
141
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
146
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::AutoSDEProject` initialize method"
|
142
147
|
end
|
143
148
|
|
144
149
|
# check to see if the attribute exists and convert string to symbol for hash key
|
145
150
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
146
151
|
if (!self.class.attribute_map.key?(k.to_sym))
|
147
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
152
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::AutoSDEProject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
148
153
|
end
|
149
154
|
h[k.to_sym] = v
|
150
155
|
}
|
@@ -348,7 +353,9 @@ module OpenapiClient
|
|
348
353
|
end
|
349
354
|
end
|
350
355
|
else # model
|
351
|
-
|
356
|
+
# models (e.g. Pet) or oneOf
|
357
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
358
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
352
359
|
end
|
353
360
|
end
|
354
361
|
|
@@ -374,7 +381,7 @@ module OpenapiClient
|
|
374
381
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
375
382
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
376
383
|
end
|
377
|
-
|
384
|
+
|
378
385
|
hash[param] = _to_hash(value)
|
379
386
|
end
|
380
387
|
hash
|
@@ -399,4 +406,5 @@ module OpenapiClient
|
|
399
406
|
end
|
400
407
|
|
401
408
|
end
|
409
|
+
|
402
410
|
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
|
# doc-todo: what types of roles is this defining?
|
18
18
|
class AutoSDERole
|
19
19
|
# name
|
@@ -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::AutoSDERole` 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::AutoSDERole`. 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
|
# doc-todo: what is capabilityTranslationProps used for / what is it?.
|
18
18
|
class CapabilityTranslation
|
19
19
|
attr_accessor :abstract_capability
|
@@ -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
|
{
|
@@ -86,13 +91,13 @@ module OpenapiClient
|
|
86
91
|
# @param [Hash] attributes Model attributes in the form of hash
|
87
92
|
def initialize(attributes = {})
|
88
93
|
if (!attributes.is_a?(Hash))
|
89
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::CapabilityTranslation` initialize method"
|
90
95
|
end
|
91
96
|
|
92
97
|
# check to see if the attribute exists and convert string to symbol for hash key
|
93
98
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
99
|
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
100
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::CapabilityTranslation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
101
|
end
|
97
102
|
h[k.to_sym] = v
|
98
103
|
}
|
@@ -278,7 +283,9 @@ module OpenapiClient
|
|
278
283
|
end
|
279
284
|
end
|
280
285
|
else # model
|
281
|
-
|
286
|
+
# models (e.g. Pet) or oneOf
|
287
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
288
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
282
289
|
end
|
283
290
|
end
|
284
291
|
|
@@ -304,7 +311,7 @@ module OpenapiClient
|
|
304
311
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
305
312
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
306
313
|
end
|
307
|
-
|
314
|
+
|
308
315
|
hash[param] = _to_hash(value)
|
309
316
|
end
|
310
317
|
hash
|
@@ -329,4 +336,5 @@ module OpenapiClient
|
|
329
336
|
end
|
330
337
|
|
331
338
|
end
|
339
|
+
|
332
340
|
end
|
@@ -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 CapabilityTranslationCreate
|
19
19
|
# abstract_capability_name
|
@@ -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
|
{
|
@@ -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::CapabilityTranslationCreate` 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::CapabilityTranslationCreate`. 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
|
}
|
@@ -260,7 +265,9 @@ module OpenapiClient
|
|
260
265
|
end
|
261
266
|
end
|
262
267
|
else # model
|
263
|
-
|
268
|
+
# models (e.g. Pet) or oneOf
|
269
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
270
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
264
271
|
end
|
265
272
|
end
|
266
273
|
|
@@ -286,7 +293,7 @@ module OpenapiClient
|
|
286
293
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
287
294
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
288
295
|
end
|
289
|
-
|
296
|
+
|
290
297
|
hash[param] = _to_hash(value)
|
291
298
|
end
|
292
299
|
hash
|
@@ -311,4 +318,5 @@ module OpenapiClient
|
|
311
318
|
end
|
312
319
|
|
313
320
|
end
|
321
|
+
|
314
322
|
end
|