Class: NutanixClustermgmt::ClustermgmtV40ConfigRsyslogModuleName

Inherits:
Object
  • Object
show all
Defined in:
lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_name.rb

Constant Summary collapse

CASSANDRA =
"CASSANDRA".freeze
CEREBRO =
"CEREBRO".freeze
CURATOR =
"CURATOR".freeze
GENESIS =
"GENESIS".freeze
PRISM =
"PRISM".freeze
STARGATE =
"STARGATE".freeze
SYSLOG_MODULE =
"SYSLOG_MODULE".freeze
ZOOKEEPER =
"ZOOKEEPER".freeze
UHARA =
"UHARA".freeze
LAZAN =
"LAZAN".freeze
API_AUDIT =
"API_AUDIT".freeze
AUDIT =
"AUDIT".freeze
CALM =
"CALM".freeze
EPSILON =
"EPSILON".freeze
ACROPOLIS =
"ACROPOLIS".freeze
MINERVA_CVM =
"MINERVA_CVM".freeze
FLOW =
"FLOW".freeze
FLOW_SERVICE_LOGS =
"FLOW_SERVICE_LOGS".freeze
LCM =
"LCM".freeze
APLOS =
"APLOS".freeze
UNKNOWN =
"$UNKNOWN".freeze
REDACTED =
"$REDACTED".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



41
42
43
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_name.rb', line 41

def self.all_vars
  @all_vars ||= [CASSANDRA, CEREBRO, CURATOR, GENESIS, PRISM, STARGATE, SYSLOG_MODULE, ZOOKEEPER, UHARA, LAZAN, API_AUDIT, AUDIT, CALM, EPSILON, ACROPOLIS, MINERVA_CVM, FLOW, FLOW_SERVICE_LOGS, LCM, APLOS, UNKNOWN, REDACTED].freeze
end

.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



48
49
50
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_name.rb', line 48

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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



55
56
57
58
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_name.rb', line 55

def build_from_hash(value)
  return value if ClustermgmtV40ConfigRsyslogModuleName.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #ClustermgmtV40ConfigRsyslogModuleName"
end