Files
authentik/packages/client-go/model_settings_request.go
T
Marc 'risson' Schmitt 2f70351c90 packages/client-go: init (#21139)
* packages/client-go: init

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>

* format

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* remove mod/sum

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix translate

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* no go replace

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* update rust makefile with pwd

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>

* fix build

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix docs

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* don't need a version ig?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* exclude go client from cspell

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix main docker build

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
2026-03-25 15:26:50 +01:00

738 lines
23 KiB
Go
Generated

/*
authentik
Making authentication simple.
API version: 2026.5.0-rc1
Contact: hello@goauthentik.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
"fmt"
)
// checks if the SettingsRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SettingsRequest{}
// SettingsRequest Settings Serializer
type SettingsRequest struct {
// Configure how authentik should show avatars for users.
Avatars *string `json:"avatars,omitempty"`
// Enable the ability for users to change their name.
DefaultUserChangeName *bool `json:"default_user_change_name,omitempty"`
// Enable the ability for users to change their email address.
DefaultUserChangeEmail *bool `json:"default_user_change_email,omitempty"`
// Enable the ability for users to change their username.
DefaultUserChangeUsername *bool `json:"default_user_change_username,omitempty"`
// Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
EventRetention *string `json:"event_retention,omitempty"`
// Reputation cannot decrease lower than this value. Zero or negative.
ReputationLowerLimit *int32 `json:"reputation_lower_limit,omitempty"`
// Reputation cannot increase higher than this value. Zero or positive.
ReputationUpperLimit *int32 `json:"reputation_upper_limit,omitempty"`
FooterLinks interface{} `json:"footer_links,omitempty"`
// When enabled, all the events caused by a user will be deleted upon the user's deletion.
GdprCompliance *bool `json:"gdpr_compliance,omitempty"`
// Globally enable/disable impersonation.
Impersonation *bool `json:"impersonation,omitempty"`
// Require administrators to provide a reason for impersonating a user.
ImpersonationRequireReason *bool `json:"impersonation_require_reason,omitempty"`
// Default token duration
DefaultTokenDuration *string `json:"default_token_duration,omitempty"`
// Default token length
DefaultTokenLength *int32 `json:"default_token_length,omitempty"`
// Default page size for API responses, if no size was requested.
PaginationDefaultPageSize *int32 `json:"pagination_default_page_size,omitempty"`
// Maximum page size
PaginationMaxPageSize *int32 `json:"pagination_max_page_size,omitempty"`
Flags PatchedSettingsRequestFlags `json:"flags"`
AdditionalProperties map[string]interface{}
}
type _SettingsRequest SettingsRequest
// NewSettingsRequest instantiates a new SettingsRequest 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 NewSettingsRequest(flags PatchedSettingsRequestFlags) *SettingsRequest {
this := SettingsRequest{}
this.Flags = flags
return &this
}
// NewSettingsRequestWithDefaults instantiates a new SettingsRequest 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 NewSettingsRequestWithDefaults() *SettingsRequest {
this := SettingsRequest{}
return &this
}
// GetAvatars returns the Avatars field value if set, zero value otherwise.
func (o *SettingsRequest) GetAvatars() string {
if o == nil || IsNil(o.Avatars) {
var ret string
return ret
}
return *o.Avatars
}
// GetAvatarsOk returns a tuple with the Avatars field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetAvatarsOk() (*string, bool) {
if o == nil || IsNil(o.Avatars) {
return nil, false
}
return o.Avatars, true
}
// HasAvatars returns a boolean if a field has been set.
func (o *SettingsRequest) HasAvatars() bool {
if o != nil && !IsNil(o.Avatars) {
return true
}
return false
}
// SetAvatars gets a reference to the given string and assigns it to the Avatars field.
func (o *SettingsRequest) SetAvatars(v string) {
o.Avatars = &v
}
// GetDefaultUserChangeName returns the DefaultUserChangeName field value if set, zero value otherwise.
func (o *SettingsRequest) GetDefaultUserChangeName() bool {
if o == nil || IsNil(o.DefaultUserChangeName) {
var ret bool
return ret
}
return *o.DefaultUserChangeName
}
// GetDefaultUserChangeNameOk returns a tuple with the DefaultUserChangeName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetDefaultUserChangeNameOk() (*bool, bool) {
if o == nil || IsNil(o.DefaultUserChangeName) {
return nil, false
}
return o.DefaultUserChangeName, true
}
// HasDefaultUserChangeName returns a boolean if a field has been set.
func (o *SettingsRequest) HasDefaultUserChangeName() bool {
if o != nil && !IsNil(o.DefaultUserChangeName) {
return true
}
return false
}
// SetDefaultUserChangeName gets a reference to the given bool and assigns it to the DefaultUserChangeName field.
func (o *SettingsRequest) SetDefaultUserChangeName(v bool) {
o.DefaultUserChangeName = &v
}
// GetDefaultUserChangeEmail returns the DefaultUserChangeEmail field value if set, zero value otherwise.
func (o *SettingsRequest) GetDefaultUserChangeEmail() bool {
if o == nil || IsNil(o.DefaultUserChangeEmail) {
var ret bool
return ret
}
return *o.DefaultUserChangeEmail
}
// GetDefaultUserChangeEmailOk returns a tuple with the DefaultUserChangeEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetDefaultUserChangeEmailOk() (*bool, bool) {
if o == nil || IsNil(o.DefaultUserChangeEmail) {
return nil, false
}
return o.DefaultUserChangeEmail, true
}
// HasDefaultUserChangeEmail returns a boolean if a field has been set.
func (o *SettingsRequest) HasDefaultUserChangeEmail() bool {
if o != nil && !IsNil(o.DefaultUserChangeEmail) {
return true
}
return false
}
// SetDefaultUserChangeEmail gets a reference to the given bool and assigns it to the DefaultUserChangeEmail field.
func (o *SettingsRequest) SetDefaultUserChangeEmail(v bool) {
o.DefaultUserChangeEmail = &v
}
// GetDefaultUserChangeUsername returns the DefaultUserChangeUsername field value if set, zero value otherwise.
func (o *SettingsRequest) GetDefaultUserChangeUsername() bool {
if o == nil || IsNil(o.DefaultUserChangeUsername) {
var ret bool
return ret
}
return *o.DefaultUserChangeUsername
}
// GetDefaultUserChangeUsernameOk returns a tuple with the DefaultUserChangeUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetDefaultUserChangeUsernameOk() (*bool, bool) {
if o == nil || IsNil(o.DefaultUserChangeUsername) {
return nil, false
}
return o.DefaultUserChangeUsername, true
}
// HasDefaultUserChangeUsername returns a boolean if a field has been set.
func (o *SettingsRequest) HasDefaultUserChangeUsername() bool {
if o != nil && !IsNil(o.DefaultUserChangeUsername) {
return true
}
return false
}
// SetDefaultUserChangeUsername gets a reference to the given bool and assigns it to the DefaultUserChangeUsername field.
func (o *SettingsRequest) SetDefaultUserChangeUsername(v bool) {
o.DefaultUserChangeUsername = &v
}
// GetEventRetention returns the EventRetention field value if set, zero value otherwise.
func (o *SettingsRequest) GetEventRetention() string {
if o == nil || IsNil(o.EventRetention) {
var ret string
return ret
}
return *o.EventRetention
}
// GetEventRetentionOk returns a tuple with the EventRetention field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetEventRetentionOk() (*string, bool) {
if o == nil || IsNil(o.EventRetention) {
return nil, false
}
return o.EventRetention, true
}
// HasEventRetention returns a boolean if a field has been set.
func (o *SettingsRequest) HasEventRetention() bool {
if o != nil && !IsNil(o.EventRetention) {
return true
}
return false
}
// SetEventRetention gets a reference to the given string and assigns it to the EventRetention field.
func (o *SettingsRequest) SetEventRetention(v string) {
o.EventRetention = &v
}
// GetReputationLowerLimit returns the ReputationLowerLimit field value if set, zero value otherwise.
func (o *SettingsRequest) GetReputationLowerLimit() int32 {
if o == nil || IsNil(o.ReputationLowerLimit) {
var ret int32
return ret
}
return *o.ReputationLowerLimit
}
// GetReputationLowerLimitOk returns a tuple with the ReputationLowerLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetReputationLowerLimitOk() (*int32, bool) {
if o == nil || IsNil(o.ReputationLowerLimit) {
return nil, false
}
return o.ReputationLowerLimit, true
}
// HasReputationLowerLimit returns a boolean if a field has been set.
func (o *SettingsRequest) HasReputationLowerLimit() bool {
if o != nil && !IsNil(o.ReputationLowerLimit) {
return true
}
return false
}
// SetReputationLowerLimit gets a reference to the given int32 and assigns it to the ReputationLowerLimit field.
func (o *SettingsRequest) SetReputationLowerLimit(v int32) {
o.ReputationLowerLimit = &v
}
// GetReputationUpperLimit returns the ReputationUpperLimit field value if set, zero value otherwise.
func (o *SettingsRequest) GetReputationUpperLimit() int32 {
if o == nil || IsNil(o.ReputationUpperLimit) {
var ret int32
return ret
}
return *o.ReputationUpperLimit
}
// GetReputationUpperLimitOk returns a tuple with the ReputationUpperLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetReputationUpperLimitOk() (*int32, bool) {
if o == nil || IsNil(o.ReputationUpperLimit) {
return nil, false
}
return o.ReputationUpperLimit, true
}
// HasReputationUpperLimit returns a boolean if a field has been set.
func (o *SettingsRequest) HasReputationUpperLimit() bool {
if o != nil && !IsNil(o.ReputationUpperLimit) {
return true
}
return false
}
// SetReputationUpperLimit gets a reference to the given int32 and assigns it to the ReputationUpperLimit field.
func (o *SettingsRequest) SetReputationUpperLimit(v int32) {
o.ReputationUpperLimit = &v
}
// GetFooterLinks returns the FooterLinks field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SettingsRequest) GetFooterLinks() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.FooterLinks
}
// GetFooterLinksOk returns a tuple with the FooterLinks field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *SettingsRequest) GetFooterLinksOk() (*interface{}, bool) {
if o == nil || IsNil(o.FooterLinks) {
return nil, false
}
return &o.FooterLinks, true
}
// HasFooterLinks returns a boolean if a field has been set.
func (o *SettingsRequest) HasFooterLinks() bool {
if o != nil && !IsNil(o.FooterLinks) {
return true
}
return false
}
// SetFooterLinks gets a reference to the given interface{} and assigns it to the FooterLinks field.
func (o *SettingsRequest) SetFooterLinks(v interface{}) {
o.FooterLinks = v
}
// GetGdprCompliance returns the GdprCompliance field value if set, zero value otherwise.
func (o *SettingsRequest) GetGdprCompliance() bool {
if o == nil || IsNil(o.GdprCompliance) {
var ret bool
return ret
}
return *o.GdprCompliance
}
// GetGdprComplianceOk returns a tuple with the GdprCompliance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetGdprComplianceOk() (*bool, bool) {
if o == nil || IsNil(o.GdprCompliance) {
return nil, false
}
return o.GdprCompliance, true
}
// HasGdprCompliance returns a boolean if a field has been set.
func (o *SettingsRequest) HasGdprCompliance() bool {
if o != nil && !IsNil(o.GdprCompliance) {
return true
}
return false
}
// SetGdprCompliance gets a reference to the given bool and assigns it to the GdprCompliance field.
func (o *SettingsRequest) SetGdprCompliance(v bool) {
o.GdprCompliance = &v
}
// GetImpersonation returns the Impersonation field value if set, zero value otherwise.
func (o *SettingsRequest) GetImpersonation() bool {
if o == nil || IsNil(o.Impersonation) {
var ret bool
return ret
}
return *o.Impersonation
}
// GetImpersonationOk returns a tuple with the Impersonation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetImpersonationOk() (*bool, bool) {
if o == nil || IsNil(o.Impersonation) {
return nil, false
}
return o.Impersonation, true
}
// HasImpersonation returns a boolean if a field has been set.
func (o *SettingsRequest) HasImpersonation() bool {
if o != nil && !IsNil(o.Impersonation) {
return true
}
return false
}
// SetImpersonation gets a reference to the given bool and assigns it to the Impersonation field.
func (o *SettingsRequest) SetImpersonation(v bool) {
o.Impersonation = &v
}
// GetImpersonationRequireReason returns the ImpersonationRequireReason field value if set, zero value otherwise.
func (o *SettingsRequest) GetImpersonationRequireReason() bool {
if o == nil || IsNil(o.ImpersonationRequireReason) {
var ret bool
return ret
}
return *o.ImpersonationRequireReason
}
// GetImpersonationRequireReasonOk returns a tuple with the ImpersonationRequireReason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetImpersonationRequireReasonOk() (*bool, bool) {
if o == nil || IsNil(o.ImpersonationRequireReason) {
return nil, false
}
return o.ImpersonationRequireReason, true
}
// HasImpersonationRequireReason returns a boolean if a field has been set.
func (o *SettingsRequest) HasImpersonationRequireReason() bool {
if o != nil && !IsNil(o.ImpersonationRequireReason) {
return true
}
return false
}
// SetImpersonationRequireReason gets a reference to the given bool and assigns it to the ImpersonationRequireReason field.
func (o *SettingsRequest) SetImpersonationRequireReason(v bool) {
o.ImpersonationRequireReason = &v
}
// GetDefaultTokenDuration returns the DefaultTokenDuration field value if set, zero value otherwise.
func (o *SettingsRequest) GetDefaultTokenDuration() string {
if o == nil || IsNil(o.DefaultTokenDuration) {
var ret string
return ret
}
return *o.DefaultTokenDuration
}
// GetDefaultTokenDurationOk returns a tuple with the DefaultTokenDuration field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetDefaultTokenDurationOk() (*string, bool) {
if o == nil || IsNil(o.DefaultTokenDuration) {
return nil, false
}
return o.DefaultTokenDuration, true
}
// HasDefaultTokenDuration returns a boolean if a field has been set.
func (o *SettingsRequest) HasDefaultTokenDuration() bool {
if o != nil && !IsNil(o.DefaultTokenDuration) {
return true
}
return false
}
// SetDefaultTokenDuration gets a reference to the given string and assigns it to the DefaultTokenDuration field.
func (o *SettingsRequest) SetDefaultTokenDuration(v string) {
o.DefaultTokenDuration = &v
}
// GetDefaultTokenLength returns the DefaultTokenLength field value if set, zero value otherwise.
func (o *SettingsRequest) GetDefaultTokenLength() int32 {
if o == nil || IsNil(o.DefaultTokenLength) {
var ret int32
return ret
}
return *o.DefaultTokenLength
}
// GetDefaultTokenLengthOk returns a tuple with the DefaultTokenLength field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetDefaultTokenLengthOk() (*int32, bool) {
if o == nil || IsNil(o.DefaultTokenLength) {
return nil, false
}
return o.DefaultTokenLength, true
}
// HasDefaultTokenLength returns a boolean if a field has been set.
func (o *SettingsRequest) HasDefaultTokenLength() bool {
if o != nil && !IsNil(o.DefaultTokenLength) {
return true
}
return false
}
// SetDefaultTokenLength gets a reference to the given int32 and assigns it to the DefaultTokenLength field.
func (o *SettingsRequest) SetDefaultTokenLength(v int32) {
o.DefaultTokenLength = &v
}
// GetPaginationDefaultPageSize returns the PaginationDefaultPageSize field value if set, zero value otherwise.
func (o *SettingsRequest) GetPaginationDefaultPageSize() int32 {
if o == nil || IsNil(o.PaginationDefaultPageSize) {
var ret int32
return ret
}
return *o.PaginationDefaultPageSize
}
// GetPaginationDefaultPageSizeOk returns a tuple with the PaginationDefaultPageSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetPaginationDefaultPageSizeOk() (*int32, bool) {
if o == nil || IsNil(o.PaginationDefaultPageSize) {
return nil, false
}
return o.PaginationDefaultPageSize, true
}
// HasPaginationDefaultPageSize returns a boolean if a field has been set.
func (o *SettingsRequest) HasPaginationDefaultPageSize() bool {
if o != nil && !IsNil(o.PaginationDefaultPageSize) {
return true
}
return false
}
// SetPaginationDefaultPageSize gets a reference to the given int32 and assigns it to the PaginationDefaultPageSize field.
func (o *SettingsRequest) SetPaginationDefaultPageSize(v int32) {
o.PaginationDefaultPageSize = &v
}
// GetPaginationMaxPageSize returns the PaginationMaxPageSize field value if set, zero value otherwise.
func (o *SettingsRequest) GetPaginationMaxPageSize() int32 {
if o == nil || IsNil(o.PaginationMaxPageSize) {
var ret int32
return ret
}
return *o.PaginationMaxPageSize
}
// GetPaginationMaxPageSizeOk returns a tuple with the PaginationMaxPageSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetPaginationMaxPageSizeOk() (*int32, bool) {
if o == nil || IsNil(o.PaginationMaxPageSize) {
return nil, false
}
return o.PaginationMaxPageSize, true
}
// HasPaginationMaxPageSize returns a boolean if a field has been set.
func (o *SettingsRequest) HasPaginationMaxPageSize() bool {
if o != nil && !IsNil(o.PaginationMaxPageSize) {
return true
}
return false
}
// SetPaginationMaxPageSize gets a reference to the given int32 and assigns it to the PaginationMaxPageSize field.
func (o *SettingsRequest) SetPaginationMaxPageSize(v int32) {
o.PaginationMaxPageSize = &v
}
// GetFlags returns the Flags field value
func (o *SettingsRequest) GetFlags() PatchedSettingsRequestFlags {
if o == nil {
var ret PatchedSettingsRequestFlags
return ret
}
return o.Flags
}
// GetFlagsOk returns a tuple with the Flags field value
// and a boolean to check if the value has been set.
func (o *SettingsRequest) GetFlagsOk() (*PatchedSettingsRequestFlags, bool) {
if o == nil {
return nil, false
}
return &o.Flags, true
}
// SetFlags sets field value
func (o *SettingsRequest) SetFlags(v PatchedSettingsRequestFlags) {
o.Flags = v
}
func (o SettingsRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SettingsRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Avatars) {
toSerialize["avatars"] = o.Avatars
}
if !IsNil(o.DefaultUserChangeName) {
toSerialize["default_user_change_name"] = o.DefaultUserChangeName
}
if !IsNil(o.DefaultUserChangeEmail) {
toSerialize["default_user_change_email"] = o.DefaultUserChangeEmail
}
if !IsNil(o.DefaultUserChangeUsername) {
toSerialize["default_user_change_username"] = o.DefaultUserChangeUsername
}
if !IsNil(o.EventRetention) {
toSerialize["event_retention"] = o.EventRetention
}
if !IsNil(o.ReputationLowerLimit) {
toSerialize["reputation_lower_limit"] = o.ReputationLowerLimit
}
if !IsNil(o.ReputationUpperLimit) {
toSerialize["reputation_upper_limit"] = o.ReputationUpperLimit
}
if o.FooterLinks != nil {
toSerialize["footer_links"] = o.FooterLinks
}
if !IsNil(o.GdprCompliance) {
toSerialize["gdpr_compliance"] = o.GdprCompliance
}
if !IsNil(o.Impersonation) {
toSerialize["impersonation"] = o.Impersonation
}
if !IsNil(o.ImpersonationRequireReason) {
toSerialize["impersonation_require_reason"] = o.ImpersonationRequireReason
}
if !IsNil(o.DefaultTokenDuration) {
toSerialize["default_token_duration"] = o.DefaultTokenDuration
}
if !IsNil(o.DefaultTokenLength) {
toSerialize["default_token_length"] = o.DefaultTokenLength
}
if !IsNil(o.PaginationDefaultPageSize) {
toSerialize["pagination_default_page_size"] = o.PaginationDefaultPageSize
}
if !IsNil(o.PaginationMaxPageSize) {
toSerialize["pagination_max_page_size"] = o.PaginationMaxPageSize
}
toSerialize["flags"] = o.Flags
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *SettingsRequest) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"flags",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varSettingsRequest := _SettingsRequest{}
err = json.Unmarshal(data, &varSettingsRequest)
if err != nil {
return err
}
*o = SettingsRequest(varSettingsRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "avatars")
delete(additionalProperties, "default_user_change_name")
delete(additionalProperties, "default_user_change_email")
delete(additionalProperties, "default_user_change_username")
delete(additionalProperties, "event_retention")
delete(additionalProperties, "reputation_lower_limit")
delete(additionalProperties, "reputation_upper_limit")
delete(additionalProperties, "footer_links")
delete(additionalProperties, "gdpr_compliance")
delete(additionalProperties, "impersonation")
delete(additionalProperties, "impersonation_require_reason")
delete(additionalProperties, "default_token_duration")
delete(additionalProperties, "default_token_length")
delete(additionalProperties, "pagination_default_page_size")
delete(additionalProperties, "pagination_max_page_size")
delete(additionalProperties, "flags")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableSettingsRequest struct {
value *SettingsRequest
isSet bool
}
func (v NullableSettingsRequest) Get() *SettingsRequest {
return v.value
}
func (v *NullableSettingsRequest) Set(val *SettingsRequest) {
v.value = val
v.isSet = true
}
func (v NullableSettingsRequest) IsSet() bool {
return v.isSet
}
func (v *NullableSettingsRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSettingsRequest(val *SettingsRequest) *NullableSettingsRequest {
return &NullableSettingsRequest{value: val, isSet: true}
}
func (v NullableSettingsRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSettingsRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}