Skip to content

SelectedPermissionOutcome

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970871013472["permissions.SelectedPermissionOutcome"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970871013472
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

The user selected one of the offered options.

An option_id that matches no offered option counts as rejection.

Source code in src/aclientp/schema/v2/permissions.py
class SelectedPermissionOutcome(AnnotatedObject):
    """The user selected one of the offered options.

    An ``option_id`` that matches no offered option counts as rejection.
    """

    outcome: Literal["selected"] = Field(default="selected", init=False)

    option_id: PermissionOptionId
    """The selected option."""

option_id instance-attribute

option_id: PermissionOptionId

The selected option.

:fa-brands-github: Show source on GitHub