Class: VSphereAutomation::VCenter::VcenterVmHardwareEthernetEmulationType

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

Constant Summary collapse

E1000 =
"E1000".freeze
E1000_E =
"E1000E".freeze
PCNET32 =
"PCNET32".freeze
VMXNET =
"VMXNET".freeze
VMXNET2 =
"VMXNET2".freeze
VMXNET3 =
"VMXNET3".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



25
26
27
28
29
# File 'lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_ethernet_emulation_type.rb', line 25

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