Module: Anthropic::Models::Organization::ExternalKey::Attachment
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/organization/external_key.rb,
sig/anthropic/models/organization/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::Organization::ExternalKeyAttachedAttachment, Anthropic::Models::Organization::ExternalKeyUnattachedAttachment
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::ExternalKeyAttachedAttachment, Anthropic::Models::Organization::ExternalKeyUnattachedAttachment)
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::Organization::ExternalKeyAttachedAttachment .new(type:) ⇒ Anthropic::Organization::ExternalKeyUnattachedAttachment .new(type:) ⇒ Anthropic::Models::Organization::ExternalKey::attachment
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/organization/external_key.rb', line 131 def self.new(type:, **args) case type.to_sym when :attached Anthropic::Organization::ExternalKeyAttachedAttachment.new(**args) when :unattached Anthropic::Organization::ExternalKeyUnattachedAttachment.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/organization/external_key.rb', line 115
|
.variants ⇒ Array(Anthropic::Models::Organization::ExternalKeyAttachedAttachment, Anthropic::Models::Organization::ExternalKeyUnattachedAttachment)
|
|
# File 'lib/anthropic/models/organization/external_key.rb', line 119
|