Skip to content

Latest commit

 

History

History
140 lines (75 loc) · 4.06 KB

AccessToken.md

File metadata and controls

140 lines (75 loc) · 4.06 KB

AccessToken

Properties

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')

Methods

NewAccessToken

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

NewAccessTokenWithDefaults

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

GetTokenType

func (o *AccessToken) GetTokenType() string

GetTokenType returns the TokenType field if non-nil, zero value otherwise.

GetTokenTypeOk

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.

SetTokenType

func (o *AccessToken) SetTokenType(v string)

SetTokenType sets TokenType field to given value.

GetAccessToken

func (o *AccessToken) GetAccessToken() string

GetAccessToken returns the AccessToken field if non-nil, zero value otherwise.

GetAccessTokenOk

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.

SetAccessToken

func (o *AccessToken) SetAccessToken(v string)

SetAccessToken sets AccessToken field to given value.

GetRefreshToken

func (o *AccessToken) GetRefreshToken() string

GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise.

GetRefreshTokenOk

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.

SetRefreshToken

func (o *AccessToken) SetRefreshToken(v string)

SetRefreshToken sets RefreshToken field to given value.

HasRefreshToken

func (o *AccessToken) HasRefreshToken() bool

HasRefreshToken returns a boolean if a field has been set.

GetExpiresIn

func (o *AccessToken) GetExpiresIn() int32

GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise.

GetExpiresInOk

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.

SetExpiresIn

func (o *AccessToken) SetExpiresIn(v int32)

SetExpiresIn sets ExpiresIn field to given value.

GetScope

func (o *AccessToken) GetScope() string

GetScope returns the Scope field if non-nil, zero value otherwise.

GetScopeOk

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.

SetScope

func (o *AccessToken) SetScope(v string)

SetScope sets Scope field to given value.

[Back to Model list] [Back to API list] [Back to README]