Module: Anthropic::Models::Organization::ExternalKey::ProviderConfig
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/organization/external_key.rb,
sig/anthropic/models/organization/external_key.rbs
Overview
KMS provider identity and auth coordinates.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Organization::AWSExternalKeyConfig, ...
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::Organization::AWSExternalKeyConfig, Anthropic::Models::Organization::GCPExternalKeyConfig, Anthropic::Models::Organization::AzureExternalKeyConfig)
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:) ⇒ Anthropic::Organization::AWSExternalKeyConfig .new(type:, key_name:) ⇒ Anthropic::Organization::GCPExternalKeyConfig .new(type:, key_name:, tenant_id:, vault_uri:, client_id:) ⇒ Anthropic::Organization::AzureExternalKeyConfig .new(type:, kms_arn:, region:, key_name:, tenant_id:, vault_uri:, client_id:) ⇒ Anthropic::Models::Organization::ExternalKey::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::Organization::ExternalKey::ProviderConfig for more details.
195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/anthropic/models/organization/external_key.rb', line 195 def self.new(type:, **args) case type.to_sym when :aws Anthropic::Organization::AWSExternalKeyConfig.new(**args) when :gcp Anthropic::Organization::GCPExternalKeyConfig.new(**args) when :azure Anthropic::Organization::AzureExternalKeyConfig.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/organization/external_key.rb', line 164
|
.variants ⇒ Array(Anthropic::Models::Organization::AWSExternalKeyConfig, Anthropic::Models::Organization::GCPExternalKeyConfig, Anthropic::Models::Organization::AzureExternalKeyConfig)
|
|
# File 'lib/anthropic/models/organization/external_key.rb', line 168
|