Class: Cadenya::Models::AIProviderKeySpec::Credentials

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/ai_provider_key_spec.rb,
sig/cadenya/models/ai_provider_key_spec.rbs

Overview

See Also:

  • Cadenya::Models::AIProviderKeySpec#credentials

Defined Under Namespace

Classes: APIKey, Headers

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(api_key: nil) ⇒ Object

CredentialAPIKey carries a single bearer/header API key.

Parameters:

  • api_key (String) (defaults to: nil)


# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 147

Instance Attribute Details

#api_keyCadenya::Models::AIProviderKeySpec::Credentials::APIKey?

CredentialAPIKey carries a single bearer/header API key.



138
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 138

optional :api_key, -> { Cadenya::AIProviderKeySpec::Credentials::APIKey }, api_name: :apiKey

#headersCadenya::Models::AIProviderKeySpec::Credentials::Headers?

CredentialHeaders carries arbitrary HTTP headers sent with every request to the provider (e.g. "Bearer ...", "X-Api-Key": "...").



145
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 145

optional :headers, -> { Cadenya::AIProviderKeySpec::Credentials::Headers }

Instance Method Details

#to_hash{

Returns:

  • ({)


147
# File 'sig/cadenya/models/ai_provider_key_spec.rbs', line 147

def to_hash: -> {