Files
authentik/packages/client-go/model_patched_settings_request_flags.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

259 lines
8.1 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 PatchedSettingsRequestFlags type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PatchedSettingsRequestFlags{}
// PatchedSettingsRequestFlags struct for PatchedSettingsRequestFlags
type PatchedSettingsRequestFlags struct {
// Configure if applications without any policy/group/user bindings should be accessible to any user.
CoreDefaultAppAccess bool `json:"core_default_app_access"`
// Include additional information in audit logs, may incur a performance penalty.
EnterpriseAuditIncludeExpandedDiff bool `json:"enterprise_audit_include_expanded_diff"`
// Upon successful authentication, re-start authentication in other open tabs.
FlowsContinuousLogin bool `json:"flows_continuous_login"`
// Refresh other tabs after successful authentication.
FlowsRefreshOthers bool `json:"flows_refresh_others"`
AdditionalProperties map[string]interface{}
}
type _PatchedSettingsRequestFlags PatchedSettingsRequestFlags
// NewPatchedSettingsRequestFlags instantiates a new PatchedSettingsRequestFlags 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 NewPatchedSettingsRequestFlags(coreDefaultAppAccess bool, enterpriseAuditIncludeExpandedDiff bool, flowsContinuousLogin bool, flowsRefreshOthers bool) *PatchedSettingsRequestFlags {
this := PatchedSettingsRequestFlags{}
this.CoreDefaultAppAccess = coreDefaultAppAccess
this.EnterpriseAuditIncludeExpandedDiff = enterpriseAuditIncludeExpandedDiff
this.FlowsContinuousLogin = flowsContinuousLogin
this.FlowsRefreshOthers = flowsRefreshOthers
return &this
}
// NewPatchedSettingsRequestFlagsWithDefaults instantiates a new PatchedSettingsRequestFlags 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 NewPatchedSettingsRequestFlagsWithDefaults() *PatchedSettingsRequestFlags {
this := PatchedSettingsRequestFlags{}
return &this
}
// GetCoreDefaultAppAccess returns the CoreDefaultAppAccess field value
func (o *PatchedSettingsRequestFlags) GetCoreDefaultAppAccess() bool {
if o == nil {
var ret bool
return ret
}
return o.CoreDefaultAppAccess
}
// GetCoreDefaultAppAccessOk returns a tuple with the CoreDefaultAppAccess field value
// and a boolean to check if the value has been set.
func (o *PatchedSettingsRequestFlags) GetCoreDefaultAppAccessOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.CoreDefaultAppAccess, true
}
// SetCoreDefaultAppAccess sets field value
func (o *PatchedSettingsRequestFlags) SetCoreDefaultAppAccess(v bool) {
o.CoreDefaultAppAccess = v
}
// GetEnterpriseAuditIncludeExpandedDiff returns the EnterpriseAuditIncludeExpandedDiff field value
func (o *PatchedSettingsRequestFlags) GetEnterpriseAuditIncludeExpandedDiff() bool {
if o == nil {
var ret bool
return ret
}
return o.EnterpriseAuditIncludeExpandedDiff
}
// GetEnterpriseAuditIncludeExpandedDiffOk returns a tuple with the EnterpriseAuditIncludeExpandedDiff field value
// and a boolean to check if the value has been set.
func (o *PatchedSettingsRequestFlags) GetEnterpriseAuditIncludeExpandedDiffOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.EnterpriseAuditIncludeExpandedDiff, true
}
// SetEnterpriseAuditIncludeExpandedDiff sets field value
func (o *PatchedSettingsRequestFlags) SetEnterpriseAuditIncludeExpandedDiff(v bool) {
o.EnterpriseAuditIncludeExpandedDiff = v
}
// GetFlowsContinuousLogin returns the FlowsContinuousLogin field value
func (o *PatchedSettingsRequestFlags) GetFlowsContinuousLogin() bool {
if o == nil {
var ret bool
return ret
}
return o.FlowsContinuousLogin
}
// GetFlowsContinuousLoginOk returns a tuple with the FlowsContinuousLogin field value
// and a boolean to check if the value has been set.
func (o *PatchedSettingsRequestFlags) GetFlowsContinuousLoginOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.FlowsContinuousLogin, true
}
// SetFlowsContinuousLogin sets field value
func (o *PatchedSettingsRequestFlags) SetFlowsContinuousLogin(v bool) {
o.FlowsContinuousLogin = v
}
// GetFlowsRefreshOthers returns the FlowsRefreshOthers field value
func (o *PatchedSettingsRequestFlags) GetFlowsRefreshOthers() bool {
if o == nil {
var ret bool
return ret
}
return o.FlowsRefreshOthers
}
// GetFlowsRefreshOthersOk returns a tuple with the FlowsRefreshOthers field value
// and a boolean to check if the value has been set.
func (o *PatchedSettingsRequestFlags) GetFlowsRefreshOthersOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.FlowsRefreshOthers, true
}
// SetFlowsRefreshOthers sets field value
func (o *PatchedSettingsRequestFlags) SetFlowsRefreshOthers(v bool) {
o.FlowsRefreshOthers = v
}
func (o PatchedSettingsRequestFlags) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PatchedSettingsRequestFlags) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["core_default_app_access"] = o.CoreDefaultAppAccess
toSerialize["enterprise_audit_include_expanded_diff"] = o.EnterpriseAuditIncludeExpandedDiff
toSerialize["flows_continuous_login"] = o.FlowsContinuousLogin
toSerialize["flows_refresh_others"] = o.FlowsRefreshOthers
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *PatchedSettingsRequestFlags) 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{
"core_default_app_access",
"enterprise_audit_include_expanded_diff",
"flows_continuous_login",
"flows_refresh_others",
}
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)
}
}
varPatchedSettingsRequestFlags := _PatchedSettingsRequestFlags{}
err = json.Unmarshal(data, &varPatchedSettingsRequestFlags)
if err != nil {
return err
}
*o = PatchedSettingsRequestFlags(varPatchedSettingsRequestFlags)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "core_default_app_access")
delete(additionalProperties, "enterprise_audit_include_expanded_diff")
delete(additionalProperties, "flows_continuous_login")
delete(additionalProperties, "flows_refresh_others")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePatchedSettingsRequestFlags struct {
value *PatchedSettingsRequestFlags
isSet bool
}
func (v NullablePatchedSettingsRequestFlags) Get() *PatchedSettingsRequestFlags {
return v.value
}
func (v *NullablePatchedSettingsRequestFlags) Set(val *PatchedSettingsRequestFlags) {
v.value = val
v.isSet = true
}
func (v NullablePatchedSettingsRequestFlags) IsSet() bool {
return v.isSet
}
func (v *NullablePatchedSettingsRequestFlags) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePatchedSettingsRequestFlags(val *PatchedSettingsRequestFlags) *NullablePatchedSettingsRequestFlags {
return &NullablePatchedSettingsRequestFlags{value: val, isSet: true}
}
func (v NullablePatchedSettingsRequestFlags) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePatchedSettingsRequestFlags) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}