Class: VSphereAutomation::VCenter::VcenterVmHardwareVersion

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

Constant Summary collapse

N03 =
"VMX_03".freeze
N04 =
"VMX_04".freeze
N06 =
"VMX_06".freeze
N07 =
"VMX_07".freeze
N08 =
"VMX_08".freeze
N09 =
"VMX_09".freeze
N10 =
"VMX_10".freeze
N11 =
"VMX_11".freeze
N12 =
"VMX_12".freeze
N13 =
"VMX_13".freeze
N14 =
"VMX_14".freeze
N15 =
"VMX_15".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



31
32
33
34
35
# File 'lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_version.rb', line 31

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