QuotaGrantSettings#

pydantic model gafaelfawr.config.QuotaGrantSettings#

One grant of quotas.

There may be one of these per group, as well as a default one, in the overall quota configuration.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "QuotaGrantSettings",
   "description": "One grant of quotas.\n\nThere may be one of these per group, as well as a default one, in the\noverall quota configuration.",
   "type": "object",
   "properties": {
      "api": {
         "additionalProperties": {
            "type": "integer"
         },
         "default": {},
         "description": "Mapping of service names to quota of requests per 15 minutes",
         "title": "Service quotas",
         "type": "object"
      },
      "notebook": {
         "anyOf": [
            {
               "$ref": "#/$defs/NotebookQuotaSettings"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "NotebookQuotaSettings": {
         "description": "Quota settings for the Notebook Aspect.",
         "properties": {
            "cpu": {
               "title": "Cpu",
               "type": "number"
            },
            "memory": {
               "title": "Memory",
               "type": "number"
            }
         },
         "required": [
            "cpu",
            "memory"
         ],
         "title": "NotebookQuotaSettings",
         "type": "object"
      }
   }
}

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

Mapping of service names to quota of requests per 15 minutes

field notebook: NotebookQuotaSettings | None = None#

Quota settings for the Notebook Aspect.

model_dump(**kwargs)#

Export the model as a dictionary.

Overridden to change the default of by_alias from False to True, so that by default the exported dictionary uses camel-case.

Parameters:

kwargs (Any) –

Return type:

dict[str, Any]

model_dump_json(**kwargs)#

Export the model as JSON.

Overridden to change the default of by_alias from False to True, so that by default the exported dictionary uses camel-case.

Parameters:

kwargs (Any) –

Return type:

str