Collections¶
Collection
¶
Bases: Entry, HasOwner, HasBlocks
Attributes:
| Name | Type | Description |
|---|---|---|
blocks_obj |
dict[str, DataBlockResponse]
|
A mapping from block ID to block data. |
collection_id |
HumanReadableIdentifier
|
A short human-readable/usable name for the collection. |
creator_ids |
list[PyObjectId]
|
The database IDs of the user(s) who created the item. |
creators |
list[Person] | None
|
Inlined info for the people associated with this item. |
description |
str | None
|
A description of the collection, either in plain-text or a markup language. |
display_order |
list[str]
|
The order in which to display block data in the UI. |
immutable_id |
PyObjectId
|
The immutable database ID of the entry. |
last_modified |
IsoformatDateTime | None
|
The timestamp at which the entry was last modified. |
num_items |
int | None
|
Inlined number of items associated with this collection. |
relationships |
list[TypedRelationship] | None
|
A list of related entries and their types. |
title |
str | None
|
A descriptive title for the collection. |
type |
str
|
The resource type of the entry. |
blocks_obj
¶
A mapping from block ID to block data.
collection_id
¶
collection_id: HumanReadableIdentifier = Field(None)
A short human-readable/usable name for the collection.
creator_ids
¶
The database IDs of the user(s) who created the item.
creators
¶
Inlined info for the people associated with this item.
description
¶
description: str | None
A description of the collection, either in plain-text or a markup language.
display_order
¶
The order in which to display block data in the UI.
immutable_id
¶
immutable_id: PyObjectId = Field(None, title='Immutable ID', alias='_id', format='uuid')
The immutable database ID of the entry.
last_modified
¶
last_modified: IsoformatDateTime | None = None
The timestamp at which the entry was last modified.
num_items
¶
Inlined number of items associated with this collection.
relationships
¶
relationships: list[TypedRelationship] | None = None
A list of related entries and their types.
type
¶
The resource type of the entry.
check_id_names
¶
check_id_names(values)
Slightly upsetting hack: this case should be covered by the pydantic setting for populating fields by alias names.