snap_python.schemas.snaps

class snap_python.schemas.snaps.AppsResponse(*, status_code: int, type: Literal['sync', 'async', 'error'], status: str, result: list[SnapAppInfo])

Bases: BaseResponse

model_config: ClassVar[ConfigDict] = {}

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

result: list[SnapAppInfo]
class snap_python.schemas.snaps.InstalledSnap(*, base: ~snap_python.schemas.common.SnapBaseVersion | None = None, channel: str | None = None, common_ids: list[str] | None = None, confinement: ~snap_python.schemas.common.SnapConfinement | None = None, download: ~snap_python.schemas.common.Download | None = None, revision: int | str | None = None, type: str | None = None, version: str | None = None, apps: list[~snap_python.schemas.common.SnapApp] = <factory>, developer: str | None = None, devmode: bool | None = None, health: ~snap_python.schemas.snaps.SnapHealth | None = None, icon: str | None = None, id: str | None = None, ignore_validation: bool, install_date: ~pydantic.types.AwareDatetime | None = None, installed_size: int, jailmode: bool, mounted_from: str, status: str, tracking_channel: str | None = None, contact: str | None = None, description: str | None = None, license: str = 'unset', links: dict[str, list[str]] | None = None, media: list[~snap_python.schemas.common.Media] | None = None, name: str | None = None, private: bool | None = None, publisher: ~snap_python.schemas.common.Publisher | None = None, summary: str | None = None, title: str | None = None, unlisted: bool | None = None, website: str | None = None)

Bases: Snap, InstalledSnapFields

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

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

class snap_python.schemas.snaps.InstalledSnapFields(*, base: ~snap_python.schemas.common.SnapBaseVersion | None = None, channel: str | None = None, common_ids: list[str] | None = None, confinement: ~snap_python.schemas.common.SnapConfinement | None = None, download: ~snap_python.schemas.common.Download | None = None, revision: int | str | None = None, type: str | None = None, version: str | None = None, apps: list[~snap_python.schemas.common.SnapApp] = <factory>, developer: str | None = None, devmode: bool | None = None, health: ~snap_python.schemas.snaps.SnapHealth | None = None, icon: str | None = None, id: str | None = None, ignore_validation: bool, install_date: ~pydantic.types.AwareDatetime | None = None, installed_size: int, jailmode: bool, mounted_from: str, status: str, tracking_channel: str | None = None)

Bases: Revision

apps: list[SnapApp]
developer: str | None
devmode: bool | None
health: SnapHealth | None
icon: str | None
id: str | None
ignore_validation: bool
install_date: AwareDatetime | None
installed_size: int
jailmode: bool
model_config: ClassVar[ConfigDict] = {'exclude_unset': True}

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

mounted_from: str
status: str
tracking_channel: str | None
class snap_python.schemas.snaps.InstalledSnapListResponse(*, status_code: int, type: Literal['sync', 'async', 'error'], status: str, result: list[InstalledSnap])

Bases: BaseResponse

model_config: ClassVar[ConfigDict] = {}

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

result: list[InstalledSnap]
class snap_python.schemas.snaps.SingleInstalledSnapResponse(*, status_code: int, type: Literal['sync', 'async', 'error'], status: str, result: InstalledSnap | BaseErrorResult)

Bases: BaseResponse

model_config: ClassVar[ConfigDict] = {}

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

result: InstalledSnap | BaseErrorResult
class snap_python.schemas.snaps.Snap(*, contact: str | None = None, description: str | None = None, license: str = 'unset', links: dict[str, list[str]] | None = None, media: list[Media] | None = None, name: str | None = None, private: bool | None = None, publisher: Publisher | None = None, summary: str | None = None, title: str | None = None, unlisted: bool | None = None, website: str | None = None)

Bases: BaseModel

contact: str | None
description: str | None
license: str
media: list[Media] | None
model_config: ClassVar[ConfigDict] = {}

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

name: str | None
private: bool | None
publisher: Publisher | None
summary: str | None
title: str | None
unlisted: bool | None
website: str | None
class snap_python.schemas.snaps.SnapAppInfo(*, 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, activators: list[dict] | None = None)

Bases: BaseModel

activators: list[dict] | None
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.snaps.SnapHealth(*, status: str, revision: str, timestamp: AwareDatetime)

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

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

revision: str
status: str
timestamp: AwareDatetime
class snap_python.schemas.snaps.StoreSnap(*, gated_snap_ids: list[str] | None = None, categories: list[Category] | None = None, prices: dict[str, str] | None = None, snap_id: str | None = None, store_url: str | None = None, trending: bool | None = None, contact: str | None = None, description: str | None = None, license: str = 'unset', links: dict[str, list[str]] | None = None, media: list[Media] | None = None, name: str | None = None, private: bool | None = None, publisher: Publisher | None = None, summary: str | None = None, title: str | None = None, unlisted: bool | None = None, website: str | None = None)

Bases: Snap, StoreSnapFields

model_config: ClassVar[ConfigDict] = {}

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

class snap_python.schemas.snaps.StoreSnapFields(*, gated_snap_ids: list[str] | None = None, categories: list[Category] | None = None, prices: dict[str, str] | None = None, snap_id: str | None = None, store_url: str | None = None, trending: bool | None = None)

Bases: BaseModel

categories: list[Category] | None
gated_snap_ids: list[str] | None
model_config: ClassVar[ConfigDict] = {}

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

prices: dict[str, str] | None
snap_id: str | None
store_url: str | None
trending: bool | None