GafaelfawrServiceTokenSpec#

pydantic model gafaelfawr.models.kubernetes.GafaelfawrServiceTokenSpec#

Holds the spec section of a GafaelfawrServiceToken resource.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "GafaelfawrServiceTokenSpec",
   "description": "Holds the ``spec`` section of a ``GafaelfawrServiceToken`` resource.",
   "type": "object",
   "properties": {
      "service": {
         "title": "Service",
         "type": "string"
      },
      "scopes": {
         "items": {
            "type": "string"
         },
         "title": "Scopes",
         "type": "array"
      }
   },
   "required": [
      "service",
      "scopes"
   ]
}

Fields:
field scopes: list[str] [Required]#

The scopes to grant to the service token.

field service: str [Required]#

The username of the service token.

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

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

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