Class: Anthropic::Models::Beta::Environments::BetaWorkLeaseState
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Environments::BetaWorkLeaseState
- Defined in:
- lib/anthropic/models/beta/environments/beta_work_lease_state.rb,
sig/anthropic/models/beta/environments/beta_work_lease_state.rbs
Defined Under Namespace
Modules: State
Instance Attribute Summary collapse
-
#last_heartbeat ⇒ String?
RFC 3339 timestamp of the stored heartbeat, or null if there has been none.
-
#lease_extended ⇒ Boolean
Always false: a refused heartbeat does not extend the lease.
-
#state ⇒ Symbol, Anthropic::Models::Beta::Environments::BetaWorkLeaseState::State
Current state of the work item.
-
#ttl_seconds ⇒ Integer
TTL of the lease.
Instance Method Summary collapse
-
#initialize(last_heartbeat:, lease_extended:, state:, ttl_seconds:) ⇒ BetaWorkLeaseState
constructor
A work item's lease as the server holds it.
- #to_hash ⇒ { last_heartbeat: String?, lease_extended: bool, state: Anthropic::Models::Beta::Environments::BetaWorkLeaseState::state, ttl_seconds: Integer }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(last_heartbeat:, lease_extended:, state:, ttl_seconds:) ⇒ BetaWorkLeaseState
A work item's lease as the server holds it.
|
|
# File 'lib/anthropic/models/beta/environments/beta_work_lease_state.rb', line 32
|
Instance Attribute Details
#last_heartbeat ⇒ String?
RFC 3339 timestamp of the stored heartbeat, or null if there has been none
12 |
# File 'lib/anthropic/models/beta/environments/beta_work_lease_state.rb', line 12 required :last_heartbeat, String, nil?: true |
#lease_extended ⇒ Boolean
Always false: a refused heartbeat does not extend the lease
18 |
# File 'lib/anthropic/models/beta/environments/beta_work_lease_state.rb', line 18 required :lease_extended, Anthropic::Internal::Type::Boolean |
#state ⇒ Symbol, Anthropic::Models::Beta::Environments::BetaWorkLeaseState::State
Current state of the work item
24 |
# File 'lib/anthropic/models/beta/environments/beta_work_lease_state.rb', line 24 required :state, enum: -> { Anthropic::Beta::Environments::BetaWorkLeaseState::State } |
#ttl_seconds ⇒ Integer
TTL of the lease
30 |
# File 'lib/anthropic/models/beta/environments/beta_work_lease_state.rb', line 30 required :ttl_seconds, Integer |
Instance Method Details
#to_hash ⇒ { last_heartbeat: String?, lease_extended: bool, state: Anthropic::Models::Beta::Environments::BetaWorkLeaseState::state, ttl_seconds: Integer }
29 30 31 32 33 34 |
# File 'sig/anthropic/models/beta/environments/beta_work_lease_state.rbs', line 29
def to_hash: -> {
last_heartbeat: String?,
lease_extended: bool,
state: Anthropic::Models::Beta::Environments::BetaWorkLeaseState::state,
ttl_seconds: Integer
}
|