class documentation

class GalleryEntryModel(BaseModel): (source)

View In Hierarchy

The data required for each entry in the gallery.

Class Variable card_actions The buttons for any actions from the gallery card.
Class Variable card_messages The messages for this gallery card.
Class Variable card_type Name of the card type for the UI so it can interpret the metadata.
Class Variable created The created time.
Class Variable delete_endpoint The endpoint for deleting this item with a DELETE request.
Class Variable download_buttons The buttons for downloading from the gallery card.
Class Variable gallery_added_data Extra data added by the gallery UI.
Class Variable gallery_info Card type specific information that is shared with the gallery.
Class Variable modified The modified time.
Class Variable name The display name for the item in the gallery.
Class Variable path The mounted path for this entry with the data directory.
Class Variable thing The name of the thing that created this object.
Class Variable thumbnail_source The mounted path for the thumbnail.
Class Variable viewer_data The data for how to display the item in the gallery's viewer.
card_actions: list[ActionButton] = (source)

The buttons for any actions from the gallery card.

card_messages: list[GalleryCardMessages] = (source)

The messages for this gallery card.

card_type: str = (source)

Name of the card type for the UI so it can interpret the metadata.

created: float = (source)

The created time.

delete_endpoint: str = (source)

The endpoint for deleting this item with a DELETE request.

This is relative to the base URI

download_buttons: list[DownloadButton] = (source)

The buttons for downloading from the gallery card.

gallery_added_data: dict[str, Any] = (source)

Extra data added by the gallery UI.

gallery_info: dict[str, Any] = (source)

Card type specific information that is shared with the gallery.

modified: float = (source)

The modified time.

name: str = (source)

The display name for the item in the gallery.

path: str = (source)

The mounted path for this entry with the data directory.

thing: str = (source)

The name of the thing that created this object.

thumbnail_source: str | None = (source)

The mounted path for the thumbnail.

viewer_data: ViewerData | None = (source)

The data for how to display the item in the gallery's viewer.