Name | Type | Description | Notes |
---|---|---|---|
TokenType | string | Token type (it's always 'bearer') | |
AccessToken | string | Access token. Token has a length of up to 128 characters. | |
RefreshToken | Pointer to string | Refresh token. Only set in case of grant_type='password'. Token has a length of up to 128 characters. | [optional] |
ExpiresIn | int32 | Expiration time in seconds. A value of 0 means that the token never expires (unless it is explicitly invalidated, e.g. by revocation, or when a user gets locked). | |
Scope | string | Requested scopes (it's always 'all') |
func NewAccessToken(tokenType string, accessToken string, expiresIn int32, scope string, ) *AccessToken
NewAccessToken instantiates a new AccessToken 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 NewAccessTokenWithDefaults() *AccessToken
NewAccessTokenWithDefaults instantiates a new AccessToken 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 *AccessToken) GetTokenType() string
GetTokenType returns the TokenType field if non-nil, zero value otherwise.
func (o *AccessToken) GetTokenTypeOk() (*string, bool)
GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AccessToken) SetTokenType(v string)
SetTokenType sets TokenType field to given value.
func (o *AccessToken) GetAccessToken() string
GetAccessToken returns the AccessToken field if non-nil, zero value otherwise.
func (o *AccessToken) GetAccessTokenOk() (*string, bool)
GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AccessToken) SetAccessToken(v string)
SetAccessToken sets AccessToken field to given value.
func (o *AccessToken) GetRefreshToken() string
GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise.
func (o *AccessToken) GetRefreshTokenOk() (*string, bool)
GetRefreshTokenOk returns a tuple with the RefreshToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AccessToken) SetRefreshToken(v string)
SetRefreshToken sets RefreshToken field to given value.
func (o *AccessToken) HasRefreshToken() bool
HasRefreshToken returns a boolean if a field has been set.
func (o *AccessToken) GetExpiresIn() int32
GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise.
func (o *AccessToken) GetExpiresInOk() (*int32, bool)
GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AccessToken) SetExpiresIn(v int32)
SetExpiresIn sets ExpiresIn field to given value.
func (o *AccessToken) GetScope() string
GetScope returns the Scope field if non-nil, zero value otherwise.
func (o *AccessToken) GetScopeOk() (*string, bool)
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AccessToken) SetScope(v string)
SetScope sets Scope field to given value.