Quota

pydantic model gafaelfawr.models.userinfo.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