Class: VSphereAutomation::VAPI::VapiMetadataCliCommandGenericType
- Inherits:
-
Object
- Object
- VSphereAutomation::VAPI::VapiMetadataCliCommandGenericType
- Defined in:
- lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_generic_type.rb
Constant Summary collapse
- NONE =
"NONE".freeze
- OPTIONAL =
"OPTIONAL".freeze
- LIST =
"LIST".freeze
- OPTIONAL_LIST =
"OPTIONAL_LIST".freeze
- LIST_OPTIONAL =
"LIST_OPTIONAL".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
24 25 26 27 28 |
# File 'lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_generic_type.rb', line 24 def build_from_hash(value) constantValues = VapiMetadataCliCommandGenericType.constants.select { |c| VapiMetadataCliCommandGenericType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #VapiMetadataCliCommandGenericType" if constantValues.empty? value end |