Name | Type | Description | Notes |
---|---|---|---|
Expiry | Pointer to time.Time | When this token should be valid until. If omitted, the new token will be valid until it is manually revoked. | [optional] |
Label | Pointer to string | 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. | [optional] |
Scopes | Pointer to string | The access scopes to grant to the created token. These cannot be changed after creation, and may not exceed the scopes of the acting token. If omitted or entered with a wildcard character (`*`), the new token will have the same scopes as the acting token. Multiple scopes are separated by a space character (` `). For example, `linodes:read_write account:read_only`. | [optional] |
func NewPostPersonalAccessTokenRequest() *PostPersonalAccessTokenRequest
NewPostPersonalAccessTokenRequest instantiates a new PostPersonalAccessTokenRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewPostPersonalAccessTokenRequestWithDefaults() *PostPersonalAccessTokenRequest
NewPostPersonalAccessTokenRequestWithDefaults instantiates a new PostPersonalAccessTokenRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *PostPersonalAccessTokenRequest) GetExpiry() time.Time
GetExpiry returns the Expiry field if non-nil, zero value otherwise.
func (o *PostPersonalAccessTokenRequest) GetExpiryOk() (*time.Time, bool)
GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostPersonalAccessTokenRequest) SetExpiry(v time.Time)
SetExpiry sets Expiry field to given value.
func (o *PostPersonalAccessTokenRequest) HasExpiry() bool
HasExpiry returns a boolean if a field has been set.
func (o *PostPersonalAccessTokenRequest) GetLabel() string
GetLabel returns the Label field if non-nil, zero value otherwise.
func (o *PostPersonalAccessTokenRequest) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostPersonalAccessTokenRequest) SetLabel(v string)
SetLabel sets Label field to given value.
func (o *PostPersonalAccessTokenRequest) HasLabel() bool
HasLabel returns a boolean if a field has been set.
func (o *PostPersonalAccessTokenRequest) GetScopes() string
GetScopes returns the Scopes field if non-nil, zero value otherwise.
func (o *PostPersonalAccessTokenRequest) GetScopesOk() (*string, bool)
GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostPersonalAccessTokenRequest) SetScopes(v string)
SetScopes sets Scopes field to given value.
func (o *PostPersonalAccessTokenRequest) HasScopes() bool
HasScopes returns a boolean if a field has been set.