Skip to content

Latest commit

 

History

History
186 lines (101 loc) · 5.45 KB

File metadata and controls

186 lines (101 loc) · 5.45 KB

UpdateUser

Properties

Name Type Description Notes
Name Pointer to string Name of the user. [optional]
State Pointer to string The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. Note: Only `admin` users can update the state of another user. [optional]
IsAdmin Pointer to bool Indicates whether the user is an `admin`. [optional]
Policy Pointer to string Indicates the access level of the user. [optional]
Roles Pointer to []int64 A list of the IDs of the roles assigned to the user. Note: To find the ID of a role, use the List roles endpoint. [optional]
ApplicationNotificationSubscriptions Pointer to map[string]interface{} Application notifications that the user is subscribed to. [optional]

Methods

NewUpdateUser

func NewUpdateUser() *UpdateUser

NewUpdateUser instantiates a new UpdateUser 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

NewUpdateUserWithDefaults

func NewUpdateUserWithDefaults() *UpdateUser

NewUpdateUserWithDefaults instantiates a new UpdateUser 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

GetName

func (o *UpdateUser) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *UpdateUser) 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.

SetName

func (o *UpdateUser) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *UpdateUser) HasName() bool

HasName returns a boolean if a field has been set.

GetState

func (o *UpdateUser) GetState() string

GetState returns the State field if non-nil, zero value otherwise.

GetStateOk

func (o *UpdateUser) GetStateOk() (*string, bool)

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

SetState

func (o *UpdateUser) SetState(v string)

SetState sets State field to given value.

HasState

func (o *UpdateUser) HasState() bool

HasState returns a boolean if a field has been set.

GetIsAdmin

func (o *UpdateUser) GetIsAdmin() bool

GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.

GetIsAdminOk

func (o *UpdateUser) GetIsAdminOk() (*bool, bool)

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

SetIsAdmin

func (o *UpdateUser) SetIsAdmin(v bool)

SetIsAdmin sets IsAdmin field to given value.

HasIsAdmin

func (o *UpdateUser) HasIsAdmin() bool

HasIsAdmin returns a boolean if a field has been set.

GetPolicy

func (o *UpdateUser) GetPolicy() string

GetPolicy returns the Policy field if non-nil, zero value otherwise.

GetPolicyOk

func (o *UpdateUser) GetPolicyOk() (*string, bool)

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

SetPolicy

func (o *UpdateUser) SetPolicy(v string)

SetPolicy sets Policy field to given value.

HasPolicy

func (o *UpdateUser) HasPolicy() bool

HasPolicy returns a boolean if a field has been set.

GetRoles

func (o *UpdateUser) GetRoles() []int64

GetRoles returns the Roles field if non-nil, zero value otherwise.

GetRolesOk

func (o *UpdateUser) GetRolesOk() (*[]int64, bool)

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

SetRoles

func (o *UpdateUser) SetRoles(v []int64)

SetRoles sets Roles field to given value.

HasRoles

func (o *UpdateUser) HasRoles() bool

HasRoles returns a boolean if a field has been set.

GetApplicationNotificationSubscriptions

func (o *UpdateUser) GetApplicationNotificationSubscriptions() map[string]interface{}

GetApplicationNotificationSubscriptions returns the ApplicationNotificationSubscriptions field if non-nil, zero value otherwise.

GetApplicationNotificationSubscriptionsOk

func (o *UpdateUser) GetApplicationNotificationSubscriptionsOk() (*map[string]interface{}, bool)

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

SetApplicationNotificationSubscriptions

func (o *UpdateUser) SetApplicationNotificationSubscriptions(v map[string]interface{})

SetApplicationNotificationSubscriptions sets ApplicationNotificationSubscriptions field to given value.

HasApplicationNotificationSubscriptions

func (o *UpdateUser) HasApplicationNotificationSubscriptions() bool

HasApplicationNotificationSubscriptions returns a boolean if a field has been set.

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