Create Profile Image Response Dto
immichpy.client.generated.models.create_profile_image_response_dto.CreateProfileImageResponseDto
pydantic-model
Bases: BaseModel
CreateProfileImageResponseDto
Show JSON schema:
{
"description": "CreateProfileImageResponseDto",
"properties": {
"profileChangedAt": {
"description": "Profile image change date",
"examples": [
"2024-01-01T00:00:00Z"
],
"format": "date-time",
"title": "Profilechangedat",
"type": "string"
},
"profileImagePath": {
"description": "Profile image file path",
"title": "Profileimagepath",
"type": "string"
},
"userId": {
"description": "User ID",
"format": "uuid",
"title": "Userid",
"type": "string"
}
},
"required": [
"profileChangedAt",
"profileImagePath",
"userId"
],
"title": "CreateProfileImageResponseDto",
"type": "object"
}
Config:
validate_by_name:Truevalidate_by_alias:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
profile_changed_at(datetime) -
profile_image_path(StrictStr) -
user_id(UUID)
Validators:
-
profile_changed_at_validate_regular_expression→profile_changed_at -
user_id_validate_regular_expression→user_id
profile_changed_at
pydantic-field
profile_changed_at: datetime
Profile image change date
profile_image_path
pydantic-field
profile_image_path: StrictStr
Profile image file path
user_id
pydantic-field
user_id: UUID
User ID
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of CreateProfileImageResponseDto from a dict
Source code in immichpy/client/generated/models/create_profile_image_response_dto.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of CreateProfileImageResponseDto from a JSON string
Source code in immichpy/client/generated/models/create_profile_image_response_dto.py
87 88 89 90 | |
profile_changed_at_validate_regular_expression
pydantic-validator
profile_changed_at_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/create_profile_image_response_dto.py
48 49 50 51 52 53 54 55 56 57 58 | |
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/create_profile_image_response_dto.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/create_profile_image_response_dto.py
83 84 85 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/create_profile_image_response_dto.py
79 80 81 | |
user_id_validate_regular_expression
pydantic-validator
user_id_validate_regular_expression(value)
Validates the regular expression
Source code in immichpy/client/generated/models/create_profile_image_response_dto.py
60 61 62 63 64 65 66 67 68 69 70 | |