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] |
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
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
func (o *User) GetUsername() string
GetUsername returns the Username field if non-nil, zero value otherwise.
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.
func (o *User) SetUsername(v string)
SetUsername sets Username field to given value.
func (o *User) GetEnabled() bool
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
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.
func (o *User) SetEnabled(v bool)
SetEnabled sets Enabled field to given value.
func (o *User) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *User) GetAdmin() bool
GetAdmin returns the Admin field if non-nil, zero value otherwise.
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.
func (o *User) SetAdmin(v bool)
SetAdmin sets Admin field to given value.
func (o *User) HasAdmin() bool
HasAdmin returns a boolean if a field has been set.
func (o *User) GetApiKey() string
GetApiKey returns the ApiKey field if non-nil, zero value otherwise.
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.
func (o *User) SetApiKey(v string)
SetApiKey sets ApiKey field to given value.
func (o *User) HasApiKey() bool
HasApiKey returns a boolean if a field has been set.
func (o *User) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *User) SetId(v string)
SetId sets Id field to given value.