Intervals#

pydantic model nublado.purger.models.v1.policy.Intervals#

Intervals specify how long it must have been since a filesystem object was accessed, created, or modified before that object will be considered for purging. A value of None (or a zero TimeDelta) means the object will not be considered for purging on the given grounds.

Parameters:

data (Any)

Show JSON schema
{
   "title": "Intervals",
   "description": "Intervals specify how long it must have been since a filesystem object\nwas accessed, created, or modified before that object will be considered\nfor purging.  A value of None (or a zero TimeDelta) means the object will\nnot be considered for purging on the given grounds.",
   "type": "object",
   "properties": {
      "accessInterval": {
         "anyOf": [
            {
               "$ref": "#/$defs/HumanTimedelta"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Maximum time since last file access"
      },
      "creationInterval": {
         "anyOf": [
            {
               "$ref": "#/$defs/HumanTimedelta"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Maximum time since file creation"
      },
      "modificationInterval": {
         "anyOf": [
            {
               "$ref": "#/$defs/HumanTimedelta"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Maximum time since file modification"
      }
   },
   "$defs": {
      "HumanTimedelta": {
         "format": "duration",
         "type": "string"
      }
   }
}

Fields:
field accessInterval: Annotated[Optional[TypeAliasType]] = None (name 'access_interval')#
field creationInterval: Annotated[Optional[TypeAliasType]] = None (name 'creation_interval')#
field modificationInterval: Annotated[Optional[TypeAliasType]] = None (name 'modification_interval')#
to_dict()#
Return type:

dict[str, int]