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.

See Also:

  • Anthropic::Models::Beta::Organization::BetaExternalKey#attachment

Defined Under Namespace

Modules: Type

Class Method Summary collapse

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.

Overloads:

  • .new(type:) ⇒ Anthropic::Beta::Organization::BetaExternalKeyAttachedAttachment

    Parameters:

    • type: (:attached, "attached")

    Returns:

    • (Anthropic::Beta::Organization::BetaExternalKeyAttachedAttachment)
  • .new(type:) ⇒ Anthropic::Beta::Organization::BetaExternalKeyUnattachedAttachment

    Parameters:

    • type: (:unattached, "unattached")

    Returns:

    • (Anthropic::Beta::Organization::BetaExternalKeyUnattachedAttachment)
  • .new(type:) ⇒ Anthropic::Models::Beta::Organization::BetaExternalKey::attachment

    Parameters:

    • type: (Anthropic::Models::Beta::Organization::BetaExternalKey::Attachment::type_, String)

    Returns:

    • (Anthropic::Models::Beta::Organization::BetaExternalKey::attachment)

Parameters:

Returns:

Raises:

  • (ArgumentError)


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>

Returns:

  • (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