WIP: Add firmware schema
This commit is contained in:
parent
486977f828
commit
1cb3bace21
1 changed files with 23 additions and 0 deletions
23
backend/app/schemas/firmware_update.py
Normal file
23
backend/app/schemas/firmware_update.py
Normal 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
|
Loading…
Add table
Reference in a new issue