ImageFilterPolicy¶
- pydantic model controller.models.domain.imagefilterpolicy.ImageFilterPolicy¶
Policy for images to display within a given category.
All specified policies will be applied. For instance, if the policy specifies both age and cutoff version, then an image will have to be newer than the specified age, and also have a version greater than or equal to the cutoff, in order to be displayed.
If no policies are specified, no filtering will be performed and all images of that category will be displayed.
- Parameters:
data (
Any
)
Show JSON schema
{ "title": "ImageFilterPolicy", "description": "Policy for images to display within a given category.\n\nAll specified policies will be applied. For instance, if the policy\nspecifies both age and cutoff version, then an image will have to be\nnewer than the specified age, and also have a version greater than or\nequal to the cutoff, in order to be displayed.\n\nIf no policies are specified, no filtering will be performed and all\nimages of that category will be displayed.", "type": "object", "properties": { "number": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "description": "Number of images to display.", "title": "Number" }, "age": { "anyOf": [ { "format": "duration", "type": "string" }, { "type": "null" } ], "default": null, "description": "Maximum age of image to display.", "title": "Age" }, "cutoffVersion": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Minimum version of image to display. This does not apply to unparseable tags or to experimental tags not derived from a parseable tag.", "title": "Cutoff Version" } }, "additionalProperties": false }
-
field cutoffVersion:
Annotated
[str
|None
] = None (name 'cutoff_version')¶ Minimum version of image to display. This does not apply to unparseable tags or to experimental tags not derived from a parseable tag.
- Constraints:
func = <function ImageFilterPolicy.<lambda> at 0x7f234bcabba0>
json_schema_input_type = PydanticUndefined