Class: NutanixClustermgmt::ClustermgmtV40ConfigClusterFunctionRef

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

Constant Summary collapse

AOS =
"AOS".freeze
PRISM_CENTRAL =
"PRISM_CENTRAL".freeze
CLOUD_DATA_GATEWAY =
"CLOUD_DATA_GATEWAY".freeze
AFS =
"AFS".freeze
ONE_NODE =
"ONE_NODE".freeze
TWO_NODE =
"TWO_NODE".freeze
ANALYTICS_PLATFORM =
"ANALYTICS_PLATFORM".freeze
UNKNOWN =
"$UNKNOWN".freeze
REDACTED =
"$REDACTED".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



28
29
30
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_function_ref.rb', line 28

def self.all_vars
  @all_vars ||= [AOS, PRISM_CENTRAL, CLOUD_DATA_GATEWAY, AFS, ONE_NODE, TWO_NODE, ANALYTICS_PLATFORM, 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



35
36
37
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_function_ref.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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



42
43
44
45
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_function_ref.rb', line 42

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