Module: CloudReactorAPIClient::ExecutionMethodCapability
- Defined in:
- lib/cloudreactor_api_client/models/execution_method_capability.rb
Class Method Summary collapse
-
.build(data) ⇒ Object
Builds the object.
-
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3).
-
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3).
-
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3).
Class Method Details
.build(data) ⇒ Object
Builds the object
43 44 45 46 47 48 49 50 51 |
# File 'lib/cloudreactor_api_client/models/execution_method_capability.rb', line 43 def build(data) discriminator_value = data[openapi_discriminator_name] return nil unless discriminator_value klass = openapi_discriminator_mapping[discriminator_value.to_sym] return nil unless klass CloudReactorAPIClient.const_get(klass).build_from_hash(data) end |
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
33 34 35 36 37 38 |
# File 'lib/cloudreactor_api_client/models/execution_method_capability.rb', line 33 def openapi_discriminator_mapping { :'AWS ECS' => :'AwsEcsExecutionMethodCapability', :'Unknown' => :'UnknownExecutionMethodCapability' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
28 29 30 |
# File 'lib/cloudreactor_api_client/models/execution_method_capability.rb', line 28 def openapi_discriminator_name :'type' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
20 21 22 23 24 25 |
# File 'lib/cloudreactor_api_client/models/execution_method_capability.rb', line 20 def openapi_one_of [ :'AwsEcsExecutionMethodCapability', :'UnknownExecutionMethodCapability' ] end |