Skip to content

Latest commit

 

History

History
93 lines (50 loc) · 2.49 KB

File metadata and controls

93 lines (50 loc) · 2.49 KB

Session

Properties

Name Type Description Notes
UserId Pointer to int64 The ID of the user of this session.
Token Pointer to string The token to use as a bearer token to query Management API endpoints.
Created Pointer to time.Time Unix timestamp indicating when the session was first created.

Methods

NewSession

func NewSession(userId int64, token string, created time.Time, ) *Session

NewSession instantiates a new Session 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

NewSessionWithDefaults

func NewSessionWithDefaults() *Session

NewSessionWithDefaults instantiates a new Session 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

GetUserId

func (o *Session) GetUserId() int64

GetUserId returns the UserId field if non-nil, zero value otherwise.

GetUserIdOk

func (o *Session) GetUserIdOk() (*int64, bool)

GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUserId

func (o *Session) SetUserId(v int64)

SetUserId sets UserId field to given value.

GetToken

func (o *Session) GetToken() string

GetToken returns the Token field if non-nil, zero value otherwise.

GetTokenOk

func (o *Session) GetTokenOk() (*string, bool)

GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetToken

func (o *Session) SetToken(v string)

SetToken sets Token field to given value.

GetCreated

func (o *Session) GetCreated() time.Time

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

func (o *Session) GetCreatedOk() (*time.Time, bool)

GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreated

func (o *Session) SetCreated(v time.Time)

SetCreated sets Created field to given value.

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