Skip to content

Server About Response Dto

immichpy.client.generated.models.server_about_response_dto.ServerAboutResponseDto pydantic-model

Bases: BaseModel

ServerAboutResponseDto

Show JSON schema:
{
  "description": "ServerAboutResponseDto",
  "properties": {
    "build": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Build identifier",
      "title": "Build"
    },
    "buildImage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Build image name",
      "title": "Buildimage"
    },
    "buildImageUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Build image URL",
      "title": "Buildimageurl"
    },
    "buildUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Build URL",
      "title": "Buildurl"
    },
    "exiftool": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ExifTool version",
      "title": "Exiftool"
    },
    "ffmpeg": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "FFmpeg version",
      "title": "Ffmpeg"
    },
    "imagemagick": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ImageMagick version",
      "title": "Imagemagick"
    },
    "libvips": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "libvips version",
      "title": "Libvips"
    },
    "licensed": {
      "description": "Whether the server is licensed",
      "title": "Licensed",
      "type": "boolean"
    },
    "nodejs": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Node.js version",
      "title": "Nodejs"
    },
    "repository": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Repository name",
      "title": "Repository"
    },
    "repositoryUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Repository URL",
      "title": "Repositoryurl"
    },
    "sourceCommit": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Source commit hash",
      "title": "Sourcecommit"
    },
    "sourceRef": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Source reference (branch/tag)",
      "title": "Sourceref"
    },
    "sourceUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Source URL",
      "title": "Sourceurl"
    },
    "thirdPartyBugFeatureUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Third-party bug/feature URL",
      "title": "Thirdpartybugfeatureurl"
    },
    "thirdPartyDocumentationUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Third-party documentation URL",
      "title": "Thirdpartydocumentationurl"
    },
    "thirdPartySourceUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Third-party source URL",
      "title": "Thirdpartysourceurl"
    },
    "thirdPartySupportUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Third-party support URL",
      "title": "Thirdpartysupporturl"
    },
    "version": {
      "description": "Server version",
      "title": "Version",
      "type": "string"
    },
    "versionUrl": {
      "description": "URL to version information",
      "title": "Versionurl",
      "type": "string"
    }
  },
  "required": [
    "licensed",
    "version",
    "versionUrl"
  ],
  "title": "ServerAboutResponseDto",
  "type": "object"
}

Config:

  • populate_by_name: True
  • validate_assignment: True
  • protected_namespaces: ()

Fields:

build pydantic-field

build: Optional[StrictStr] = None

Build identifier

build_image pydantic-field

build_image: Optional[StrictStr] = None

Build image name

build_image_url pydantic-field

build_image_url: Optional[StrictStr] = None

Build image URL

build_url pydantic-field

build_url: Optional[StrictStr] = None

Build URL

exiftool pydantic-field

exiftool: Optional[StrictStr] = None

ExifTool version

ffmpeg pydantic-field

ffmpeg: Optional[StrictStr] = None

FFmpeg version

imagemagick pydantic-field

imagemagick: Optional[StrictStr] = None

ImageMagick version

libvips pydantic-field

libvips: Optional[StrictStr] = None

libvips version

licensed pydantic-field

licensed: StrictBool

Whether the server is licensed

nodejs pydantic-field

nodejs: Optional[StrictStr] = None

Node.js version

repository pydantic-field

repository: Optional[StrictStr] = None

Repository name

repository_url pydantic-field

repository_url: Optional[StrictStr] = None

Repository URL

source_commit pydantic-field

source_commit: Optional[StrictStr] = None

Source commit hash

source_ref pydantic-field

source_ref: Optional[StrictStr] = None

Source reference (branch/tag)

source_url pydantic-field

source_url: Optional[StrictStr] = None

Source URL

third_party_bug_feature_url pydantic-field

third_party_bug_feature_url: Optional[StrictStr] = None

Third-party bug/feature URL

third_party_documentation_url pydantic-field

third_party_documentation_url: Optional[StrictStr] = None

Third-party documentation URL

third_party_source_url pydantic-field

third_party_source_url: Optional[StrictStr] = None

Third-party source URL

third_party_support_url pydantic-field

third_party_support_url: Optional[StrictStr] = None

Third-party support URL

version pydantic-field

version: StrictStr

Server version

version_url pydantic-field

version_url: StrictStr

URL to version information

from_dict classmethod

from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]

Create an instance of ServerAboutResponseDto from a dict

Source code in immichpy/client/generated/models/server_about_response_dto.py
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
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
    """Create an instance of ServerAboutResponseDto from a dict"""
    if obj is None:
        return None

    if not isinstance(obj, dict):
        return cls.model_validate(obj)

    _obj = cls.model_validate(
        {
            "build": obj.get("build"),
            "buildImage": obj.get("buildImage"),
            "buildImageUrl": obj.get("buildImageUrl"),
            "buildUrl": obj.get("buildUrl"),
            "exiftool": obj.get("exiftool"),
            "ffmpeg": obj.get("ffmpeg"),
            "imagemagick": obj.get("imagemagick"),
            "libvips": obj.get("libvips"),
            "licensed": obj.get("licensed"),
            "nodejs": obj.get("nodejs"),
            "repository": obj.get("repository"),
            "repositoryUrl": obj.get("repositoryUrl"),
            "sourceCommit": obj.get("sourceCommit"),
            "sourceRef": obj.get("sourceRef"),
            "sourceUrl": obj.get("sourceUrl"),
            "thirdPartyBugFeatureUrl": obj.get("thirdPartyBugFeatureUrl"),
            "thirdPartyDocumentationUrl": obj.get("thirdPartyDocumentationUrl"),
            "thirdPartySourceUrl": obj.get("thirdPartySourceUrl"),
            "thirdPartySupportUrl": obj.get("thirdPartySupportUrl"),
            "version": obj.get("version"),
            "versionUrl": obj.get("versionUrl"),
        }
    )
    return _obj

from_json classmethod

from_json(json_str: str) -> Optional[Self]

Create an instance of ServerAboutResponseDto from a JSON string

Source code in immichpy/client/generated/models/server_about_response_dto.py
122
123
124
125
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
    """Create an instance of ServerAboutResponseDto from a JSON string"""
    return cls.from_dict(json.loads(json_str))

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):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
Source code in immichpy/client/generated/models/server_about_response_dto.py
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
def to_dict(self) -> 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)`:

    * `None` is only added to the output dict for nullable fields that
      were set at model initialization. Other fields with value `None`
      are ignored.
    """
    excluded_fields: Set[str] = set([])

    _dict = self.model_dump(
        by_alias=True,
        exclude=excluded_fields,
        exclude_none=True,
    )
    return _dict

to_json

to_json() -> str

Returns the JSON representation of the model using alias

Source code in immichpy/client/generated/models/server_about_response_dto.py
117
118
119
120
def to_json(self) -> str:
    """Returns the JSON representation of the model using alias"""
    # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
    return json.dumps(self.to_dict())

to_str

to_str() -> str

Returns the string representation of the model using alias

Source code in immichpy/client/generated/models/server_about_response_dto.py
113
114
115
def to_str(self) -> str:
    """Returns the string representation of the model using alias"""
    return pprint.pformat(self.model_dump(by_alias=True))