Module: Cadenya::Models::Agent::State

Extended by:
Internal::Type::Enum
Defined in:
lib/cadenya/models/agent.rb,
sig/cadenya/models/agent.rbs

Overview

The current lifecycle state of the agent. Output only. Agents are created in STATE_DRAFT; use the :publish, :unpublish, :archive, and :unarchive actions to transition between states.

See Also:

  • Cadenya::Models::Agent#state

Constant Summary collapse

STATE_UNSPECIFIED =

Returns:

  • (:STATE_UNSPECIFIED)
:STATE_UNSPECIFIED
STATE_DRAFT =

Returns:

  • (:STATE_DRAFT)
:STATE_DRAFT
STATE_PUBLISHED =

Returns:

  • (:STATE_PUBLISHED)
:STATE_PUBLISHED
STATE_ARCHIVED =

Returns:

  • (:STATE_ARCHIVED)
:STATE_ARCHIVED

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/cadenya/models/agent.rb', line 63

Instance Method Details

#self?.values::Array[Cadenya::Models::Agent::state]

Returns:

  • (::Array[Cadenya::Models::Agent::state])


47
# File 'sig/cadenya/models/agent.rbs', line 47

def self?.values: -> ::Array[Cadenya::Models::Agent::state]