Skip to main content
Version: 2025.10

PersonalAccessToken

Description: Class representing a personal access token object. This class is used to store information about personal access tokens, such as the token ID and the token name. Attributes ———- machine_user_id (str): The machine user ID. token (str): The token. token_id (str): The token ID. name (str): The token name. user_type (enum): The type of the user whose permissions the token grants. created_by_id (UUID): The user mapping ID of the user who created the token.

Attributes

NameTypeDescription
idStrictStr
createddatetime.datetime
machine_user_idStrictStr
tokenStrictStr
token_idStrictStr
nameStrictStr
user_typePersonalAccessTokenUserType
created_by_idStrictStr

Methods

NameDescription
to_strReturn the string representation of the model using field aliases.
to_jsonReturn the JSON string representation of the model using field aliases.
from_jsonCreate an instance of the model from a JSON string.
to_dictReturn the dictionary representation of the model using field aliases.
from_dictCreate an instance of PersonalAccessToken from a dict