Module: Anthropic::Models::Beta::Organization::BetaExternalKey::Attachment
- 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
Whether any workspace uses this config to encrypt its data — counting live and
archived workspaces (an archived workspace's data remains encrypted under the
config), excluding deleted ones. Only an attached config is used by the
encryption path; an unattached config is inert and can be deleted.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaExternalKeyAttachedAttachment, Anthropic::Models::Beta::Organization::BetaExternalKeyUnattachedAttachment
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::BetaExternalKeyAttachedAttachment, Anthropic::Models::Beta::Organization::BetaExternalKeyUnattachedAttachment)
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:) ⇒ Anthropic::Beta::Organization::BetaExternalKeyAttachedAttachment .new(type:) ⇒ Anthropic::Beta::Organization::BetaExternalKeyUnattachedAttachment .new(type:) ⇒ Anthropic::Models::Beta::Organization::BetaExternalKey::attachment
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
132 133 134 135 136 137 138 139 140 141 |
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 132 def self.new(type:, **args) case type.to_sym when :attached Anthropic::Beta::Organization::BetaExternalKeyAttachedAttachment.new(**args) when :unattached Anthropic::Beta::Organization::BetaExternalKeyUnattachedAttachment.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 116
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaExternalKeyAttachedAttachment, Anthropic::Models::Beta::Organization::BetaExternalKeyUnattachedAttachment)
|
|
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 120
|