Skip to content

Latest commit

 

History

History
150 lines (81 loc) · 3.45 KB

User.md

File metadata and controls

150 lines (81 loc) · 3.45 KB

User

Properties

Name Type Description Notes
Username string
Enabled Pointer to bool [optional] [default to true]
Admin Pointer to bool [optional] [default to false]
ApiKey Pointer to string [optional]
Id string [readonly]

Methods

NewUser

func NewUser(username string, id string, ) *User

NewUser instantiates a new User 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

NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User 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

GetUsername

func (o *User) GetUsername() string

GetUsername returns the Username field if non-nil, zero value otherwise.

GetUsernameOk

func (o *User) GetUsernameOk() (*string, bool)

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

SetUsername

func (o *User) SetUsername(v string)

SetUsername sets Username field to given value.

GetEnabled

func (o *User) GetEnabled() bool

GetEnabled returns the Enabled field if non-nil, zero value otherwise.

GetEnabledOk

func (o *User) GetEnabledOk() (*bool, bool)

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

SetEnabled

func (o *User) SetEnabled(v bool)

SetEnabled sets Enabled field to given value.

HasEnabled

func (o *User) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

GetAdmin

func (o *User) GetAdmin() bool

GetAdmin returns the Admin field if non-nil, zero value otherwise.

GetAdminOk

func (o *User) GetAdminOk() (*bool, bool)

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

SetAdmin

func (o *User) SetAdmin(v bool)

SetAdmin sets Admin field to given value.

HasAdmin

func (o *User) HasAdmin() bool

HasAdmin returns a boolean if a field has been set.

GetApiKey

func (o *User) GetApiKey() string

GetApiKey returns the ApiKey field if non-nil, zero value otherwise.

GetApiKeyOk

func (o *User) GetApiKeyOk() (*string, bool)

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

SetApiKey

func (o *User) SetApiKey(v string)

SetApiKey sets ApiKey field to given value.

HasApiKey

func (o *User) HasApiKey() bool

HasApiKey returns a boolean if a field has been set.

GetId

func (o *User) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *User) GetIdOk() (*string, bool)

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

SetId

func (o *User) SetId(v string)

SetId sets Id field to given value.

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