Asset Edit Action Item Dto Parameters
immichpy.client.generated.models.asset_edit_action_item_dto_parameters.AssetEditActionItemDtoParameters
pydantic-model
AssetEditActionItemDtoParameters(*args, **kwargs)
Bases: BaseModel
List of edit actions to apply (crop, rotate, or mirror)
Show JSON schema:
{
"$defs": {
"CropParameters": {
"description": "CropParameters",
"properties": {
"height": {
"description": "Height of the crop",
"maximum": 9007199254740991,
"minimum": 1,
"title": "Height",
"type": "integer"
},
"width": {
"description": "Width of the crop",
"maximum": 9007199254740991,
"minimum": 1,
"title": "Width",
"type": "integer"
},
"x": {
"description": "Top-Left X coordinate of crop",
"maximum": 9007199254740991,
"minimum": 0,
"title": "X",
"type": "integer"
},
"y": {
"description": "Top-Left Y coordinate of crop",
"maximum": 9007199254740991,
"minimum": 0,
"title": "Y",
"type": "integer"
}
},
"required": [
"height",
"width",
"x",
"y"
],
"title": "CropParameters",
"type": "object"
},
"MirrorAxis": {
"description": "Axis to mirror along",
"enum": [
"horizontal",
"vertical"
],
"title": "MirrorAxis",
"type": "string"
},
"MirrorParameters": {
"description": "MirrorParameters",
"properties": {
"axis": {
"$ref": "#/$defs/MirrorAxis"
}
},
"required": [
"axis"
],
"title": "MirrorParameters",
"type": "object"
},
"RotateParameters": {
"description": "RotateParameters",
"properties": {
"angle": {
"description": "Rotation angle in degrees",
"maximum": 270,
"minimum": 0,
"title": "Angle",
"type": "integer"
}
},
"required": [
"angle"
],
"title": "RotateParameters",
"type": "object"
}
},
"description": "List of edit actions to apply (crop, rotate, or mirror)",
"properties": {
"anyof_schema_1_validator": {
"anyOf": [
{
"$ref": "#/$defs/CropParameters"
},
{
"type": "null"
}
],
"default": null
},
"anyof_schema_2_validator": {
"anyOf": [
{
"$ref": "#/$defs/RotateParameters"
},
{
"type": "null"
}
],
"default": null
},
"anyof_schema_3_validator": {
"anyOf": [
{
"$ref": "#/$defs/MirrorParameters"
},
{
"type": "null"
}
],
"default": null
},
"actual_instance": {
"default": null,
"title": "Actual Instance"
},
"any_of_schemas": {
"default": [
"CropParameters",
"MirrorParameters",
"RotateParameters"
],
"items": {
"type": "string"
},
"title": "Any Of Schemas",
"type": "array",
"uniqueItems": true
}
},
"title": "AssetEditActionItemDtoParameters",
"type": "object"
}
Config:
default:{'validate_assignment': True, 'protected_namespaces': ()}
Fields:
-
anyof_schema_1_validator(Optional[CropParameters]) -
anyof_schema_2_validator(Optional[RotateParameters]) -
anyof_schema_3_validator(Optional[MirrorParameters]) -
actual_instance(Optional[Union[CropParameters, MirrorParameters, RotateParameters]]) -
any_of_schemas(Set[str])
Validators:
-
_from_raw -
actual_instance_must_validate_anyof→actual_instance
Source code in immichpy/client/generated/models/asset_edit_action_item_dto_parameters.py
82 83 84 85 86 87 88 89 90 91 92 93 94 | |
from_json
classmethod
from_json(json_str: str) -> Self
Returns the object represented by the json string
Source code in immichpy/client/generated/models/asset_edit_action_item_dto_parameters.py
137 138 139 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 | |
to_dict
to_dict() -> Optional[Union[Dict[str, Any], CropParameters, MirrorParameters, RotateParameters]]
Returns the dict representation of the actual instance
Source code in immichpy/client/generated/models/asset_edit_action_item_dto_parameters.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |
to_json
to_json() -> str
Returns the JSON representation of the actual instance
Source code in immichpy/client/generated/models/asset_edit_action_item_dto_parameters.py
170 171 172 173 174 175 176 177 178 179 180 | |
to_str
to_str() -> str
Returns the string representation of the actual instance
Source code in immichpy/client/generated/models/asset_edit_action_item_dto_parameters.py
198 199 200 | |