WIP: Add firmware schema

This commit is contained in:
Oliver Traber 2025-03-21 16:40:49 +00:00
parent 486977f828
commit 1cb3bace21
Signed by: Bluemedia
GPG key ID: C0674B105057136C

View file

@ -0,0 +1,23 @@
import enum
from pydantic import BaseModel
class FirmwareUpdateStatus(enum.Enum):
DOWNLOADED = "Downloaded"
DOWNLOAD_FAILED = "DownloadFailed"
DOWNLOADING = "Downloading"
DOWNLOAD_SCHEDULED = "DownloadScheduled"
DOWNLOAD_PAUSED = "DownloadPaused"
IDLE = " Idle"
INSTALLATION_FAILED = "InstallationFailed"
INSTALLING = "Installing"
INSTALLED = "Installed"
INSTALL_REBOOTING = "InstallRebooting"
INSTALL_SCHEDULED = "InstallScheduled"
INSTALL_VERIFICATION_FAILED = "InstallVerificationFailed"
INVALID_SIGNATURE = "InvalidSignature"
SIGNATURE_VERIFIED = "SignatureVerified"
class FirmwareUpdateBase(BaseModel):
retries: int
retry_interval: int
location: str