Skip to content

Latest commit

 

History

History
113 lines (64 loc) · 3.56 KB

File metadata and controls

113 lines (64 loc) · 3.56 KB

OAuth2TokenResponse

Properties

Name Type Description Notes
AccessToken string The issued access token
ExpiresIn int32 Lifetime in seconds of the access token.
Scope Pointer to string Granted scopes (space-delimited). [optional]
TokenType string Usually 'bearer'

Methods

NewOAuth2TokenResponse

func NewOAuth2TokenResponse(accessToken string, expiresIn int32, tokenType string, ) *OAuth2TokenResponse

NewOAuth2TokenResponse instantiates a new OAuth2TokenResponse 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

NewOAuth2TokenResponseWithDefaults

func NewOAuth2TokenResponseWithDefaults() *OAuth2TokenResponse

NewOAuth2TokenResponseWithDefaults instantiates a new OAuth2TokenResponse 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

GetAccessToken

func (o *OAuth2TokenResponse) GetAccessToken() string

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

GetAccessTokenOk

func (o *OAuth2TokenResponse) 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 *OAuth2TokenResponse) SetAccessToken(v string)

SetAccessToken sets AccessToken field to given value.

GetExpiresIn

func (o *OAuth2TokenResponse) GetExpiresIn() int32

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

GetExpiresInOk

func (o *OAuth2TokenResponse) 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 *OAuth2TokenResponse) SetExpiresIn(v int32)

SetExpiresIn sets ExpiresIn field to given value.

GetScope

func (o *OAuth2TokenResponse) GetScope() string

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

GetScopeOk

func (o *OAuth2TokenResponse) 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 *OAuth2TokenResponse) SetScope(v string)

SetScope sets Scope field to given value.

HasScope

func (o *OAuth2TokenResponse) HasScope() bool

HasScope returns a boolean if a field has been set.

GetTokenType

func (o *OAuth2TokenResponse) GetTokenType() string

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

GetTokenTypeOk

func (o *OAuth2TokenResponse) 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 *OAuth2TokenResponse) SetTokenType(v string)

SetTokenType sets TokenType field to given value.

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