pilotwings/backend/types.py
Michel Roux b1d308a977
All checks were successful
pilotwings / python (push) Successful in 1m45s
pilotwings / node (push) Successful in 38s
pilotwings / docker (push) Successful in 1m52s
refactor: ♻️ refacto and fix #5
2024-11-06 15:18:51 +01:00

20 lines
357 B
Python

from pydantic import BaseModel
class ContainerRequest(BaseModel):
image: str
environment: list[str]
class SerializedContainer(BaseModel):
id: str
name: str | None
image: str | None
labels: dict[str, str]
status: str
health: str
engine: str | None
owner: str | None
environment: list[str]
logs: str | None