Class: Anthropic::Models::Beta::Organization::BetaDrainingExternalStorageStatus

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb,
sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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(healthy:, last_checked_at:, removal_started:, type: :draining) ⇒ BetaDrainingExternalStorageStatus

No Workspace has the storage attached. A Workspace can attach it again, unless removal_started is true.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaDrainingExternalStorageStatus for more details.

Parameters:

  • healthy (Boolean) —

    Whether the bucket passed its latest recorded check. It can stay true after th

  • last_checked_at (Time) —

    When the bucket's latest recorded check ran, in RFC 3339.

  • removal_started (Boolean) —

    True once a delete has started removing this storage, which can't be undone. It

  • type (Symbol, :draining) (defaults to: :draining)
  • healthy: (Boolean)
  • last_checked_at: (Time)
  • removal_started: (Boolean)
  • type: (:draining) (defaults to: :draining)


# File 'lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb', line 33

Instance Attribute Details

#healthy ⇒ Boolean

Whether the bucket passed its latest recorded check. It can stay true after the bucket stops working, so don't use it for monitoring.

Parameters:

Returns:



13
# File 'lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb', line 13

required :healthy, Anthropic::Internal::Type::Boolean

#last_checked_at ⇒ Time

When the bucket's latest recorded check ran, in RFC 3339.

Parameters:

  • value (Time)

Returns:

  • (Time)


19
# File 'lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb', line 19

required :last_checked_at, Time

#removal_started ⇒ Boolean

True once a delete has started removing this storage, which can't be undone. It then can't be attached, and another delete finishes the removal.

Parameters:

Returns:



26
# File 'lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb', line 26

required :removal_started, Anthropic::Internal::Type::Boolean

#type ⇒ Symbol, :draining

Parameters:

  • value (:draining)

Returns:

  • (Symbol, :draining)


31
# File 'lib/anthropic/models/beta/organization/beta_draining_external_storage_status.rb', line 31

required :type, const: :draining

Instance Method Details

#to_hash ⇒ { healthy: bool, last_checked_at: Time, removal_started: bool, type: :draining }

Returns:

  • ({ healthy: bool, last_checked_at: Time, removal_started: bool, type: :draining })


29
30
31
32
33
34
# File 'sig/anthropic/models/beta/organization/beta_draining_external_storage_status.rbs', line 29

def to_hash: -> {
  healthy: bool,
  last_checked_at: Time,
  removal_started: bool,
  type: :draining
}