Skip to content

Latest commit

 

History

History
323 lines (172 loc) · 8.79 KB

UserModel.md

File metadata and controls

323 lines (172 loc) · 8.79 KB

UserModel

Properties

Name Type Description Notes
FirstName string First name of the user.
LastName string Last name of the user.
Email string Email address of the user.
RoleIds []string List of roleIds associated with the user.
CreatedAt time.Time Creation timestamp in UTC in RFC3339 format.
CreatedBy string Identifier of the user who created the resource.
ModifiedAt time.Time Last modification timestamp in UTC.
ModifiedBy string Identifier of the user who last modified the resource.
Id string Unique identifier for the user.
IsActive Pointer to bool True if the user is active. [optional]
IsLocked Pointer to bool This has the value `true` if the user's account has been locked. If a user tries to log into their account several times and fails, his or her account will be locked for security reasons. [optional]
IsMfaEnabled Pointer to bool True if multi factor authentication is enabled for the user. [optional]
LastLoginTimestamp Pointer to time.Time Timestamp of the last login for the user in UTC. Will be null if the user has never logged in. [optional]

Methods

NewUserModel

func NewUserModel(firstName string, lastName string, email string, roleIds []string, createdAt time.Time, createdBy string, modifiedAt time.Time, modifiedBy string, id string, ) *UserModel

NewUserModel instantiates a new UserModel 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

NewUserModelWithDefaults

func NewUserModelWithDefaults() *UserModel

NewUserModelWithDefaults instantiates a new UserModel 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

GetFirstName

func (o *UserModel) GetFirstName() string

GetFirstName returns the FirstName field if non-nil, zero value otherwise.

GetFirstNameOk

func (o *UserModel) GetFirstNameOk() (*string, bool)

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

SetFirstName

func (o *UserModel) SetFirstName(v string)

SetFirstName sets FirstName field to given value.

GetLastName

func (o *UserModel) GetLastName() string

GetLastName returns the LastName field if non-nil, zero value otherwise.

GetLastNameOk

func (o *UserModel) GetLastNameOk() (*string, bool)

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

SetLastName

func (o *UserModel) SetLastName(v string)

SetLastName sets LastName field to given value.

GetEmail

func (o *UserModel) GetEmail() string

GetEmail returns the Email field if non-nil, zero value otherwise.

GetEmailOk

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

SetEmail

func (o *UserModel) SetEmail(v string)

SetEmail sets Email field to given value.

GetRoleIds

func (o *UserModel) GetRoleIds() []string

GetRoleIds returns the RoleIds field if non-nil, zero value otherwise.

GetRoleIdsOk

func (o *UserModel) GetRoleIdsOk() (*[]string, bool)

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

SetRoleIds

func (o *UserModel) SetRoleIds(v []string)

SetRoleIds sets RoleIds field to given value.

GetCreatedAt

func (o *UserModel) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *UserModel) GetCreatedAtOk() (*time.Time, bool)

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

SetCreatedAt

func (o *UserModel) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetCreatedBy

func (o *UserModel) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.

GetCreatedByOk

func (o *UserModel) GetCreatedByOk() (*string, bool)

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

SetCreatedBy

func (o *UserModel) SetCreatedBy(v string)

SetCreatedBy sets CreatedBy field to given value.

GetModifiedAt

func (o *UserModel) GetModifiedAt() time.Time

GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.

GetModifiedAtOk

func (o *UserModel) GetModifiedAtOk() (*time.Time, bool)

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

SetModifiedAt

func (o *UserModel) SetModifiedAt(v time.Time)

SetModifiedAt sets ModifiedAt field to given value.

GetModifiedBy

func (o *UserModel) GetModifiedBy() string

GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise.

GetModifiedByOk

func (o *UserModel) GetModifiedByOk() (*string, bool)

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

SetModifiedBy

func (o *UserModel) SetModifiedBy(v string)

SetModifiedBy sets ModifiedBy field to given value.

GetId

func (o *UserModel) GetId() string

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

GetIdOk

func (o *UserModel) 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 *UserModel) SetId(v string)

SetId sets Id field to given value.

GetIsActive

func (o *UserModel) GetIsActive() bool

GetIsActive returns the IsActive field if non-nil, zero value otherwise.

GetIsActiveOk

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

SetIsActive

func (o *UserModel) SetIsActive(v bool)

SetIsActive sets IsActive field to given value.

HasIsActive

func (o *UserModel) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

GetIsLocked

func (o *UserModel) GetIsLocked() bool

GetIsLocked returns the IsLocked field if non-nil, zero value otherwise.

GetIsLockedOk

func (o *UserModel) GetIsLockedOk() (*bool, bool)

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

SetIsLocked

func (o *UserModel) SetIsLocked(v bool)

SetIsLocked sets IsLocked field to given value.

HasIsLocked

func (o *UserModel) HasIsLocked() bool

HasIsLocked returns a boolean if a field has been set.

GetIsMfaEnabled

func (o *UserModel) GetIsMfaEnabled() bool

GetIsMfaEnabled returns the IsMfaEnabled field if non-nil, zero value otherwise.

GetIsMfaEnabledOk

func (o *UserModel) GetIsMfaEnabledOk() (*bool, bool)

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

SetIsMfaEnabled

func (o *UserModel) SetIsMfaEnabled(v bool)

SetIsMfaEnabled sets IsMfaEnabled field to given value.

HasIsMfaEnabled

func (o *UserModel) HasIsMfaEnabled() bool

HasIsMfaEnabled returns a boolean if a field has been set.

GetLastLoginTimestamp

func (o *UserModel) GetLastLoginTimestamp() time.Time

GetLastLoginTimestamp returns the LastLoginTimestamp field if non-nil, zero value otherwise.

GetLastLoginTimestampOk

func (o *UserModel) GetLastLoginTimestampOk() (*time.Time, bool)

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

SetLastLoginTimestamp

func (o *UserModel) SetLastLoginTimestamp(v time.Time)

SetLastLoginTimestamp sets LastLoginTimestamp field to given value.

HasLastLoginTimestamp

func (o *UserModel) HasLastLoginTimestamp() bool

HasLastLoginTimestamp returns a boolean if a field has been set.

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