class VSphereAutomation::VCenter::VcenterVmHardwareSerialBackingType
Constants
- FILE
- HOST_DEVICE
- NETWORK_CLIENT
- NETWORK_SERVER
- PIPE_CLIENT
- PIPE_SERVER
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_serial_backing_type.rb, line 25 def build_from_hash(value) constantValues = VcenterVmHardwareSerialBackingType.constants.select { |c| VcenterVmHardwareSerialBackingType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #VcenterVmHardwareSerialBackingType" if constantValues.empty? value end