Class: VSphereAutomation::Appliance::ApplianceUpdateState

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

Constant Summary collapse

UP_TO_DATE =
"UP_TO_DATE".freeze
UPDATES_PENDING =
"UPDATES_PENDING".freeze
STAGE_IN_PROGRESS =
"STAGE_IN_PROGRESS".freeze
INSTALL_IN_PROGRESS =
"INSTALL_IN_PROGRESS".freeze
INSTALL_FAILED =
"INSTALL_FAILED".freeze
ROLLBACK_IN_PROGRESS =
"ROLLBACK_IN_PROGRESS".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-appliance/models/appliance_update_state.rb', line 25

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