Module: Anthropic::Models::Beta::Organization::BetaExternalKey::ProviderConfig
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/beta_external_key.rb,
sig/anthropic/models/beta/organization/beta_external_key.rbs
Overview
KMS provider identity and auth coordinates.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaAWSExternalKeyConfig, ...
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::Organization::BetaAWSExternalKeyConfig, Anthropic::Models::Beta::Organization::BetaGCPExternalKeyConfig, Anthropic::Models::Beta::Organization::BetaAzureExternalKeyConfig)
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:, kms_arn:, region:, role_arn:) ⇒ Anthropic::Beta::Organization::BetaAWSExternalKeyConfig .new(type:, key_name:) ⇒ Anthropic::Beta::Organization::BetaGCPExternalKeyConfig .new(type:, key_name:, tenant_id:, vault_uri:, client_id:) ⇒ Anthropic::Beta::Organization::BetaAzureExternalKeyConfig .new(type:, kms_arn:, region:, role_arn:, key_name:, tenant_id:, vault_uri:, client_id:) ⇒ Anthropic::Models::Beta::Organization::BetaExternalKey::provider_config
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::Organization::BetaExternalKey::ProviderConfig for more details.
199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 199 def self.new(type:, **args) case type.to_sym when :aws Anthropic::Beta::Organization::BetaAWSExternalKeyConfig.new(**args) when :gcp Anthropic::Beta::Organization::BetaGCPExternalKeyConfig.new(**args) when :azure Anthropic::Beta::Organization::BetaAzureExternalKeyConfig.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 165
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaAWSExternalKeyConfig, Anthropic::Models::Beta::Organization::BetaGCPExternalKeyConfig, Anthropic::Models::Beta::Organization::BetaAzureExternalKeyConfig)
|
|
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 169
|