Class: VSphereAutomation::VCenter::VcenterVmHardwareUpgradePolicy
- Inherits:
-
Object
- Object
- VSphereAutomation::VCenter::VcenterVmHardwareUpgradePolicy
- Defined in:
- lib/vsphere-automation-vcenter/models/vcenter_vm_hardware_upgrade_policy.rb
Constant Summary collapse
- NEVER =
"NEVER".freeze
- AFTER_CLEAN_SHUTDOWN =
"AFTER_CLEAN_SHUTDOWN".freeze
- ALWAYS =
"ALWAYS".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_upgrade_policy.rb', line 22 def build_from_hash(value) constantValues = VcenterVmHardwareUpgradePolicy.constants.select { |c| VcenterVmHardwareUpgradePolicy::const_get(c) == value } raise "Invalid ENUM value #{value} for class #VcenterVmHardwareUpgradePolicy" if constantValues.empty? value end |