Lists
albert.resources.lists
ListItemCategory
Attributes:
Name | Type | Description |
---|---|---|
BUSINESS_DEFINED |
|
|
USER_DEFINED |
|
|
PROJECTS |
|
|
EXTENSIONS |
|
|
INVENTORY |
|
ListItem
Bases: BaseResource
An item in a list.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
The name of the list item. |
id |
str | None
|
The Albert ID of the list item. Set when the list item is retrieved from Albert. |
category |
ListItemCategory | None
|
The category of the list item. Allowed values are |
list_type |
str | None
|
The type of the list item. Allowed values are |
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"
},
"ListItemCategory": {
"enum": [
"businessDefined",
"userDefined",
"projects",
"extensions",
"inventory"
],
"title": "ListItemCategory",
"type": "string"
},
"Status": {
"description": "The status of a resource",
"enum": [
"active",
"inactive"
],
"title": "Status",
"type": "string"
}
},
"description": "An item in a list.\n\nAttributes\n----------\nname : str\n The name of the list item.\nid : str | None\n The Albert ID of the list item. Set when the list item is retrieved from Albert.\ncategory : ListItemCategory | None\n The category of the list item. Allowed values are `businessDefined`, `userDefined`, `projects`, and `extensions`.\nlist_type : str | None\n The type of the list item. Allowed values are `projectState` for `projects` and `extensions` for `extensions`.",
"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
},
"name": {
"title": "Name",
"type": "string"
},
"albertId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Albertid"
},
"category": {
"anyOf": [
{
"$ref": "#/$defs/ListItemCategory"
},
{
"type": "null"
}
],
"default": null
},
"listType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Listtype"
}
},
"required": [
"name"
],
"title": "ListItem",
"type": "object"
}
Fields:
-
status
(Status | None
) -
created
(AuditFields | None
) -
updated
(AuditFields | None
) -
name
(str
) -
id
(str | None
) -
category
(ListItemCategory | None
) -
list_type
(str | None
)
Validators:
validate_list_type
validate_list_type() -> ListItem