Class: VSphereAutomation::VCenter::VcenterVmHardwareFloppyBackingType
- Inherits:
-
Object
- Object
- VSphereAutomation::VCenter::VcenterVmHardwareFloppyBackingType
- Defined in:
- lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_floppy_backing_type.rb
Constant Summary collapse
- IMAGE_FILE =
"IMAGE_FILE".freeze
- HOST_DEVICE =
"HOST_DEVICE".freeze
- CLIENT_DEVICE =
"CLIENT_DEVICE".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
22 23 24 25 26 |
# File 'lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_floppy_backing_type.rb', line 22 def build_from_hash(value) constantValues = VcenterVmHardwareFloppyBackingType.constants.select { |c| VcenterVmHardwareFloppyBackingType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #VcenterVmHardwareFloppyBackingType" if constantValues.empty? value end |