Class: VSphereAutomation::VAPI::VapiMetadataMetamodelTypeBuiltinType

Inherits:
Object
  • Object
show all
Defined in:
lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type_builtin_type.rb

Constant Summary collapse

VOID =
"VOID".freeze
BOOLEAN =
"BOOLEAN".freeze
LONG =
"LONG".freeze
DOUBLE =
"DOUBLE".freeze
STRING =
"STRING".freeze
BINARY =
"BINARY".freeze
SECRET =
"SECRET".freeze
DATE_TIME =
"DATE_TIME".freeze
ID =
"ID".freeze
URI =
"URI".freeze
ANY_ERROR =
"ANY_ERROR".freeze
DYNAMIC_STRUCTURE =
"DYNAMIC_STRUCTURE".freeze
OPAQUE =
"OPAQUE".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



32
33
34
35
36
# File 'lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type_builtin_type.rb', line 32

def build_from_hash(value)
  constantValues = VapiMetadataMetamodelTypeBuiltinType.constants.select { |c| VapiMetadataMetamodelTypeBuiltinType::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #VapiMetadataMetamodelTypeBuiltinType" if constantValues.empty?
  value
end