Name | Type | Description | Notes |
---|---|---|---|
Pk | int32 | [readonly] | |
Username | string | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | |
Name | string | User's display name. | |
IsActive | bool | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [readonly] |
IsSuperuser | bool | [readonly] | |
Groups | []UserSelfGroups | [readonly] | |
Pointer to string | [optional] | ||
Avatar | string | User's avatar, either a http/https URL or a data URI | [readonly] |
Uid | string | [readonly] | |
Settings | map[string]interface{} | Get user settings with brand and group settings applied | [readonly] |
Type | Pointer to UserTypeEnum | [optional] | |
SystemPermissions | []string | Get all system permissions assigned to the user | [readonly] |
func NewUserSelf(pk int32, username string, name string, isActive bool, isSuperuser bool, groups []UserSelfGroups, avatar string, uid string, settings map[string]interface{}, systemPermissions []string, ) *UserSelf
NewUserSelf instantiates a new UserSelf 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 NewUserSelfWithDefaults() *UserSelf
NewUserSelfWithDefaults instantiates a new UserSelf 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 *UserSelf) GetPk() int32
GetPk returns the Pk field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetPk(v int32)
SetPk sets Pk field to given value.
func (o *UserSelf) GetUsername() string
GetUsername returns the Username field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetUsername(v string)
SetUsername sets Username field to given value.
func (o *UserSelf) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetName(v string)
SetName sets Name field to given value.
func (o *UserSelf) GetIsActive() bool
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetIsActive(v bool)
SetIsActive sets IsActive field to given value.
func (o *UserSelf) GetIsSuperuser() bool
GetIsSuperuser returns the IsSuperuser field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetIsSuperuser(v bool)
SetIsSuperuser sets IsSuperuser field to given value.
func (o *UserSelf) GetGroups() []UserSelfGroups
GetGroups returns the Groups field if non-nil, zero value otherwise.
func (o *UserSelf) GetGroupsOk() (*[]UserSelfGroups, 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 *UserSelf) SetGroups(v []UserSelfGroups)
SetGroups sets Groups field to given value.
func (o *UserSelf) GetEmail() string
GetEmail returns the Email field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetEmail(v string)
SetEmail sets Email field to given value.
func (o *UserSelf) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *UserSelf) GetAvatar() string
GetAvatar returns the Avatar field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetAvatar(v string)
SetAvatar sets Avatar field to given value.
func (o *UserSelf) GetUid() string
GetUid returns the Uid field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetUid(v string)
SetUid sets Uid field to given value.
func (o *UserSelf) GetSettings() map[string]interface{}
GetSettings returns the Settings field if non-nil, zero value otherwise.
func (o *UserSelf) GetSettingsOk() (*map[string]interface{}, bool)
GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UserSelf) SetSettings(v map[string]interface{})
SetSettings sets Settings field to given value.
func (o *UserSelf) GetType() UserTypeEnum
GetType returns the Type field if non-nil, zero value otherwise.
func (o *UserSelf) 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 *UserSelf) SetType(v UserTypeEnum)
SetType sets Type field to given value.
func (o *UserSelf) HasType() bool
HasType returns a boolean if a field has been set.
func (o *UserSelf) GetSystemPermissions() []string
GetSystemPermissions returns the SystemPermissions field if non-nil, zero value otherwise.
func (o *UserSelf) GetSystemPermissionsOk() (*[]string, bool)
GetSystemPermissionsOk returns a tuple with the SystemPermissions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UserSelf) SetSystemPermissions(v []string)
SetSystemPermissions sets SystemPermissions field to given value.