Class: Anthropic::Models::Beta::Vaults::CredentialUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/vaults/credential_update_params.rb,
sig/anthropic/models/beta/vaults/credential_update_params.rbs

Overview

See Also:

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

Defined Under Namespace

Modules: Auth

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(vault_id:, credential_id:, auth: nil, display_name: nil, metadata: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ CredentialUpdateParams

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

Parameters:

  • vault_id (String) —

    Identifier of the vault containing the credential.

  • credential_id (String) —

    Unique identifier of the credential to update.

  • auth (Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams) (defaults to: nil) —

    New authentication settings for the credential. The type must match the creden

  • display_name (String, nil) (defaults to: nil) —

    Updated human-readable name for the credential. 1-255 characters.

  • metadata (Hash{Symbol=>String, nil}, nil) (defaults to: nil) —

    Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omi

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    This endpoint is in beta: requests must send managed-agents-2026-04-01 in this

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • vault_id: (String)
  • credential_id: (String)
  • auth: (Anthropic::Models::Beta::Vaults::CredentialUpdateParams::auth) (defaults to: nil)
  • display_name: (String, nil) (defaults to: nil)
  • metadata: (::Hash[Symbol, String?], nil) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


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

Instance Attribute Details

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

New authentication settings for the credential. The type must match the credential's current type, which can't be changed.



29
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 29

optional :auth, union: -> { Anthropic::Beta::Vaults::CredentialUpdateParams::Auth }

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send managed-agents-2026-04-01 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



49
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 49

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#credential_id ⇒ String

Unique identifier of the credential to update.

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 22

required :credential_id, String

#display_name ⇒ String?

Updated human-readable name for the credential. 1-255 characters.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


35
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 35

optional :display_name, String, nil?: true

#metadata ⇒ Hash{Symbol=>String, nil}?

Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omitted keys are preserved.

Parameters:

  • value (::Hash[Symbol, String?], nil)

Returns:

  • (Hash{Symbol=>String, nil}, nil)


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

optional :metadata, Anthropic::Internal::Type::HashOf[String, nil?: true], nil?: true

#vault_id ⇒ String

Identifier of the vault containing the credential.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 16

required :vault_id, String

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { vault_id: String, credential_id: String, auth: Anthropic::Models::Beta::Vaults::CredentialUpdateParams::auth, display_name: String?, metadata: ::Hash[Symbol, String?]?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ vault_id: String, credential_id: String, auth: Anthropic::Models::Beta::Vaults::CredentialUpdateParams::auth, display_name: String?, metadata: ::Hash[Symbol, String?]?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


56
57
58
59
60
61
62
63
64
65
# File 'sig/anthropic/models/beta/vaults/credential_update_params.rbs', line 56

def to_hash: -> {
  vault_id: String,
  credential_id: String,
  auth: Anthropic::Models::Beta::Vaults::CredentialUpdateParams::auth,
  display_name: String?,
  metadata: ::Hash[Symbol, String?]?,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}