Skip to content

AuthMethodAgent

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970857294944["common.AuthMethodAgent"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970857294944
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Agent handles authentication itself.

This is the default authentication method type. When no type field is present, the method is treated as agent.

Source code in src/aclientp/schema/common.py
class AuthMethodAgent(AnnotatedObject):
    """Agent handles authentication itself.

    This is the default authentication method type.
    When no ``type`` field is present, the method is treated as ``agent``.
    """

    type: Literal["agent"] = Field(default="agent", exclude=True)
    """Discriminator field.  Defaults to ``"agent"`` and is excluded from serialization
    for backward compatibility."""

    id: str
    """Unique identifier for this authentication method."""

    name: str
    """Human-readable name of the authentication method."""

    description: str | None = None
    """Optional description providing more details about this authentication method."""

description class-attribute instance-attribute

description: str | None = None

Optional description providing more details about this authentication method.

id instance-attribute

id: str

Unique identifier for this authentication method.

name instance-attribute

name: str

Human-readable name of the authentication method.

type class-attribute instance-attribute

type: Literal['agent'] = Field(default='agent', exclude=True)

Discriminator field. Defaults to "agent" and is excluded from serialization for backward compatibility.

:fa-brands-github: Show source on GitHub