Module: Anthropic::Models::Beta::Vaults::CredentialUpdateParams::Auth
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/vaults/credential_update_params.rb,
sig/anthropic/models/beta/vaults/credential_update_params.rbs
Overview
New authentication settings for the credential. The type must match the
credential's current type, which can't be changed.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, access_token:, expires_at:, refresh:) ⇒ Anthropic::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams .new(type:, token:) ⇒ Anthropic::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams .new(type:, injection_location:, networking:, secret_value:) ⇒ Anthropic::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams .new(type:, access_token:, expires_at:, refresh:, token:, injection_location:, networking:, secret_value:) ⇒ Anthropic::Models::Beta::Vaults::CredentialUpdateParams::auth
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Vaults::CredentialUpdateParams::Auth for more details.
140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 140 def self.new(type:, **args) case type.to_sym when :mcp_oauth Anthropic::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams.new(**args) when :static_bearer Anthropic::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams.new(**args) when :environment_variable Anthropic::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 106
|
.variants ⇒ Array(Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams)
|
|
# File 'lib/anthropic/models/beta/vaults/credential_update_params.rb', line 110
|