selfprivacy-rest-api/selfprivacy_api/models/backup/snapshot.py

12 lines
263 B
Python
Raw Permalink Normal View History

2023-02-13 11:16:35 +00:00
import datetime
2023-02-13 10:33:39 +00:00
from pydantic import BaseModel
from selfprivacy_api.graphql.common_types.backup import BackupReason
2023-02-13 11:16:35 +00:00
2023-02-13 10:33:39 +00:00
class Snapshot(BaseModel):
id: str
service_name: str
created_at: datetime.datetime
reason: BackupReason = BackupReason.EXPLICIT