Sync Album V2
immichpy.client.generated.models.sync_album_v2.SyncAlbumV2
pydantic-model
Bases: BaseModel
SyncAlbumV2
Show JSON schema:
{
"$defs": {
"AssetOrder": {
"description": "Asset sort order",
"enum": [
"asc",
"desc"
],
"title": "AssetOrder",
"type": "string"
}
},
"description": "SyncAlbumV2",
"properties": {
"createdAt": {
"description": "Created at",
"examples": [
"2024-01-01T00:00:00Z"
],
"format": "date-time",
"title": "Createdat",
"type": "string"
},
"description": {
"description": "Album description",
"title": "Description",
"type": "string"
},
"id": {
"description": "Album ID",
"format": "uuid",
"title": "Id",
"type": "string"
},
"isActivityEnabled": {
"description": "Is activity enabled",
"title": "Isactivityenabled",
"type": "boolean"
},
"name": {
"description": "Album name",
"title": "Name",
"type": "string"
},
"order": {
"$ref": "#/$defs/AssetOrder"
},
"thumbnailAssetId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Thumbnail asset ID",
"title": "Thumbnailassetid"
},
"updatedAt": {
"description": "Updated at",
"examples": [
"2024-01-01T00:00:00Z"
],
"format": "date-time",
"title": "Updatedat",
"type": "string"
}
},
"required": [
"createdAt",
"description",
"id",
"isActivityEnabled",
"name",
"order",
"thumbnailAssetId",
"updatedAt"
],
"title": "SyncAlbumV2",
"type": "object"
}
Config:
validate_by_name:Truevalidate_by_alias:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
created_at(datetime) -
description(StrictStr) -
id(UUID) -
is_activity_enabled(StrictBool) -
name(StrictStr) -
order(AssetOrder) -
thumbnail_asset_id(Optional[StrictStr]) -
updated_at(datetime)
Validators:
-
created_at_validate_regular_expression→created_at -
id_validate_regular_expression→id -
updated_at_validate_regular_expression→updated_at
created_at
pydantic-field
created_at: datetime
Created at
description
pydantic-field
description: StrictStr
Album description
id
pydantic-field
id: UUID
Album ID
is_activity_enabled
pydantic-field
is_activity_enabled: StrictBool
Is activity enabled
name
pydantic-field
name: StrictStr
Album name
thumbnail_asset_id
pydantic-field
thumbnail_asset_id: Optional[StrictStr]
Thumbnail asset ID
updated_at
pydantic-field
updated_at: datetime
Updated at
created_at_validate_regular_expression
pydantic-validator
created_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_album_v2.py
72 73 74 75 76 77 78 79 80 81 82 | |
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of SyncAlbumV2 from a dict
Source code in immichpy/client/generated/models/sync_album_v2.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of SyncAlbumV2 from a JSON string
Source code in immichpy/client/generated/models/sync_album_v2.py
123 124 125 126 | |
id_validate_regular_expression
pydantic-validator
id_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_album_v2.py
84 85 86 87 88 89 90 91 92 93 94 | |
to_dict
to_dict() -> Dict[str, Any]
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
self.model_dump(by_alias=True):
Noneis only added to the output dict for nullable fields that were set at model initialization. Other fields with valueNoneare ignored.
Source code in immichpy/client/generated/models/sync_album_v2.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/sync_album_v2.py
119 120 121 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/sync_album_v2.py
115 116 117 | |
updated_at_validate_regular_expression
pydantic-validator
updated_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_album_v2.py
96 97 98 99 100 101 102 103 104 105 106 | |