Name | Type | Description | Notes |
---|---|---|---|
Pk | int32 | [readonly] | |
Username | string | ||
Name | string | User's display name. | |
IsActive | Pointer to bool | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] |
LastLogin | Pointer to NullableTime | [optional] | |
IsSuperuser | bool | [readonly] | |
Groups | Pointer to []string | [optional] | |
GroupsObj | []UserGroup | [readonly] | |
Pointer to string | [optional] | ||
Avatar | string | User's avatar, either a http/https URL or a data URI | [readonly] |
Attributes | Pointer to map[string]interface{} | [optional] | |
Uid | string | [readonly] | |
Path | Pointer to string | [optional] | |
Type | Pointer to UserTypeEnum | [optional] | |
Uuid | string | [readonly] |
func NewUser(pk int32, username string, name string, isSuperuser bool, groupsObj []UserGroup, avatar string, uid string, uuid 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) GetPk() int32
GetPk returns the Pk field if non-nil, zero value otherwise.
func (o *User) 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 *User) SetPk(v int32)
SetPk sets Pk field to given value.
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) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *User) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetName(v string)
SetName sets Name field to given value.
func (o *User) GetIsActive() bool
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
func (o *User) GetIsActiveOk() (*bool, bool)
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetIsActive(v bool)
SetIsActive sets IsActive field to given value.
func (o *User) HasIsActive() bool
HasIsActive returns a boolean if a field has been set.
func (o *User) GetLastLogin() time.Time
GetLastLogin returns the LastLogin field if non-nil, zero value otherwise.
func (o *User) GetLastLoginOk() (*time.Time, bool)
GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetLastLogin(v time.Time)
SetLastLogin sets LastLogin field to given value.
func (o *User) HasLastLogin() bool
HasLastLogin returns a boolean if a field has been set.
func (o *User) SetLastLoginNil(b bool)
SetLastLoginNil sets the value for LastLogin to be an explicit nil
func (o *User) UnsetLastLogin()
UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil
func (o *User) GetIsSuperuser() bool
GetIsSuperuser returns the IsSuperuser field if non-nil, zero value otherwise.
func (o *User) GetIsSuperuserOk() (*bool, bool)
GetIsSuperuserOk returns a tuple with the IsSuperuser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetIsSuperuser(v bool)
SetIsSuperuser sets IsSuperuser field to given value.
func (o *User) GetGroups() []string
GetGroups returns the Groups field if non-nil, zero value otherwise.
func (o *User) GetGroupsOk() (*[]string, bool)
GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetGroups(v []string)
SetGroups sets Groups field to given value.
func (o *User) HasGroups() bool
HasGroups returns a boolean if a field has been set.
func (o *User) GetGroupsObj() []UserGroup
GetGroupsObj returns the GroupsObj field if non-nil, zero value otherwise.
func (o *User) GetGroupsObjOk() (*[]UserGroup, bool)
GetGroupsObjOk returns a tuple with the GroupsObj field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetGroupsObj(v []UserGroup)
SetGroupsObj sets GroupsObj field to given value.
func (o *User) SetGroupsObjNil(b bool)
SetGroupsObjNil sets the value for GroupsObj to be an explicit nil
func (o *User) UnsetGroupsObj()
UnsetGroupsObj ensures that no value is present for GroupsObj, not even an explicit nil
func (o *User) GetEmail() string
GetEmail returns the Email field if non-nil, zero value otherwise.
func (o *User) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetEmail(v string)
SetEmail sets Email field to given value.
func (o *User) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *User) GetAvatar() string
GetAvatar returns the Avatar field if non-nil, zero value otherwise.
func (o *User) GetAvatarOk() (*string, bool)
GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetAvatar(v string)
SetAvatar sets Avatar field to given value.
func (o *User) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *User) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetAttributes(v map[string]interface{})
SetAttributes sets Attributes field to given value.
func (o *User) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *User) GetUid() string
GetUid returns the Uid field if non-nil, zero value otherwise.
func (o *User) GetUidOk() (*string, bool)
GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetUid(v string)
SetUid sets Uid field to given value.
func (o *User) GetPath() string
GetPath returns the Path field if non-nil, zero value otherwise.
func (o *User) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetPath(v string)
SetPath sets Path field to given value.
func (o *User) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o *User) GetType() UserTypeEnum
GetType returns the Type field if non-nil, zero value otherwise.
func (o *User) GetTypeOk() (*UserTypeEnum, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetType(v UserTypeEnum)
SetType sets Type field to given value.
func (o *User) HasType() bool
HasType returns a boolean if a field has been set.
func (o *User) GetUuid() string
GetUuid returns the Uuid field if non-nil, zero value otherwise.
func (o *User) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *User) SetUuid(v string)
SetUuid sets Uuid field to given value.