election_day.collections.upload_tokens ====================================== .. py:module:: election_day.collections.upload_tokens Classes ------- .. autoapisummary:: election_day.collections.upload_tokens.UploadTokenCollection Module Contents --------------- .. py:class:: UploadTokenCollection(session: sqlalchemy.orm.Session) .. py:attribute:: session .. py:method:: query() -> sqlalchemy.orm.Query[onegov.election_day.models.UploadToken] .. py:method:: create() -> onegov.election_day.models.UploadToken Creates a new token. .. py:method:: delete(item: onegov.election_day.models.UploadToken) -> None Deletes the given token. .. py:method:: by_id(id: uuid.UUID) -> onegov.election_day.models.UploadToken | None Returns the token by its id.