Class: Anthropic::Models::Beta::Vaults::BetaManagedAgentsCredential

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

Overview

See Also:

  • Anthropic::Resources::Beta::Vaults::Credentials#create

Defined Under Namespace

Modules: Auth, Type

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:, archived_at:, auth:, created_at:, metadata:, type:, updated_at:, vault_id:, display_name: nil) ⇒ Object

A credential stored in a vault. Sensitive fields are never returned in responses.



# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 62

Instance Attribute Details

#archived_at ⇒ Time?

A timestamp in RFC 3339 format



19
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 19

required :archived_at, Time, nil?: true

#auth ⇒ Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthAuthResponse, ...

Authentication details for a credential.



25
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 25

required :auth, union: -> { Anthropic::Beta::Vaults::BetaManagedAgentsCredential::Auth }

#created_at ⇒ Time

A timestamp in RFC 3339 format



31
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 31

required :created_at, Time

#display_name ⇒ String?

Human-readable name for the credential.



60
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 60

optional :display_name, String, nil?: true

#id ⇒ String

Unique identifier for the credential.



13
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 13

required :id, String

#metadata ⇒ Hash{Symbol=>String}

Arbitrary key-value metadata attached to the credential.



37
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 37

required :metadata, Anthropic::Internal::Type::HashOf[String]

#type ⇒ Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsCredential::Type



42
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 42

required :type, enum: -> { Anthropic::Beta::Vaults::BetaManagedAgentsCredential::Type }

#updated_at ⇒ Time

A timestamp in RFC 3339 format



48
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 48

required :updated_at, Time

#vault_id ⇒ String

Identifier of the vault this credential belongs to.



54
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb', line 54

required :vault_id, String

Instance Method Details

#to_hash ⇒ {



49
# File 'sig/anthropic/models/beta/vaults/beta_managed_agents_credential.rbs', line 49

def to_hash: -> {