Module: Anthropic::Models::Beta::Organization::BetaExternalStorage::ProviderConfig
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/beta_external_storage.rb,
sig/anthropic/models/beta/organization/beta_external_storage.rbs
Overview
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaAWSExternalStorageConfig, Anthropic::Models::Beta::Organization::BetaGCPExternalStorageConfig
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::BetaAWSExternalStorageConfig, Anthropic::Models::Beta::Organization::BetaGCPExternalStorageConfig)
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:, account_id:, bucket_name:, region:) ⇒ Anthropic::Beta::Organization::BetaAWSExternalStorageConfig .new(type:, bucket_name:, project_number:, region:) ⇒ Anthropic::Beta::Organization::BetaGCPExternalStorageConfig .new(type:, bucket_name:, region:, account_id:, project_number:) ⇒ Anthropic::Models::Beta::Organization::BetaExternalStorage::provider_config
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
131 132 133 134 135 136 137 138 139 140 |
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 131 def self.new(type:, **args) case type.to_sym when :aws Anthropic::Beta::Organization::BetaAWSExternalStorageConfig.new(**args) when :gcp Anthropic::Beta::Organization::BetaGCPExternalStorageConfig.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 107
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaAWSExternalStorageConfig, Anthropic::Models::Beta::Organization::BetaGCPExternalStorageConfig)
|
|
# File 'lib/anthropic/models/beta/organization/beta_external_storage.rb', line 111
|