Name | Type | Description | Notes |
---|---|---|---|
Pk | int32 | [readonly] | |
Expires | Pointer to NullableTime | [optional] | |
Expiring | Pointer to bool | [optional] | |
User | User | ||
Application | Application | ||
Permissions | Pointer to string | [optional] [default to ""] |
func NewUserConsent(pk int32, user User, application Application, ) *UserConsent
NewUserConsent instantiates a new UserConsent 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 NewUserConsentWithDefaults() *UserConsent
NewUserConsentWithDefaults instantiates a new UserConsent 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 *UserConsent) GetPk() int32
GetPk returns the Pk field if non-nil, zero value otherwise.
func (o *UserConsent) 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 *UserConsent) SetPk(v int32)
SetPk sets Pk field to given value.
func (o *UserConsent) GetExpires() time.Time
GetExpires returns the Expires field if non-nil, zero value otherwise.
func (o *UserConsent) GetExpiresOk() (*time.Time, bool)
GetExpiresOk returns a tuple with the Expires field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UserConsent) SetExpires(v time.Time)
SetExpires sets Expires field to given value.
func (o *UserConsent) HasExpires() bool
HasExpires returns a boolean if a field has been set.
func (o *UserConsent) SetExpiresNil(b bool)
SetExpiresNil sets the value for Expires to be an explicit nil
func (o *UserConsent) UnsetExpires()
UnsetExpires ensures that no value is present for Expires, not even an explicit nil
func (o *UserConsent) GetExpiring() bool
GetExpiring returns the Expiring field if non-nil, zero value otherwise.
func (o *UserConsent) GetExpiringOk() (*bool, bool)
GetExpiringOk returns a tuple with the Expiring field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UserConsent) SetExpiring(v bool)
SetExpiring sets Expiring field to given value.
func (o *UserConsent) HasExpiring() bool
HasExpiring returns a boolean if a field has been set.
func (o *UserConsent) GetUser() User
GetUser returns the User field if non-nil, zero value otherwise.
func (o *UserConsent) GetUserOk() (*User, bool)
GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UserConsent) SetUser(v User)
SetUser sets User field to given value.
func (o *UserConsent) GetApplication() Application
GetApplication returns the Application field if non-nil, zero value otherwise.
func (o *UserConsent) GetApplicationOk() (*Application, bool)
GetApplicationOk returns a tuple with the Application field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UserConsent) SetApplication(v Application)
SetApplication sets Application field to given value.
func (o *UserConsent) GetPermissions() string
GetPermissions returns the Permissions field if non-nil, zero value otherwise.
func (o *UserConsent) GetPermissionsOk() (*string, bool)
GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UserConsent) SetPermissions(v string)
SetPermissions sets Permissions field to given value.
func (o *UserConsent) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.