snap_python.schemas.changes
- class snap_python.schemas.changes.ChangesResponse(*, status_code: int, type: Literal['sync', 'async', 'error'], status: str, result: ChangesResult | BaseErrorResult, maintenance: MaintenanceInfo | None = None)
Bases:
BaseResponse
- maintenance: MaintenanceInfo | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- property ready: bool
- result: ChangesResult | BaseErrorResult
- class snap_python.schemas.changes.ChangesResult(*, id: str, kind: str, summary: str, status: str, tasks: list[Task], ready: bool, spawn_time: AwareDatetime, ready_time: AwareDatetime | None = None, err: str | None = None, data: dict | None = None)
Bases:
BaseModel
- data: dict | None
- err: str | None
- id: str
- kind: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- property overall_progress: ProgressInfo
- ready: bool
- ready_time: AwareDatetime | None
- spawn_time: AwareDatetime
- status: str
- summary: str
- class snap_python.schemas.changes.MaintenanceInfo(*, kind: str, message: str)
Bases:
BaseModel
- kind: str
- message: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class snap_python.schemas.changes.ProgressInfo(*, label: str, done: int, total: int)
Bases:
BaseModel
- done: int
- label: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- total: int
- class snap_python.schemas.changes.Task(*, id: str, kind: str, summary: str, status: str, progress: ProgressInfo, spawn_time: AwareDatetime, ready_time: AwareDatetime | None = None, data: dict | None = None)
Bases:
BaseModel
- data: dict | None
- id: str
- kind: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- progress: ProgressInfo
- ready_time: AwareDatetime | None
- spawn_time: AwareDatetime
- status: str
- summary: str