Sync Asset V2
immichpy.client.generated.models.sync_asset_v2.SyncAssetV2
pydantic-model
Bases: BaseModel
SyncAssetV2
Show JSON schema:
{
"$defs": {
"AssetTypeEnum": {
"description": "Asset type",
"enum": [
"IMAGE",
"VIDEO",
"AUDIO",
"OTHER"
],
"title": "AssetTypeEnum",
"type": "string"
},
"AssetVisibility": {
"description": "Asset visibility",
"enum": [
"archive",
"timeline",
"hidden",
"locked"
],
"title": "AssetVisibility",
"type": "string"
}
},
"description": "SyncAssetV2",
"properties": {
"checksum": {
"description": "Checksum",
"title": "Checksum",
"type": "string"
},
"createdAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "Uploaded to Immich at",
"examples": [
"2024-01-01T00:00:00Z"
],
"title": "Createdat"
},
"deletedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "Deleted at",
"examples": [
"2024-01-01T00:00:00Z"
],
"title": "Deletedat"
},
"duration": {
"anyOf": [
{
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"description": "Duration",
"title": "Duration"
},
"fileCreatedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "File created at",
"examples": [
"2024-01-01T00:00:00Z"
],
"title": "Filecreatedat"
},
"fileModifiedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "File modified at",
"examples": [
"2024-01-01T00:00:00Z"
],
"title": "Filemodifiedat"
},
"height": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
{
"type": "null"
}
],
"description": "Asset height",
"title": "Height"
},
"id": {
"description": "Asset ID",
"format": "uuid",
"title": "Id",
"type": "string"
},
"isEdited": {
"description": "Is edited",
"title": "Isedited",
"type": "boolean"
},
"isFavorite": {
"description": "Is favorite",
"title": "Isfavorite",
"type": "boolean"
},
"libraryId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Library ID",
"title": "Libraryid"
},
"livePhotoVideoId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Live photo video ID",
"title": "Livephotovideoid"
},
"localDateTime": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "Local date time",
"examples": [
"2024-01-01T00:00:00Z"
],
"title": "Localdatetime"
},
"originalFileName": {
"description": "Original file name",
"title": "Originalfilename",
"type": "string"
},
"ownerId": {
"description": "Owner ID",
"format": "uuid",
"title": "Ownerid",
"type": "string"
},
"stackId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Stack ID",
"title": "Stackid"
},
"thumbhash": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Thumbhash",
"title": "Thumbhash"
},
"type": {
"$ref": "#/$defs/AssetTypeEnum"
},
"visibility": {
"$ref": "#/$defs/AssetVisibility"
},
"width": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
{
"type": "null"
}
],
"description": "Asset width",
"title": "Width"
}
},
"required": [
"checksum",
"createdAt",
"deletedAt",
"duration",
"fileCreatedAt",
"fileModifiedAt",
"height",
"id",
"isEdited",
"isFavorite",
"libraryId",
"livePhotoVideoId",
"localDateTime",
"originalFileName",
"ownerId",
"stackId",
"thumbhash",
"type",
"visibility",
"width"
],
"title": "SyncAssetV2",
"type": "object"
}
Config:
validate_by_name:Truevalidate_by_alias:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
checksum(StrictStr) -
created_at(Optional[datetime]) -
deleted_at(Optional[datetime]) -
duration(Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]]) -
file_created_at(Optional[datetime]) -
file_modified_at(Optional[datetime]) -
height(Optional[Annotated[int, Field(le=9007199254740991, strict=True, ge=-9007199254740991)]]) -
id(UUID) -
is_edited(StrictBool) -
is_favorite(StrictBool) -
library_id(Optional[StrictStr]) -
live_photo_video_id(Optional[StrictStr]) -
local_date_time(Optional[datetime]) -
original_file_name(StrictStr) -
owner_id(UUID) -
stack_id(Optional[StrictStr]) -
thumbhash(Optional[StrictStr]) -
type(AssetTypeEnum) -
visibility(AssetVisibility) -
width(Optional[Annotated[int, Field(le=9007199254740991, strict=True, ge=-9007199254740991)]])
Validators:
-
created_at_validate_regular_expression→created_at -
deleted_at_validate_regular_expression→deleted_at -
file_created_at_validate_regular_expression→file_created_at -
file_modified_at_validate_regular_expression→file_modified_at -
id_validate_regular_expression→id -
local_date_time_validate_regular_expression→local_date_time -
owner_id_validate_regular_expression→owner_id
checksum
pydantic-field
checksum: StrictStr
Checksum
created_at
pydantic-field
created_at: Optional[datetime]
Uploaded to Immich at
deleted_at
pydantic-field
deleted_at: Optional[datetime]
Deleted at
duration
pydantic-field
duration: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]]
Duration
file_created_at
pydantic-field
file_created_at: Optional[datetime]
File created at
file_modified_at
pydantic-field
file_modified_at: Optional[datetime]
File modified at
height
pydantic-field
height: Optional[Annotated[int, Field(le=9007199254740991, strict=True, ge=-9007199254740991)]]
Asset height
id
pydantic-field
id: UUID
Asset ID
is_edited
pydantic-field
is_edited: StrictBool
Is edited
is_favorite
pydantic-field
is_favorite: StrictBool
Is favorite
library_id
pydantic-field
library_id: Optional[StrictStr]
Library ID
live_photo_video_id
pydantic-field
live_photo_video_id: Optional[StrictStr]
Live photo video ID
local_date_time
pydantic-field
local_date_time: Optional[datetime]
Local date time
original_file_name
pydantic-field
original_file_name: StrictStr
Original file name
owner_id
pydantic-field
owner_id: UUID
Owner ID
stack_id
pydantic-field
stack_id: Optional[StrictStr]
Stack ID
thumbhash
pydantic-field
thumbhash: Optional[StrictStr]
Thumbhash
width
pydantic-field
width: Optional[Annotated[int, Field(le=9007199254740991, strict=True, ge=-9007199254740991)]]
Asset width
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_asset_v2.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
deleted_at_validate_regular_expression
pydantic-validator
deleted_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_asset_v2.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
file_created_at_validate_regular_expression
pydantic-validator
file_created_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_asset_v2.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
file_modified_at_validate_regular_expression
pydantic-validator
file_modified_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_asset_v2.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of SyncAssetV2 from a dict
Source code in immichpy/client/generated/models/sync_asset_v2.py
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of SyncAssetV2 from a JSON string
Source code in immichpy/client/generated/models/sync_asset_v2.py
230 231 232 233 | |
id_validate_regular_expression
pydantic-validator
id_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_asset_v2.py
176 177 178 179 180 181 182 183 184 185 186 | |
local_date_time_validate_regular_expression
pydantic-validator
local_date_time_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_asset_v2.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |
owner_id_validate_regular_expression
pydantic-validator
owner_id_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/sync_asset_v2.py
203 204 205 206 207 208 209 210 211 212 213 | |
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_asset_v2.py
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/sync_asset_v2.py
226 227 228 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/sync_asset_v2.py
222 223 224 | |