Class: VSphereAutomation::VCenter::VcenterVmHardwareDiskBackingType

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

Constant Summary collapse

VMDK_FILE =
"VMDK_FILE".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



20
21
22
23
24
# File 'lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_disk_backing_type.rb', line 20

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