flip_api.domain.schemas.actions =============================== .. py:module:: flip_api.domain.schemas.actions Classes ------- .. autoapisummary:: flip_api.domain.schemas.actions.ProjectAuditAction flip_api.domain.schemas.actions.ModelAuditAction flip_api.domain.schemas.actions.TrustAuditAction Module Contents --------------- .. py:class:: ProjectAuditAction Bases: :py:obj:`enum.StrEnum` Enum where members are also (and must be) strings .. py:attribute:: DELETE :value: 'DELETE' .. py:attribute:: EDIT :value: 'EDIT' .. py:attribute:: APPROVE :value: 'APPROVE' .. py:attribute:: STAGE :value: 'STAGE' .. py:attribute:: UNSTAGE :value: 'UNSTAGE' .. py:class:: ModelAuditAction Bases: :py:obj:`enum.StrEnum` Enum where members are also (and must be) strings .. py:attribute:: DELETE :value: 'DELETE' .. py:attribute:: EDIT :value: 'EDIT' .. py:attribute:: PREPARED :value: 'PREPARED' .. py:attribute:: TRAINING_STARTED :value: 'TRAINING_STARTED' .. py:attribute:: RESULTS_UPLOADED :value: 'RESULTS_UPLOADED' .. py:class:: TrustAuditAction Bases: :py:obj:`enum.StrEnum` Lifecycle events for the trust registry. Captured by `trusts_services.utils.audit_helper.audit_trust_action`: `register_trust` writes REGISTERED, `delete_trust` writes DELETED. The audit row is stored in `trusts_audit` with no FK to `trust.id`, so it persists past a hard delete. .. py:attribute:: REGISTERED :value: 'REGISTERED' .. py:attribute:: DELETED :value: 'DELETED'