Class: VSphereAutomation::VCenter::VcenterVmGuestOSFamily
- Inherits:
-
Object
- Object
- VSphereAutomation::VCenter::VcenterVmGuestOSFamily
- Defined in:
- lib/vsphere-automation-vcenter/models/vcenter_vm_guest_os_family.rb
Constant Summary collapse
- WINDOWS =
"WINDOWS".freeze
- LINUX =
"LINUX".freeze
- NETWARE =
"NETWARE".freeze
- SOLARIS =
"SOLARIS".freeze
- DARWIN =
"DARWIN".freeze
- OTHER =
"OTHER".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_guest_os_family.rb', line 25 def build_from_hash(value) constantValues = VcenterVmGuestOSFamily.constants.select { |c| VcenterVmGuestOSFamily::const_get(c) == value } raise "Invalid ENUM value #{value} for class #VcenterVmGuestOSFamily" if constantValues.empty? value end |