Tags
albert.resources.tags
TagEntity
Tag
Bases: BaseResource
Tag is a Pydantic model representing a tag entity.
Attributes:
Name | Type | Description |
---|---|---|
tag |
str
|
The name of the tag. |
id |
str | None
|
The Albert ID of the tag. Set when the tag is retrieved from Albert. |
Methods:
Name | Description |
---|---|
from_string |
Creates a Tag object from a string. |
id
id: str | None = Field(
None,
alias=AliasChoices("albertId", "tagId"),
serialization_alias="albertId",
)
BaseTaggedEntity
Bases: BaseResource
BaseTaggedEntity is a Pydantic model that includes functionality for handling tags as either Tag objects or strings.
Attributes:
Name | Type | Description |
---|---|---|
tags |
List[Tag | str] | None
|
A list of Tag objects or strings representing tags. |
Methods:
Name | Description |
---|---|
convert_tags |
|