Share via


ApiKeyAuthentication Class

API key authentication.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

ApiKeyAuthentication(*, type: Annotated[Literal['APIKey', 'api_key'], AfterValidator(func=to_snake)] = 'api_key', key: str, **extra_data: Any)

Keyword-Only Parameters

Name Description
type
Default value: api_key
key
Required

Attributes

key

key: str

type

type: Annotated[Literal['APIKey', 'api_key'], AfterValidator(func=to_snake)]