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) ⇒ ExternalKeyValidateResponse

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:

  • error (String, nil) —

    Error message when status is failure. Null otherwise.

  • status (Symbol, Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::Status) —

    success — encrypt/decrypt roundtrip succeeded. failure — the roundtrip faile

  • type (Symbol, :external_key_validation) (defaults to: :external_key_validation)
  • error: (String, nil)
  • status: (Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::status)
  • type: (:external_key_validation) (defaults to: :external_key_validation)


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

Instance Attribute Details

#error ⇒ String?

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

#status ⇒ Symbol, 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 }

#type ⇒ Symbol, :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 ⇒ { error: String?, status: Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::status, type: :external_key_validation }

Returns:

  • ({ error: String?, status: Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::status, type: :external_key_validation })


25
26
27
28
29
# File 'sig/anthropic/models/beta/organization/external_key_validate_response.rbs', line 25

def to_hash: -> {
  error: String?,
  status: Anthropic::Models::Beta::Organization::ExternalKeyValidateResponse::status,
  type: :external_key_validation
}