Class: Anthropic::Models::Beta::Vaults::CredentialCreateParams

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

Overview

See Also:

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

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

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

Parameters:



# File 'lib/anthropic/models/beta/vaults/credential_create_params.rb', line 55

Instance Attribute Details

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

Authentication configuration for the credential.



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

required :auth, union: -> { Anthropic::Beta::Vaults::CredentialCreateParams::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:



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

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

#display_name ⇒ String?

Human-readable name for the credential. Up to 255 characters.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


28
# File 'lib/anthropic/models/beta/vaults/credential_create_params.rb', line 28

optional :display_name, String, nil?: true

#metadata ⇒ Hash{Symbol=>String}?

Arbitrary key-value metadata to attach to the credential. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.

Parameters:

  • (::Hash[Symbol, String])

Returns:

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


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

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

#vault_id ⇒ String

Identifier of the vault to create the credential in.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/vaults/credential_create_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)


53
# File 'lib/anthropic/models/beta/vaults/credential_create_params.rb', line 53

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { vault_id: String, auth: Anthropic::Models::Beta::Vaults::CredentialCreateParams::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, auth: Anthropic::Models::Beta::Vaults::CredentialCreateParams::auth, display_name: String?, metadata: ::Hash[Symbol, String], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


50
51
52
53
54
55
56
57
58
# File 'sig/anthropic/models/beta/vaults/credential_create_params.rbs', line 50

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