Class: NutanixClustermgmt::ClustermgmtV40ConfigComponentType

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

Constant Summary collapse

EXTENT_GROUP_REPLICAS =
"EXTENT_GROUP_REPLICAS".freeze
OPLOG_EPISODES =
"OPLOG_EPISODES".freeze
CASSANDRA_RING =
"CASSANDRA_RING".freeze
ZOOKEPER_INSTANCES =
"ZOOKEPER_INSTANCES".freeze
FREE_SPACE =
"FREE_SPACE".freeze
STATIC_CONFIG =
"STATIC_CONFIG".freeze
ERASURE_CODE_STRIP_SIZE =
"ERASURE_CODE_STRIP_SIZE".freeze
STARGATE_HEALTH =
"STARGATE_HEALTH".freeze
UNKNOWN =
"$UNKNOWN".freeze
REDACTED =
"$REDACTED".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



29
30
31
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_component_type.rb', line 29

def self.all_vars
  @all_vars ||= [EXTENT_GROUP_REPLICAS, OPLOG_EPISODES, CASSANDRA_RING, ZOOKEPER_INSTANCES, FREE_SPACE, STATIC_CONFIG, ERASURE_CODE_STRIP_SIZE, STARGATE_HEALTH, 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



36
37
38
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_component_type.rb', line 36

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



43
44
45
46
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_component_type.rb', line 43

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