Class: VSphereAutomation::VCenter::VcenterVmHardwareEthernetEmulationType
- Inherits:
-
Object
- Object
- VSphereAutomation::VCenter::VcenterVmHardwareEthernetEmulationType
- 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
-
#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-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 |