Class: Anthropic::Models::Beta::Organization::BetaActiveExternalStorageStatus

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb,
sig/anthropic/models/beta/organization/beta_active_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:, type: :active) ⇒ BetaActiveExternalStorageStatus

At least one Workspace has the storage attached.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaActiveExternalStorageStatus 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.

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


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

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_active_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_active_external_storage_status.rb', line 19

required :last_checked_at, Time

#type ⇒ Symbol, :active

Parameters:

  • value (:active)

Returns:

  • (Symbol, :active)


24
# File 'lib/anthropic/models/beta/organization/beta_active_external_storage_status.rb', line 24

required :type, const: :active

Instance Method Details

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

Returns:

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


21
22
23
24
25
# File 'sig/anthropic/models/beta/organization/beta_active_external_storage_status.rbs', line 21

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