User Preferences Response Dto
immichpy.client.generated.models.user_preferences_response_dto.UserPreferencesResponseDto
pydantic-model
Bases: BaseModel
UserPreferencesResponseDto
Show JSON schema:
{
"$defs": {
"AlbumsResponse": {
"description": "AlbumsResponse",
"properties": {
"defaultAssetOrder": {
"$ref": "#/$defs/AssetOrder",
"description": "Default asset order for albums"
}
},
"required": [
"defaultAssetOrder"
],
"title": "AlbumsResponse",
"type": "object"
},
"AssetOrder": {
"description": "Asset sort order",
"enum": [
"asc",
"desc"
],
"title": "AssetOrder",
"type": "string"
},
"CastResponse": {
"description": "CastResponse",
"properties": {
"gCastEnabled": {
"description": "Whether Google Cast is enabled",
"title": "Gcastenabled",
"type": "boolean"
}
},
"required": [
"gCastEnabled"
],
"title": "CastResponse",
"type": "object"
},
"DownloadResponse": {
"description": "DownloadResponse",
"properties": {
"archiveSize": {
"description": "Maximum archive size in bytes",
"title": "Archivesize",
"type": "integer"
},
"includeEmbeddedVideos": {
"description": "Whether to include embedded videos in downloads",
"title": "Includeembeddedvideos",
"type": "boolean"
}
},
"required": [
"archiveSize",
"includeEmbeddedVideos"
],
"title": "DownloadResponse",
"type": "object"
},
"EmailNotificationsResponse": {
"description": "EmailNotificationsResponse",
"properties": {
"albumInvite": {
"description": "Whether to receive email notifications for album invites",
"title": "Albuminvite",
"type": "boolean"
},
"albumUpdate": {
"description": "Whether to receive email notifications for album updates",
"title": "Albumupdate",
"type": "boolean"
},
"enabled": {
"description": "Whether email notifications are enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"albumInvite",
"albumUpdate",
"enabled"
],
"title": "EmailNotificationsResponse",
"type": "object"
},
"FoldersResponse": {
"description": "FoldersResponse",
"properties": {
"enabled": {
"description": "Whether folders are enabled",
"title": "Enabled",
"type": "boolean"
},
"sidebarWeb": {
"description": "Whether folders appear in web sidebar",
"title": "Sidebarweb",
"type": "boolean"
}
},
"required": [
"enabled",
"sidebarWeb"
],
"title": "FoldersResponse",
"type": "object"
},
"MemoriesResponse": {
"description": "MemoriesResponse",
"properties": {
"duration": {
"description": "Memory duration in seconds",
"title": "Duration",
"type": "integer"
},
"enabled": {
"description": "Whether memories are enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"duration",
"enabled"
],
"title": "MemoriesResponse",
"type": "object"
},
"PeopleResponse": {
"description": "PeopleResponse",
"properties": {
"enabled": {
"description": "Whether people are enabled",
"title": "Enabled",
"type": "boolean"
},
"sidebarWeb": {
"description": "Whether people appear in web sidebar",
"title": "Sidebarweb",
"type": "boolean"
}
},
"required": [
"enabled",
"sidebarWeb"
],
"title": "PeopleResponse",
"type": "object"
},
"PurchaseResponse": {
"description": "PurchaseResponse",
"properties": {
"hideBuyButtonUntil": {
"description": "Date until which to hide buy button",
"title": "Hidebuybuttonuntil",
"type": "string"
},
"showSupportBadge": {
"description": "Whether to show support badge",
"title": "Showsupportbadge",
"type": "boolean"
}
},
"required": [
"hideBuyButtonUntil",
"showSupportBadge"
],
"title": "PurchaseResponse",
"type": "object"
},
"RatingsResponse": {
"description": "RatingsResponse",
"properties": {
"enabled": {
"description": "Whether ratings are enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "RatingsResponse",
"type": "object"
},
"SharedLinksResponse": {
"description": "SharedLinksResponse",
"properties": {
"enabled": {
"description": "Whether shared links are enabled",
"title": "Enabled",
"type": "boolean"
},
"sidebarWeb": {
"description": "Whether shared links appear in web sidebar",
"title": "Sidebarweb",
"type": "boolean"
}
},
"required": [
"enabled",
"sidebarWeb"
],
"title": "SharedLinksResponse",
"type": "object"
},
"TagsResponse": {
"description": "TagsResponse",
"properties": {
"enabled": {
"description": "Whether tags are enabled",
"title": "Enabled",
"type": "boolean"
},
"sidebarWeb": {
"description": "Whether tags appear in web sidebar",
"title": "Sidebarweb",
"type": "boolean"
}
},
"required": [
"enabled",
"sidebarWeb"
],
"title": "TagsResponse",
"type": "object"
}
},
"description": "UserPreferencesResponseDto",
"properties": {
"albums": {
"$ref": "#/$defs/AlbumsResponse"
},
"cast": {
"$ref": "#/$defs/CastResponse"
},
"download": {
"$ref": "#/$defs/DownloadResponse"
},
"emailNotifications": {
"$ref": "#/$defs/EmailNotificationsResponse"
},
"folders": {
"$ref": "#/$defs/FoldersResponse"
},
"memories": {
"$ref": "#/$defs/MemoriesResponse"
},
"people": {
"$ref": "#/$defs/PeopleResponse"
},
"purchase": {
"$ref": "#/$defs/PurchaseResponse"
},
"ratings": {
"$ref": "#/$defs/RatingsResponse"
},
"sharedLinks": {
"$ref": "#/$defs/SharedLinksResponse"
},
"tags": {
"$ref": "#/$defs/TagsResponse"
}
},
"required": [
"albums",
"cast",
"download",
"emailNotifications",
"folders",
"memories",
"people",
"purchase",
"ratings",
"sharedLinks",
"tags"
],
"title": "UserPreferencesResponseDto",
"type": "object"
}
Config:
populate_by_name:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
albums(AlbumsResponse) -
cast(CastResponse) -
download(DownloadResponse) -
email_notifications(EmailNotificationsResponse) -
folders(FoldersResponse) -
memories(MemoriesResponse) -
people(PeopleResponse) -
purchase(PurchaseResponse) -
ratings(RatingsResponse) -
shared_links(SharedLinksResponse) -
tags(TagsResponse)
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of UserPreferencesResponseDto from a dict
Source code in immichpy/client/generated/models/user_preferences_response_dto.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 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 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of UserPreferencesResponseDto from a JSON string
Source code in immichpy/client/generated/models/user_preferences_response_dto.py
83 84 85 86 | |
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/user_preferences_response_dto.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/user_preferences_response_dto.py
78 79 80 81 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/user_preferences_response_dto.py
74 75 76 | |