Links
albert.resources.links
LinkCategory
Attributes:
Name | Type | Description |
---|---|---|
MENTION |
|
|
LINKED_TASK |
|
|
SYNTHESIS |
|
|
LINKED_INVENTORY |
|
Link
Bases: BaseResource
A link in Albert.
Attributes:
Name | Type | Description |
---|---|---|
parent |
EntityLink
|
The parent entity of the link. |
child |
EntityLink
|
The child entity of the link. |
category |
LinkCategory
|
The category of the link. Allowed values are |
id |
str | None
|
The Albert ID of the link. Set when the link is retrieved from Albert. |
counter |
int | None
|
The counter of the link. Optional. |
Show JSON schema:
{
"$defs": {
"AuditFields": {
"description": "The audit fields for a resource",
"properties": {
"by": {
"default": null,
"title": "By",
"type": "string"
},
"byName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Byname"
},
"at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
}
},
"title": "AuditFields",
"type": "object"
},
"EntityLink": {
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"required": [
"id"
],
"title": "EntityLink",
"type": "object"
},
"LinkCategory": {
"enum": [
"mention",
"linkedTask",
"synthesis",
"linkedInventory"
],
"title": "LinkCategory",
"type": "string"
},
"Status": {
"description": "The status of a resource",
"enum": [
"active",
"inactive"
],
"title": "Status",
"type": "string"
}
},
"description": "A link in Albert.\n\nAttributes\n----------\nparent : EntityLink\n The parent entity of the link.\nchild : EntityLink\n The child entity of the link.\ncategory : LinkCategory\n The category of the link. Allowed values are `mention`, `linkedTask`, and `synthesis`.\nid : str | None\n The Albert ID of the link. Set when the link is retrieved from Albert.\ncounter : int | None\n The counter of the link. Optional.",
"properties": {
"status": {
"anyOf": [
{
"$ref": "#/$defs/Status"
},
{
"type": "null"
}
],
"default": null
},
"Created": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"Updated": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"Parent": {
"$ref": "#/$defs/EntityLink"
},
"Child": {
"$ref": "#/$defs/EntityLink"
},
"category": {
"$ref": "#/$defs/LinkCategory"
},
"counter": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Counter"
},
"albertId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Albertid"
}
},
"required": [
"Parent",
"Child",
"category"
],
"title": "Link",
"type": "object"
}
Fields:
-
status
(Status | None
) -
created
(AuditFields | None
) -
updated
(AuditFields | None
) -
parent
(EntityLink
) -
child
(EntityLink
) -
category
(LinkCategory
) -
counter
(int | None
) -
id
(str | None
)