class documentation

class GalleryEntryModel(BaseModel): (source)

View In Hierarchy

The data required for each entry in the gallery.

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 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.
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

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.