GafaelfawrServiceTokenSpec#
- pydantic model gafaelfawr.models.kubernetes.GafaelfawrServiceTokenSpec#
Holds the
spec
section of aGafaelfawrServiceToken
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.