acapy_agent.protocols.revocation_notification.v1_0.models package
Submodules
acapy_agent.protocols.revocation_notification.v1_0.models.rev_notification_record module
Store revocation notification details until revocation is published.
- class acapy_agent.protocols.revocation_notification.v1_0.models.rev_notification_record.RevNotificationRecord(*, revocation_notification_id: str | None = None, rev_reg_id: str | None = None, cred_rev_id: str | None = None, connection_id: str | None = None, thread_id: str | None = None, comment: str | None = None, version: str | None = None, **kwargs)[source]
Bases:
BaseRecordRevocation Notification Record.
- class Meta[source]
Bases:
objectRevNotificationRecord Meta.
- schema_class = 'RevNotificationRecordSchema'
- RECORD_ID_NAME = 'revocation_notification_id'
- RECORD_TYPE = 'revocation_notification'
- TAG_NAMES = {'connection_id', 'cred_rev_id', 'rev_reg_id', 'version'}
- async classmethod query_by_ids(session: ProfileSession, cred_rev_id: str, rev_reg_id: str) RevNotificationRecord[source]
Retrieve revocation notification record by cred rev id and/or rev reg id.
- Parameters:
session – the profile session to use
cred_rev_id – the cred rev id by which to filter
rev_reg_id – the rev reg id by which to filter
- async classmethod query_by_rev_reg_id(session: ProfileSession, rev_reg_id: str) Sequence[RevNotificationRecord][source]
Retrieve revocation notification records by rev reg id.
- Parameters:
session – the profile session to use
rev_reg_id – the rev reg id by which to filter
- property record_value: dict
Return record value.
- property revocation_notification_id: str | None
Return record id.
- class acapy_agent.protocols.revocation_notification.v1_0.models.rev_notification_record.RevNotificationRecordSchema(*args: Any, **kwargs: Any)[source]
Bases:
BaseRecordSchemaRevocation Notification Record Schema.