Class: A2A::APIKeySecurityScheme

Inherits:
SecuritySchemeBase show all
Defined in:
lib/a2a/types/api_key_security_scheme.rb

Overview

Defines a security scheme using an API key.

Instance Method Summary collapse

Methods inherited from SecuritySchemeBase

#description

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#inString

Returns The location of the API key.

Returns:

  • (String)

    The location of the API key.



10
# File 'lib/a2a/types/api_key_security_scheme.rb', line 10

attribute :in, Types::String.enum('query', 'header', 'cookie')

#nameString

Returns The name of the header, query, or cookie parameter to be used.

Returns:

  • (String)

    The name of the header, query, or cookie parameter to be used.



13
# File 'lib/a2a/types/api_key_security_scheme.rb', line 13

attribute :name, Types::String

#typeString

Returns The type of the security scheme. Must be ‘apiKey’.

Returns:

  • (String)

    The type of the security scheme. Must be ‘apiKey’.



7
# File 'lib/a2a/types/api_key_security_scheme.rb', line 7

attribute :type, Types::String.constant('apiKey')