Class: Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/external_key_validate_response.rb,
sig/anthropic/models/beta/organization/external_key_validate_response.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::ExternalKeys#validate

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(error:, status:, type: :external_key_validation) ⇒ Object

Result of a validation roundtrip against the customer's KMS.

HTTP 200 for both outcomes — the operation completed; status says whether the key works.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse for more details.

Parameters:



# File 'lib/anthropic/models/beta/organization/external_key_validate_response.rb', line 27

Instance Attribute Details

#errorString?

Error message when status is failure. Null otherwise.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


13
# File 'lib/anthropic/models/beta/organization/external_key_validate_response.rb', line 13

required :error, String, nil?: true

#statusSymbol, Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::Status

success — encrypt/decrypt roundtrip succeeded. failure — the roundtrip failed or timed out; see error.

Parameters:

  • value (Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::status)

Returns:



20
# File 'lib/anthropic/models/beta/organization/external_key_validate_response.rb', line 20

required :status, enum: -> { Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::Status }

#typeSymbol, :external_key_validation

Parameters:

  • value (:external_key_validation)

Returns:

  • (Symbol, :external_key_validation)


25
# File 'lib/anthropic/models/beta/organization/external_key_validate_response.rb', line 25

required :type, const: :external_key_validation

Instance Method Details

#to_hash{

Returns:

  • ({)


25
# File 'sig/anthropic/models/beta/organization/external_key_validate_response.rbs', line 25

def to_hash: -> {