UserTokenRequest¶
- pydantic model gafaelfawr.models.token.UserTokenRequest¶
The parameters of a user token that are under the user’s control.
- Parameters:
data (
Any
)
Show JSON schema
{ "title": "UserTokenRequest", "description": "The parameters of a user token that are under the user's control.", "type": "object", "properties": { "token_name": { "examples": [ "laptop token" ], "maxLength": 64, "minLength": 1, "title": "User-given name of the token", "type": "string" }, "scopes": { "examples": [ [ "read:all" ] ], "items": { "type": "string" }, "title": "Token scope", "type": "array" }, "expires": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Expiration timestamp of the token in seconds since epoch", "examples": [ 1625986130 ], "title": "Expiration time" } }, "required": [ "token_name" ] }
- field expires: datetime | None = None¶
Expiration timestamp of the token in seconds since epoch
- field scopes: list[str] [Optional]¶
- field token_name: str [Required]¶
- Constraints:
min_length = 1
max_length = 64