Class: VSphereAutomation::VAPI::VapiMetadataCliCommandFormatterType
- Inherits:
-
Object
- Object
- VSphereAutomation::VAPI::VapiMetadataCliCommandFormatterType
- Defined in:
- lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_formatter_type.rb
Constant Summary collapse
- SIMPLE =
"SIMPLE".freeze
- TABLE =
"TABLE".freeze
- JSON =
"JSON".freeze
- XML =
"XML".freeze
- CSV =
"CSV".freeze
- HTML =
"HTML".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
25 26 27 28 29 |
# File 'lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_formatter_type.rb', line 25 def build_from_hash(value) constantValues = VapiMetadataCliCommandFormatterType.constants.select { |c| VapiMetadataCliCommandFormatterType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #VapiMetadataCliCommandFormatterType" if constantValues.empty? value end |