// This token's unique ID, which can be used to revoke it.
IDint`json:"id"`
// The scopes this token was created with. These define what parts of the Account the token can be used to access. Many command-line tools, such as the Linode CLI, require tokens with access to *. Tokens with more restrictive scopes are generally more secure.
// When this token will expire. Personal Access Tokens cannot be renewed, so after this time the token will be completely unusable and a new token will need to be generated. Tokens may be created with "null" as their expiry and will never expire unless revoked.
// TokenCreateOptions fields are those accepted by CreateToken
typeTokenCreateOptionsstruct{
// The scopes this token was created with. These define what parts of the Account the token can be used to access. Many command-line tools, such as the Linode CLI, require tokens with access to *. Tokens with more restrictive scopes are generally more secure.
Scopesstring`json:"scopes"`
// This token's label. This is for display purposes only, but can be used to more easily track what you're using each token for. (1-100 Characters)
Labelstring`json:"label"`
// When this token will expire. Personal Access Tokens cannot be renewed, so after this time the token will be completely unusable and a new token will need to be generated. Tokens may be created with "null" as their expiry and will never expire unless revoked.
Expiry*time.Time`json:"expiry"`
}
// TokenUpdateOptions fields are those accepted by UpdateToken
typeTokenUpdateOptionsstruct{
// This token's label. This is for display purposes only, but can be used to more easily track what you're using each token for. (1-100 Characters)