Class: Anthropic::Models::Beta::Vaults::CredentialCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Vaults::CredentialCreateParams
- 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
Defined Under Namespace
Modules: Auth
Instance Attribute Summary collapse
-
#auth ⇒ Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthCreateParams, ...
Authentication configuration for the credential.
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
managed-agents-2026-04-01in this header. -
#display_name ⇒ String?
Human-readable name for the credential.
-
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary key-value metadata to attach to the credential.
-
#vault_id ⇒ String
Identifier of the vault to create the credential in.
-
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(vault_id:, auth:, display_name: nil, metadata: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ CredentialCreateParams
constructor
Some parameter documentations has been truncated, see CredentialCreateParams for more 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 }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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.
|
|
# 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.
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.
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.
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.
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.
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 }
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
}
|