Release Event V1
immichpy.client.generated.models.release_event_v1.ReleaseEventV1
pydantic-model
Bases: BaseModel
ReleaseEventV1
Show JSON schema:
{
"$defs": {
"ReleaseType": {
"description": "ReleaseType",
"enum": [
"major",
"premajor",
"minor",
"preminor",
"patch",
"prepatch",
"prerelease"
],
"title": "ReleaseType",
"type": "string"
},
"ServerVersionResponseDto": {
"description": "ServerVersionResponseDto",
"properties": {
"major": {
"description": "Major version number",
"maximum": 9007199254740991,
"minimum": 0,
"title": "Major",
"type": "integer"
},
"minor": {
"description": "Minor version number",
"maximum": 9007199254740991,
"minimum": 0,
"title": "Minor",
"type": "integer"
},
"patch": {
"description": "Patch version number",
"maximum": 9007199254740991,
"minimum": 0,
"title": "Patch",
"type": "integer"
},
"prerelease": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"description": "Pre-release version number",
"title": "Prerelease"
}
},
"required": [
"major",
"minor",
"patch",
"prerelease"
],
"title": "ServerVersionResponseDto",
"type": "object"
}
},
"description": "ReleaseEventV1",
"properties": {
"checkedAt": {
"description": "When the server last checked for a latest version. As an ISO timestamp",
"title": "Checkedat",
"type": "string"
},
"isAvailable": {
"description": "Whether a new version is available",
"title": "Isavailable",
"type": "boolean"
},
"releaseVersion": {
"$ref": "#/$defs/ServerVersionResponseDto"
},
"serverVersion": {
"$ref": "#/$defs/ServerVersionResponseDto"
},
"type": {
"$ref": "#/$defs/ReleaseType"
}
},
"required": [
"checkedAt",
"isAvailable",
"releaseVersion",
"serverVersion",
"type"
],
"title": "ReleaseEventV1",
"type": "object"
}
Config:
validate_by_name:Truevalidate_by_alias:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
checked_at(StrictStr) -
is_available(StrictBool) -
release_version(ServerVersionResponseDto) -
server_version(ServerVersionResponseDto) -
type(ReleaseType)
checked_at
pydantic-field
checked_at: StrictStr
When the server last checked for a latest version. As an ISO timestamp
is_available
pydantic-field
is_available: StrictBool
Whether a new version is available
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of ReleaseEventV1 from a dict
Source code in immichpy/client/generated/models/release_event_v1.py
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 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of ReleaseEventV1 from a JSON string
Source code in immichpy/client/generated/models/release_event_v1.py
68 69 70 71 | |
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/release_event_v1.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/release_event_v1.py
64 65 66 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/release_event_v1.py
60 61 62 | |