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

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

Overview

Defined Under Namespace

Modules: Auth, Type

Instance Attribute Summary collapse

Class Method 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.

Parameters:



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

Instance Attribute Details

#archived_atTime?

A timestamp in RFC 3339 format

Returns:

  • (Time, nil)


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

required :archived_at, Time, nil?: true

#authAnthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthAuthResponse, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerAuthResponse

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_atTime

A timestamp in RFC 3339 format

Returns:

  • (Time)


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

required :created_at, Time

#display_nameString?

Human-readable name for the credential.

Returns:

  • (String, nil)


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

optional :display_name, String, nil?: true

#idString

Unique identifier for the credential.

Returns:

  • (String)


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

required :id, String

#metadataHash{Symbol=>String}

Arbitrary key-value metadata attached to the credential.

Returns:

  • (Hash{Symbol=>String})


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

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

#typeSymbol, 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_atTime

A timestamp in RFC 3339 format

Returns:

  • (Time)


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

required :updated_at, Time

#vault_idString

Identifier of the vault this credential belongs to.

Returns:

  • (String)


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

required :vault_id, String