Class: NutanixClustermgmt::ClustermgmtV40ConfigConfigType
- Inherits:
-
Object
- Object
- NutanixClustermgmt::ClustermgmtV40ConfigConfigType
- Defined in:
- lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_type.rb
Constant Summary collapse
- NTP_SERVER_CONFIG =
"NTP_SERVER_CONFIG".freeze
- NAME_SERVER_CONFIG =
"NAME_SERVER_CONFIG".freeze
- SMTP_SERVER_CONFIG =
"SMTP_SERVER_CONFIG".freeze
- NFS_SUBNET_WHITELIST_CONFIG =
"NFS_SUBNET_WHITELIST_CONFIG".freeze
- SNMP_SERVER_CONFIG =
"SNMP_SERVER_CONFIG".freeze
- RSYSLOG_SERVER_CONFIG =
"RSYSLOG_SERVER_CONFIG".freeze
- PULSE_CONFIG =
"PULSE_CONFIG".freeze
- UNKNOWN =
"$UNKNOWN".freeze
- REDACTED =
"$REDACTED".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
28 29 30 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_type.rb', line 28 def self.all_vars @all_vars ||= [NTP_SERVER_CONFIG, NAME_SERVER_CONFIG, SMTP_SERVER_CONFIG, NFS_SUBNET_WHITELIST_CONFIG, SNMP_SERVER_CONFIG, RSYSLOG_SERVER_CONFIG, PULSE_CONFIG, UNKNOWN, REDACTED].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
35 36 37 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_type.rb', line 35 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
42 43 44 45 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_type.rb', line 42 def build_from_hash(value) return value if ClustermgmtV40ConfigConfigType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ClustermgmtV40ConfigConfigType" end |