Files

2.3 KiB

User

Properties

Name Type Description Notes
Email string
Id string User ID
Role Pointer to SystemRole [optional]

Methods

NewUser

func NewUser(email 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

NewUserWithDefaults

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

GetEmail

func (o *User) GetEmail() string

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

GetEmailOk

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.

SetEmail

func (o *User) SetEmail(v string)

SetEmail sets Email field to given value.

GetId

func (o *User) GetId() string

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

GetIdOk

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.

SetId

func (o *User) SetId(v string)

SetId sets Id field to given value.

GetRole

func (o *User) GetRole() SystemRole

GetRole returns the Role field if non-nil, zero value otherwise.

GetRoleOk

func (o *User) GetRoleOk() (*SystemRole, bool)

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

SetRole

func (o *User) SetRole(v SystemRole)

SetRole sets Role field to given value.

HasRole

func (o *User) HasRole() bool

HasRole returns a boolean if a field has been set.

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