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

495 lines
14 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"
)
// checks if the PatchedFlowRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PatchedFlowRequest{}
// PatchedFlowRequest Flow Serializer
type PatchedFlowRequest struct {
Name *string `json:"name,omitempty"`
// Visible in the URL.
Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
// Shown as the Title in Flow pages.
Title *string `json:"title,omitempty"`
// Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.
Designation *FlowDesignationEnum `json:"designation,omitempty"`
// Background shown during execution
Background *string `json:"background,omitempty"`
PolicyEngineMode *PolicyEngineMode `json:"policy_engine_mode,omitempty"`
// Enable compatibility mode, increases compatibility with password managers on mobile devices.
CompatibilityMode *bool `json:"compatibility_mode,omitempty"`
Layout *FlowLayoutEnum `json:"layout,omitempty"`
// Configure what should happen when a flow denies access to a user.
DeniedAction *DeniedActionEnum `json:"denied_action,omitempty"`
// Required level of authentication and authorization to access a flow.
Authentication *AuthenticationEnum `json:"authentication,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PatchedFlowRequest PatchedFlowRequest
// NewPatchedFlowRequest instantiates a new PatchedFlowRequest 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 NewPatchedFlowRequest() *PatchedFlowRequest {
this := PatchedFlowRequest{}
return &this
}
// NewPatchedFlowRequestWithDefaults instantiates a new PatchedFlowRequest 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 NewPatchedFlowRequestWithDefaults() *PatchedFlowRequest {
this := PatchedFlowRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *PatchedFlowRequest) SetName(v string) {
o.Name = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetSlug() string {
if o == nil || IsNil(o.Slug) {
var ret string
return ret
}
return *o.Slug
}
// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetSlugOk() (*string, bool) {
if o == nil || IsNil(o.Slug) {
return nil, false
}
return o.Slug, true
}
// HasSlug returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasSlug() bool {
if o != nil && !IsNil(o.Slug) {
return true
}
return false
}
// SetSlug gets a reference to the given string and assigns it to the Slug field.
func (o *PatchedFlowRequest) SetSlug(v string) {
o.Slug = &v
}
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetTitle() string {
if o == nil || IsNil(o.Title) {
var ret string
return ret
}
return *o.Title
}
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetTitleOk() (*string, bool) {
if o == nil || IsNil(o.Title) {
return nil, false
}
return o.Title, true
}
// HasTitle returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasTitle() bool {
if o != nil && !IsNil(o.Title) {
return true
}
return false
}
// SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *PatchedFlowRequest) SetTitle(v string) {
o.Title = &v
}
// GetDesignation returns the Designation field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetDesignation() FlowDesignationEnum {
if o == nil || IsNil(o.Designation) {
var ret FlowDesignationEnum
return ret
}
return *o.Designation
}
// GetDesignationOk returns a tuple with the Designation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetDesignationOk() (*FlowDesignationEnum, bool) {
if o == nil || IsNil(o.Designation) {
return nil, false
}
return o.Designation, true
}
// HasDesignation returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasDesignation() bool {
if o != nil && !IsNil(o.Designation) {
return true
}
return false
}
// SetDesignation gets a reference to the given FlowDesignationEnum and assigns it to the Designation field.
func (o *PatchedFlowRequest) SetDesignation(v FlowDesignationEnum) {
o.Designation = &v
}
// GetBackground returns the Background field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetBackground() string {
if o == nil || IsNil(o.Background) {
var ret string
return ret
}
return *o.Background
}
// GetBackgroundOk returns a tuple with the Background field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetBackgroundOk() (*string, bool) {
if o == nil || IsNil(o.Background) {
return nil, false
}
return o.Background, true
}
// HasBackground returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasBackground() bool {
if o != nil && !IsNil(o.Background) {
return true
}
return false
}
// SetBackground gets a reference to the given string and assigns it to the Background field.
func (o *PatchedFlowRequest) SetBackground(v string) {
o.Background = &v
}
// GetPolicyEngineMode returns the PolicyEngineMode field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetPolicyEngineMode() PolicyEngineMode {
if o == nil || IsNil(o.PolicyEngineMode) {
var ret PolicyEngineMode
return ret
}
return *o.PolicyEngineMode
}
// GetPolicyEngineModeOk returns a tuple with the PolicyEngineMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetPolicyEngineModeOk() (*PolicyEngineMode, bool) {
if o == nil || IsNil(o.PolicyEngineMode) {
return nil, false
}
return o.PolicyEngineMode, true
}
// HasPolicyEngineMode returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasPolicyEngineMode() bool {
if o != nil && !IsNil(o.PolicyEngineMode) {
return true
}
return false
}
// SetPolicyEngineMode gets a reference to the given PolicyEngineMode and assigns it to the PolicyEngineMode field.
func (o *PatchedFlowRequest) SetPolicyEngineMode(v PolicyEngineMode) {
o.PolicyEngineMode = &v
}
// GetCompatibilityMode returns the CompatibilityMode field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetCompatibilityMode() bool {
if o == nil || IsNil(o.CompatibilityMode) {
var ret bool
return ret
}
return *o.CompatibilityMode
}
// GetCompatibilityModeOk returns a tuple with the CompatibilityMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetCompatibilityModeOk() (*bool, bool) {
if o == nil || IsNil(o.CompatibilityMode) {
return nil, false
}
return o.CompatibilityMode, true
}
// HasCompatibilityMode returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasCompatibilityMode() bool {
if o != nil && !IsNil(o.CompatibilityMode) {
return true
}
return false
}
// SetCompatibilityMode gets a reference to the given bool and assigns it to the CompatibilityMode field.
func (o *PatchedFlowRequest) SetCompatibilityMode(v bool) {
o.CompatibilityMode = &v
}
// GetLayout returns the Layout field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetLayout() FlowLayoutEnum {
if o == nil || IsNil(o.Layout) {
var ret FlowLayoutEnum
return ret
}
return *o.Layout
}
// GetLayoutOk returns a tuple with the Layout field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetLayoutOk() (*FlowLayoutEnum, bool) {
if o == nil || IsNil(o.Layout) {
return nil, false
}
return o.Layout, true
}
// HasLayout returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasLayout() bool {
if o != nil && !IsNil(o.Layout) {
return true
}
return false
}
// SetLayout gets a reference to the given FlowLayoutEnum and assigns it to the Layout field.
func (o *PatchedFlowRequest) SetLayout(v FlowLayoutEnum) {
o.Layout = &v
}
// GetDeniedAction returns the DeniedAction field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetDeniedAction() DeniedActionEnum {
if o == nil || IsNil(o.DeniedAction) {
var ret DeniedActionEnum
return ret
}
return *o.DeniedAction
}
// GetDeniedActionOk returns a tuple with the DeniedAction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetDeniedActionOk() (*DeniedActionEnum, bool) {
if o == nil || IsNil(o.DeniedAction) {
return nil, false
}
return o.DeniedAction, true
}
// HasDeniedAction returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasDeniedAction() bool {
if o != nil && !IsNil(o.DeniedAction) {
return true
}
return false
}
// SetDeniedAction gets a reference to the given DeniedActionEnum and assigns it to the DeniedAction field.
func (o *PatchedFlowRequest) SetDeniedAction(v DeniedActionEnum) {
o.DeniedAction = &v
}
// GetAuthentication returns the Authentication field value if set, zero value otherwise.
func (o *PatchedFlowRequest) GetAuthentication() AuthenticationEnum {
if o == nil || IsNil(o.Authentication) {
var ret AuthenticationEnum
return ret
}
return *o.Authentication
}
// GetAuthenticationOk returns a tuple with the Authentication field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedFlowRequest) GetAuthenticationOk() (*AuthenticationEnum, bool) {
if o == nil || IsNil(o.Authentication) {
return nil, false
}
return o.Authentication, true
}
// HasAuthentication returns a boolean if a field has been set.
func (o *PatchedFlowRequest) HasAuthentication() bool {
if o != nil && !IsNil(o.Authentication) {
return true
}
return false
}
// SetAuthentication gets a reference to the given AuthenticationEnum and assigns it to the Authentication field.
func (o *PatchedFlowRequest) SetAuthentication(v AuthenticationEnum) {
o.Authentication = &v
}
func (o PatchedFlowRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PatchedFlowRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Slug) {
toSerialize["slug"] = o.Slug
}
if !IsNil(o.Title) {
toSerialize["title"] = o.Title
}
if !IsNil(o.Designation) {
toSerialize["designation"] = o.Designation
}
if !IsNil(o.Background) {
toSerialize["background"] = o.Background
}
if !IsNil(o.PolicyEngineMode) {
toSerialize["policy_engine_mode"] = o.PolicyEngineMode
}
if !IsNil(o.CompatibilityMode) {
toSerialize["compatibility_mode"] = o.CompatibilityMode
}
if !IsNil(o.Layout) {
toSerialize["layout"] = o.Layout
}
if !IsNil(o.DeniedAction) {
toSerialize["denied_action"] = o.DeniedAction
}
if !IsNil(o.Authentication) {
toSerialize["authentication"] = o.Authentication
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *PatchedFlowRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedFlowRequest := _PatchedFlowRequest{}
err = json.Unmarshal(data, &varPatchedFlowRequest)
if err != nil {
return err
}
*o = PatchedFlowRequest(varPatchedFlowRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "title")
delete(additionalProperties, "designation")
delete(additionalProperties, "background")
delete(additionalProperties, "policy_engine_mode")
delete(additionalProperties, "compatibility_mode")
delete(additionalProperties, "layout")
delete(additionalProperties, "denied_action")
delete(additionalProperties, "authentication")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePatchedFlowRequest struct {
value *PatchedFlowRequest
isSet bool
}
func (v NullablePatchedFlowRequest) Get() *PatchedFlowRequest {
return v.value
}
func (v *NullablePatchedFlowRequest) Set(val *PatchedFlowRequest) {
v.value = val
v.isSet = true
}
func (v NullablePatchedFlowRequest) IsSet() bool {
return v.isSet
}
func (v *NullablePatchedFlowRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePatchedFlowRequest(val *PatchedFlowRequest) *NullablePatchedFlowRequest {
return &NullablePatchedFlowRequest{value: val, isSet: true}
}
func (v NullablePatchedFlowRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePatchedFlowRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}