agency.models.mutation ====================== .. py:module:: agency.models.mutation Attributes ---------- .. autoapisummary:: agency.models.mutation._NOT_FOUND agency.models.mutation.AGENCY_MUTATION_LABELS Classes ------- .. autoapisummary:: agency.models.mutation.Mutation agency.models.mutation.AgencyMutation agency.models.mutation.PersonMutation Module Contents --------------- .. py:data:: _NOT_FOUND .. py:data:: AGENCY_MUTATION_LABELS .. py:class:: Mutation[M: onegov.core.orm.Base, IdT_contra: uuid.UUID | int](session: sqlalchemy.orm.Session, target_id: IdT_contra, ticket_id: uuid.UUID) .. py:attribute:: session .. py:attribute:: target_id .. py:attribute:: ticket_id .. py:property:: collection :type: agency.models.move.SupportsById[M, IdT_contra] :abstractmethod: .. py:property:: target :type: M | None .. py:property:: ticket :type: onegov.ticket.Ticket | None .. py:property:: changes :type: dict[str, Any] .. py:property:: labels :type: dict[str, str] .. py:method:: apply(items: collections.abc.Iterable[str]) -> None .. py:class:: AgencyMutation(session: sqlalchemy.orm.Session, target_id: IdT_contra, ticket_id: uuid.UUID) Bases: :py:obj:`Mutation`\ [\ :py:obj:`agency.models.agency.ExtendedAgency`\ , :py:obj:`int`\ ] .. py:property:: collection :type: onegov.agency.collections.ExtendedAgencyCollection .. py:property:: labels :type: dict[str, str] .. py:class:: PersonMutation(session: sqlalchemy.orm.Session, target_id: IdT_contra, ticket_id: uuid.UUID) Bases: :py:obj:`Mutation`\ [\ :py:obj:`agency.models.person.ExtendedPerson`\ , :py:obj:`uuid.UUID`\ ] .. py:property:: collection :type: onegov.agency.collections.ExtendedPersonCollection .. py:property:: labels :type: dict[str, str]