Asset File Response Dto
immichpy.client.generated.models.asset_file_response_dto.AssetFileResponseDto
pydantic-model
Bases: BaseModel
AssetFileResponseDto
Show JSON schema:
{
"$defs": {
"AssetFileType": {
"description": "Type of file",
"enum": [
"fullsize",
"preview",
"thumbnail",
"sidecar",
"encoded_video"
],
"title": "AssetFileType",
"type": "string"
}
},
"description": "AssetFileResponseDto",
"properties": {
"createdAt": {
"description": "Creation date",
"examples": [
"2024-01-01T00:00:00Z"
],
"format": "date-time",
"title": "Createdat",
"type": "string"
},
"id": {
"description": "Asset file ID",
"format": "uuid",
"title": "Id",
"type": "string"
},
"isEdited": {
"description": "The file was generated from an edit",
"title": "Isedited",
"type": "boolean"
},
"isProgressive": {
"description": "The file is a progressively encoded JPEG",
"title": "Isprogressive",
"type": "boolean"
},
"isTransparent": {
"description": "The file is transparent",
"title": "Istransparent",
"type": "boolean"
},
"path": {
"description": "File path",
"title": "Path",
"type": "string"
},
"type": {
"$ref": "#/$defs/AssetFileType"
},
"updatedAt": {
"description": "Update date",
"examples": [
"2024-01-01T00:00:00Z"
],
"format": "date-time",
"title": "Updatedat",
"type": "string"
}
},
"required": [
"createdAt",
"id",
"isEdited",
"isProgressive",
"isTransparent",
"path",
"type",
"updatedAt"
],
"title": "AssetFileResponseDto",
"type": "object"
}
Config:
validate_by_name:Truevalidate_by_alias:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
created_at(datetime) -
id(UUID) -
is_edited(StrictBool) -
is_progressive(StrictBool) -
is_transparent(StrictBool) -
path(StrictStr) -
type(AssetFileType) -
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
Creation date
id
pydantic-field
id: UUID
Asset file ID
is_edited
pydantic-field
is_edited: StrictBool
The file was generated from an edit
is_progressive
pydantic-field
is_progressive: StrictBool
The file is a progressively encoded JPEG
is_transparent
pydantic-field
is_transparent: StrictBool
The file is transparent
path
pydantic-field
path: StrictStr
File path
updated_at
pydantic-field
updated_at: datetime
Update date
created_at_validate_regular_expression
pydantic-validator
created_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/asset_file_response_dto.py
74 75 76 77 78 79 80 81 82 83 84 | |
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of AssetFileResponseDto from a dict
Source code in immichpy/client/generated/models/asset_file_response_dto.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of AssetFileResponseDto from a JSON string
Source code in immichpy/client/generated/models/asset_file_response_dto.py
125 126 127 128 | |
id_validate_regular_expression
pydantic-validator
id_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/asset_file_response_dto.py
86 87 88 89 90 91 92 93 94 95 96 | |
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/asset_file_response_dto.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/asset_file_response_dto.py
121 122 123 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/asset_file_response_dto.py
117 118 119 | |
updated_at_validate_regular_expression
pydantic-validator
updated_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/asset_file_response_dto.py
98 99 100 101 102 103 104 105 106 107 108 | |