ImageFilterPolicy#

pydantic model nublado.models.images.ImageFilterPolicy#

Configuration for display of RSP images.

Images in the “alias” category are always displayed; images in the “unknown” category are never displayed.

Parameters:

data (Any)

Show JSON schema
{
   "title": "ImageFilterPolicy",
   "description": "Configuration for display of RSP images.\n\nImages in the \"alias\" category are always displayed; images in the\n\"unknown\" category are never displayed.",
   "type": "object",
   "properties": {
      "release": {
         "$ref": "#/$defs/ImageFilter",
         "title": "Policy for releases"
      },
      "weekly": {
         "$ref": "#/$defs/ImageFilter",
         "title": "Policy for weekly builds"
      },
      "daily": {
         "$ref": "#/$defs/ImageFilter",
         "title": "Policy for daily builds"
      },
      "releaseCandidate": {
         "$ref": "#/$defs/ImageFilter",
         "title": "Policy for release candidates"
      },
      "experimental": {
         "$ref": "#/$defs/ImageFilter",
         "title": "Policy for experimental builds"
      }
   },
   "$defs": {
      "HumanTimedelta": {
         "format": "duration",
         "type": "string"
      },
      "ImageFilter": {
         "additionalProperties": false,
         "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.",
         "properties": {
            "number": {
               "anyOf": [
                  {
                     "minimum": 0,
                     "type": "integer"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Number of images to retain",
               "title": "Number"
            },
            "age": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/HumanTimedelta"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Maximum age of image to retain. Applies only to images based on weeklies or dailies and is based on the age of the weekly or daily, not on the age of the build.",
               "title": "Age"
            },
            "cutoffDate": {
               "anyOf": [
                  {
                     "format": "date-time",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Minimum date of image to display. Applies only to images based on weeklies or dailies. Weeklies are assumed to be built on Thursday.",
               "title": "Cutoff date"
            },
            "cutoffVersion": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Minimum version of image to display. Applies only to images based on releases or release candidates.",
               "title": "Cutoff version"
            }
         },
         "title": "ImageFilter",
         "type": "object"
      }
   },
   "additionalProperties": false
}

Fields:
field daily: ImageFilter [Optional]#
field experimental: ImageFilter [Optional]#
field release: ImageFilter [Optional]#
field releaseCandidate: ImageFilter [Optional] (name 'release_candidate')#
field weekly: ImageFilter [Optional]#
for_image_type(image_type)#
Parameters:

image_type (RSPImageType)

Return type:

Optional[ImageFilter]