Class: VSphereAutomation::VCenter::VcenterVmGuestOSFamily

Inherits:
Object
  • Object
show all
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

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



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