Class: VSphereAutomation::VCenter::VcenterVmHardwareSerialBackingType
- Inherits:
-
Object
- Object
- VSphereAutomation::VCenter::VcenterVmHardwareSerialBackingType
- Defined in:
- lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_serial_backing_type.rb
Constant Summary collapse
- FILE =
"FILE".freeze
- HOST_DEVICE =
"HOST_DEVICE".freeze
- PIPE_SERVER =
"PIPE_SERVER".freeze
- PIPE_CLIENT =
"PIPE_CLIENT".freeze
- NETWORK_SERVER =
"NETWORK_SERVER".freeze
- NETWORK_CLIENT =
"NETWORK_CLIENT".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_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 |