Class: VSphereAutomation::VAPI::VapiMetadataCliCommandGenericType

Inherits:
Object
  • Object
show all
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

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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