Class: Anthropic::Models::Beta::Organization::BetaExternalStorage

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

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::ExternalStorage#create

Defined Under Namespace

Modules: ProviderConfig, Status

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(id:, created_at:, display_name:, provider_config:, setup_template_version:, status:, updated_at:, user_profile_id:, type: :external_storage) ⇒ BetaExternalStorage

A storage bucket in the organization's own cloud account. Anthropic writes inference data to it from each Workspace it is attached to.

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

Parameters:



# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 64

Instance Attribute Details

#created_at ⇒ Time

Parameters:

  • value (Time)

Returns:

  • (Time)


21
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 21

required :created_at, Time

#display_name ⇒ String?

Human-friendly display name. Null if none was set.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


27
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 27

required :display_name, String, nil?: true

#id ⇒ String

The External Storage ID, which starts with estrg_. Through Claude Platform on AWS, storage whose provider_config.type is aws has its bucket ARN as its ID instead: arn:<partition>:s3:::<bucket_name>, where <partition> is the partition of the bucket's region.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 16

required :id, String

#provider_config ⇒ Anthropic::Models::Beta::Organization::BetaAWSExternalStorageConfig, Anthropic::Models::Beta::Organization::BetaGCPExternalStorageConfig

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaExternalStorage::provider_config)

Returns:



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

required :provider_config,
union: -> { Anthropic::Beta::Organization::BetaExternalStorage::ProviderConfig }

#setup_template_version ⇒ String?

The version of Anthropic's setup template whose IAM role names this storage was found to use at activation. Null if no version was recorded, as for storage not yet activated or not on S3.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


41
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 41

required :setup_template_version, String, nil?: true

#status ⇒ Anthropic::Models::Beta::Organization::BetaPendingConfigurationExternalStorageStatus, ...



46
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 46

required :status, union: -> { Anthropic::Beta::Organization::BetaExternalStorage::Status }

#type ⇒ Symbol, :external_storage

Parameters:

  • value (:external_storage)

Returns:

  • (Symbol, :external_storage)


51
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 51

required :type, const: :external_storage

#updated_at ⇒ Time

Parameters:

  • value (Time)

Returns:

  • (Time)


56
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 56

required :updated_at, Time

#user_profile_id ⇒ String?

The user profile the storage is bound to, or null.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


62
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 62

required :user_profile_id, String, nil?: true

Instance Method Details

#to_hash ⇒ { id: String, created_at: Time, display_name: String?, provider_config: Anthropic::Models::Beta::Organization::BetaExternalStorage::provider_config, setup_template_version: String?, status: Anthropic::Models::Beta::Organization::BetaExternalStorage::status, type: :external_storage, updated_at: Time, user_profile_id: String? }

Returns:

  • ({ id: String, created_at: Time, display_name: String?, provider_config: Anthropic::Models::Beta::Organization::BetaExternalStorage::provider_config, setup_template_version: String?, status: Anthropic::Models::Beta::Organization::BetaExternalStorage::status, type: :external_storage, updated_at: Time, user_profile_id: String? })


49
50
51
52
53
54
55
56
57
58
59
# File 'sig/anthropic/models/beta/organization/beta_external_storage.rbs', line 49

def to_hash: -> {
  id: String,
  created_at: Time,
  display_name: String?,
  provider_config: Anthropic::Models::Beta::Organization::BetaExternalStorage::provider_config,
  setup_template_version: String?,
  status: Anthropic::Models::Beta::Organization::BetaExternalStorage::status,
  type: :external_storage,
  updated_at: Time,
  user_profile_id: String?
}