Name | Type | Description | Notes |
---|---|---|---|
Pk | int32 | [readonly] | |
Provider | OAuth2Provider | ||
User | User | ||
IsExpired | bool | Check if token is expired yet. | [readonly] |
Expires | Pointer to NullableTime | [optional] | |
Scope | []string | ||
IdToken | string | Get the token's id_token as JSON String | [readonly] |
Revoked | Pointer to bool | [optional] |
func NewTokenModel(pk int32, provider OAuth2Provider, user User, isExpired bool, scope []string, idToken string, ) *TokenModel
NewTokenModel instantiates a new TokenModel 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 NewTokenModelWithDefaults() *TokenModel
NewTokenModelWithDefaults instantiates a new TokenModel 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 *TokenModel) GetPk() int32
GetPk returns the Pk field if non-nil, zero value otherwise.
func (o *TokenModel) GetPkOk() (*int32, bool)
GetPkOk returns a tuple with the Pk field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenModel) SetPk(v int32)
SetPk sets Pk field to given value.
func (o *TokenModel) GetProvider() OAuth2Provider
GetProvider returns the Provider field if non-nil, zero value otherwise.
func (o *TokenModel) GetProviderOk() (*OAuth2Provider, bool)
GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenModel) SetProvider(v OAuth2Provider)
SetProvider sets Provider field to given value.
func (o *TokenModel) GetUser() User
GetUser returns the User field if non-nil, zero value otherwise.
func (o *TokenModel) GetUserOk() (*User, bool)
GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenModel) SetUser(v User)
SetUser sets User field to given value.
func (o *TokenModel) GetIsExpired() bool
GetIsExpired returns the IsExpired field if non-nil, zero value otherwise.
func (o *TokenModel) GetIsExpiredOk() (*bool, bool)
GetIsExpiredOk returns a tuple with the IsExpired field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenModel) SetIsExpired(v bool)
SetIsExpired sets IsExpired field to given value.
func (o *TokenModel) GetExpires() time.Time
GetExpires returns the Expires field if non-nil, zero value otherwise.
func (o *TokenModel) GetExpiresOk() (*time.Time, bool)
GetExpiresOk returns a tuple with the Expires field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenModel) SetExpires(v time.Time)
SetExpires sets Expires field to given value.
func (o *TokenModel) HasExpires() bool
HasExpires returns a boolean if a field has been set.
func (o *TokenModel) SetExpiresNil(b bool)
SetExpiresNil sets the value for Expires to be an explicit nil
func (o *TokenModel) UnsetExpires()
UnsetExpires ensures that no value is present for Expires, not even an explicit nil
func (o *TokenModel) GetScope() []string
GetScope returns the Scope field if non-nil, zero value otherwise.
func (o *TokenModel) 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 *TokenModel) SetScope(v []string)
SetScope sets Scope field to given value.
func (o *TokenModel) GetIdToken() string
GetIdToken returns the IdToken field if non-nil, zero value otherwise.
func (o *TokenModel) GetIdTokenOk() (*string, bool)
GetIdTokenOk returns a tuple with the IdToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenModel) SetIdToken(v string)
SetIdToken sets IdToken field to given value.
func (o *TokenModel) GetRevoked() bool
GetRevoked returns the Revoked field if non-nil, zero value otherwise.
func (o *TokenModel) GetRevokedOk() (*bool, bool)
GetRevokedOk returns a tuple with the Revoked field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokenModel) SetRevoked(v bool)
SetRevoked sets Revoked field to given value.
func (o *TokenModel) HasRevoked() bool
HasRevoked returns a boolean if a field has been set.