Class: VSphereAutomation::Appliance::ApplianceUpdateCommonInfoSeverity
- Inherits:
-
Object
- Object
- VSphereAutomation::Appliance::ApplianceUpdateCommonInfoSeverity
- Defined in:
- lib/vsphere-automation-appliance/models/appliance_update_common_info_severity.rb
Constant Summary collapse
- CRITICAL =
"CRITICAL".freeze
- IMPORTANT =
"IMPORTANT".freeze
- MODERATE =
"MODERATE".freeze
- LOW =
"LOW".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
23 24 25 26 27 |
# File 'lib/vsphere-automation-appliance/models/appliance_update_common_info_severity.rb', line 23 def build_from_hash(value) constantValues = ApplianceUpdateCommonInfoSeverity.constants.select { |c| ApplianceUpdateCommonInfoSeverity::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ApplianceUpdateCommonInfoSeverity" if constantValues.empty? value end |