Files
update-server/app/schemas/policy.py
T

14 lines
364 B
Python
Raw Normal View History

from pydantic import BaseModel, Field
class PolicySaveRequest(BaseModel):
app_id: str = ""
channel: str = ""
force_update: bool = False
allow_rollback: bool = False
offline_allowed: bool = False
valid_until: str = ""
min_supported_version: str = ""
disabled_versions: list[str] = Field(default_factory=list)
message: str = ""