Quota#

pydantic model gafaelfawr.models.token.Quota#

Quota information for a user.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "Quota",
   "description": "Quota information for a user.",
   "type": "object",
   "properties": {
      "api": {
         "additionalProperties": {
            "type": "integer"
         },
         "default": {},
         "description": "Mapping of service names to allowed requests per 15 minutes.",
         "examples": [
            {
               "datalinker": 500,
               "hips": 2000,
               "tap": 500,
               "vo-cutouts": 100
            }
         ],
         "title": "API quotas",
         "type": "object"
      },
      "notebook": {
         "anyOf": [
            {
               "$ref": "#/$defs/NotebookQuota"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Notebook Aspect quotas"
      }
   },
   "$defs": {
      "NotebookQuota": {
         "description": "Notebook Aspect quota information for a user.",
         "properties": {
            "cpu": {
               "examples": [
                  4.0
               ],
               "title": "CPU equivalents",
               "type": "number"
            },
            "memory": {
               "examples": [
                  16.0
               ],
               "title": "Maximum memory use (GiB)",
               "type": "number"
            }
         },
         "required": [
            "cpu",
            "memory"
         ],
         "title": "NotebookQuota",
         "type": "object"
      }
   }
}

Fields:
field api: dict[str, int] = {}#

Mapping of service names to allowed requests per 15 minutes.

field notebook: NotebookQuota | None = None#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.