snap_python.schemas.common

class snap_python.schemas.common.AsyncResponse(*, status_code: int, type: Literal['sync', 'async', 'error'], status: str, change: str)

Bases: BaseResponse

change: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class snap_python.schemas.common.BaseErrorResult(*, message: str)

Bases: BaseModel

message: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class snap_python.schemas.common.BaseResponse(*, status_code: int, type: Literal['sync', 'async', 'error'], status: str)

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

status: str
status_code: int
type: Literal['sync', 'async', 'error']
class snap_python.schemas.common.Download(*, size: float)

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {'exclude_unset': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

size: float
class snap_python.schemas.common.Media(*, height: float | None = None, type: str, url: str, width: float | None = None)

Bases: BaseModel

height: float | None
model_config: ClassVar[ConfigDict] = {'exclude_unset': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
url: str
width: float | None
class snap_python.schemas.common.Publisher(*, display_name: str, id: str, username: str, validation: str | None = None)

Bases: BaseModel

display_name: str
id: str
model_config: ClassVar[ConfigDict] = {'exclude_unset': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

username: str
validation: str | None
class snap_python.schemas.common.Revision(*, base: SnapBaseVersion | None = None, channel: str | None = None, common_ids: list[str] | None = None, confinement: SnapConfinement | None = None, download: Download | None = None, revision: int | str | None = None, type: str | None = None, version: str | None = None)

Bases: BaseModel

base: SnapBaseVersion | None
channel: str | None
common_ids: list[str] | None
confinement: SnapConfinement | None
download: Download | None
model_config: ClassVar[ConfigDict] = {'exclude_unset': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

revision: int | str | None
type: str | None
version: str | None
class snap_python.schemas.common.SnapApp(*, snap: str | None = None, name: str, desktop_file: str | None = None, daemon: str | None = None, enabled: bool | None = None, active: bool | None = None, common_id: str | None = None)

Bases: BaseModel

active: bool | None
common_id: str | None
daemon: str | None
desktop_file: str | None
enabled: bool | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
snap: str | None
class snap_python.schemas.common.SnapBaseVersion(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

bare = 'bare'
core16 = 'core16'
core18 = 'core18'
core20 = 'core20'
core22 = 'core22'
core24 = 'core24'
class snap_python.schemas.common.SnapConfinement(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

classic = 'classic'
devmode = 'devmode'
jailmode = 'jailmode'
strict = 'strict'