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