Album Response Dto
immichpy.client.generated.models.album_response_dto.AlbumResponseDto
pydantic-model
Bases: BaseModel
AlbumResponseDto
Show JSON schema:
{
"$defs": {
"AlbumUserResponseDto": {
"description": "AlbumUserResponseDto",
"properties": {
"role": {
"$ref": "#/$defs/AlbumUserRole"
},
"user": {
"$ref": "#/$defs/UserResponseDto"
}
},
"required": [
"role",
"user"
],
"title": "AlbumUserResponseDto",
"type": "object"
},
"AlbumUserRole": {
"description": "Album user role",
"enum": [
"editor",
"owner",
"viewer"
],
"title": "AlbumUserRole",
"type": "string"
},
"AssetOrder": {
"description": "Asset sort order",
"enum": [
"asc",
"desc"
],
"title": "AssetOrder",
"type": "string"
},
"ContributorCountResponseDto": {
"description": "ContributorCountResponseDto",
"properties": {
"assetCount": {
"description": "Number of assets contributed",
"maximum": 9007199254740991,
"minimum": 0,
"title": "Assetcount",
"type": "integer"
},
"userId": {
"description": "User ID",
"format": "uuid",
"title": "Userid",
"type": "string"
}
},
"required": [
"assetCount",
"userId"
],
"title": "ContributorCountResponseDto",
"type": "object"
},
"UserAvatarColor": {
"description": "User avatar color",
"enum": [
"primary",
"pink",
"red",
"yellow",
"blue",
"green",
"purple",
"orange",
"gray",
"amber"
],
"title": "UserAvatarColor",
"type": "string"
},
"UserResponseDto": {
"description": "UserResponseDto",
"properties": {
"avatarColor": {
"$ref": "#/$defs/UserAvatarColor"
},
"email": {
"description": "User email",
"title": "Email",
"type": "string"
},
"id": {
"description": "User ID",
"format": "uuid",
"title": "Id",
"type": "string"
},
"name": {
"description": "User name",
"title": "Name",
"type": "string"
},
"profileChangedAt": {
"description": "Profile change date",
"format": "date-time",
"title": "Profilechangedat",
"type": "string"
},
"profileImagePath": {
"description": "Profile image path",
"title": "Profileimagepath",
"type": "string"
}
},
"required": [
"avatarColor",
"email",
"id",
"name",
"profileChangedAt",
"profileImagePath"
],
"title": "UserResponseDto",
"type": "object"
}
},
"description": "AlbumResponseDto",
"properties": {
"albumName": {
"description": "Album name",
"title": "Albumname",
"type": "string"
},
"albumThumbnailAssetId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"description": "Thumbnail asset ID",
"title": "Albumthumbnailassetid"
},
"albumUsers": {
"description": "First entry is always the album owner. Second entry is the auth user, if it differs from the owner. The rest are ordered alphabetically.",
"items": {
"$ref": "#/$defs/AlbumUserResponseDto"
},
"minItems": 1,
"title": "Albumusers",
"type": "array"
},
"assetCount": {
"description": "Number of assets",
"maximum": 9007199254740991,
"minimum": 0,
"title": "Assetcount",
"type": "integer"
},
"contributorCounts": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/ContributorCountResponseDto"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Contributorcounts"
},
"createdAt": {
"description": "Creation date",
"format": "date-time",
"title": "Createdat",
"type": "string"
},
"description": {
"description": "Album description",
"title": "Description",
"type": "string"
},
"endDate": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "UTC representation of (local) end date (latest asset)",
"title": "Enddate"
},
"hasSharedLink": {
"description": "Has shared link",
"title": "Hassharedlink",
"type": "boolean"
},
"id": {
"description": "Album ID",
"format": "uuid",
"title": "Id",
"type": "string"
},
"isActivityEnabled": {
"description": "Activity feed enabled",
"title": "Isactivityenabled",
"type": "boolean"
},
"lastModifiedAssetTimestamp": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Last modified asset timestamp",
"title": "Lastmodifiedassettimestamp"
},
"order": {
"anyOf": [
{
"$ref": "#/$defs/AssetOrder"
},
{
"type": "null"
}
],
"default": null
},
"shared": {
"description": "Is shared album",
"title": "Shared",
"type": "boolean"
},
"startDate": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "UTC representation of (local) start date (earliest asset)",
"title": "Startdate"
},
"updatedAt": {
"description": "Last update date",
"format": "date-time",
"title": "Updatedat",
"type": "string"
}
},
"required": [
"albumName",
"albumThumbnailAssetId",
"albumUsers",
"assetCount",
"createdAt",
"description",
"hasSharedLink",
"id",
"isActivityEnabled",
"shared",
"updatedAt"
],
"title": "AlbumResponseDto",
"type": "object"
}
Config:
validate_by_name:Truevalidate_by_alias:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
album_name(StrictStr) -
album_thumbnail_asset_id(Optional[UUID]) -
album_users(Annotated[List[AlbumUserResponseDto], Field(min_length=1)]) -
asset_count(Annotated[int, Field(le=9007199254740991, strict=True, ge=0)]) -
contributor_counts(Optional[List[ContributorCountResponseDto]]) -
created_at(datetime) -
description(StrictStr) -
end_date(Optional[datetime]) -
has_shared_link(StrictBool) -
id(UUID) -
is_activity_enabled(StrictBool) -
last_modified_asset_timestamp(Optional[datetime]) -
order(Optional[AssetOrder]) -
shared(StrictBool) -
start_date(Optional[datetime]) -
updated_at(datetime)
Validators:
-
album_thumbnail_asset_id_validate_regular_expression→album_thumbnail_asset_id -
id_validate_regular_expression→id
album_name
pydantic-field
album_name: StrictStr
Album name
album_thumbnail_asset_id
pydantic-field
album_thumbnail_asset_id: Optional[UUID]
Thumbnail asset ID
album_users
pydantic-field
album_users: Annotated[List[AlbumUserResponseDto], Field(min_length=1)]
First entry is always the album owner. Second entry is the auth user, if it differs from the owner. The rest are ordered alphabetically.
asset_count
pydantic-field
asset_count: Annotated[int, Field(le=9007199254740991, strict=True, ge=0)]
Number of assets
created_at
pydantic-field
created_at: datetime
Creation date
description
pydantic-field
description: StrictStr
Album description
end_date
pydantic-field
end_date: Optional[datetime] = None
UTC representation of (local) end date (latest asset)
has_shared_link
pydantic-field
has_shared_link: StrictBool
Has shared link
id
pydantic-field
id: UUID
Album ID
is_activity_enabled
pydantic-field
is_activity_enabled: StrictBool
Activity feed enabled
last_modified_asset_timestamp
pydantic-field
last_modified_asset_timestamp: Optional[datetime] = None
Last modified asset timestamp
shared
pydantic-field
shared: StrictBool
Is shared album
start_date
pydantic-field
start_date: Optional[datetime] = None
UTC representation of (local) start date (earliest asset)
updated_at
pydantic-field
updated_at: datetime
Last update date
album_thumbnail_asset_id_validate_regular_expression
pydantic-validator
album_thumbnail_asset_id_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/album_response_dto.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of AlbumResponseDto from a dict
Source code in immichpy/client/generated/models/album_response_dto.py
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of AlbumResponseDto from a JSON string
Source code in immichpy/client/generated/models/album_response_dto.py
150 151 152 153 | |
id_validate_regular_expression
pydantic-validator
id_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/album_response_dto.py
123 124 125 126 127 128 129 130 131 132 133 | |
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/album_response_dto.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/album_response_dto.py
146 147 148 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/album_response_dto.py
142 143 144 | |