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
| Name | Type | Description |
|---|
| id | StrictStr | |
| created | datetime.datetime | |
| machine_user_id | StrictStr | |
| token | StrictStr | |
| token_id | StrictStr | |
| name | StrictStr | |
| user_type | PersonalAccessTokenUserType | |
| created_by_id | StrictStr | |
Methods
| Name | Description |
|---|
| to_str | Return the string representation of the model using field aliases. |
| to_json | Return the JSON string representation of the model using field aliases. |
| from_json | Create an instance of the model from a JSON string. |
| to_dict | Return the dictionary representation of the model using field aliases. |
| from_dict | Create an instance of PersonalAccessToken from a dict |