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

539 lines
16 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 PatchedApplicationRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PatchedApplicationRequest{}
// PatchedApplicationRequest Application Serializer
type PatchedApplicationRequest struct {
// Application's display Name.
Name *string `json:"name,omitempty"`
// Internal application name, used in URLs.
Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"`
Provider NullableInt32 `json:"provider,omitempty"`
BackchannelProviders []int32 `json:"backchannel_providers,omitempty"`
// Open launch URL in a new browser tab or window.
OpenInNewTab *bool `json:"open_in_new_tab,omitempty"`
MetaLaunchUrl *string `json:"meta_launch_url,omitempty"`
MetaIcon *string `json:"meta_icon,omitempty"`
MetaDescription *string `json:"meta_description,omitempty"`
MetaPublisher *string `json:"meta_publisher,omitempty"`
PolicyEngineMode *PolicyEngineMode `json:"policy_engine_mode,omitempty"`
Group *string `json:"group,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PatchedApplicationRequest PatchedApplicationRequest
// NewPatchedApplicationRequest instantiates a new PatchedApplicationRequest 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 NewPatchedApplicationRequest() *PatchedApplicationRequest {
this := PatchedApplicationRequest{}
return &this
}
// NewPatchedApplicationRequestWithDefaults instantiates a new PatchedApplicationRequest 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 NewPatchedApplicationRequestWithDefaults() *PatchedApplicationRequest {
this := PatchedApplicationRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) 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 *PatchedApplicationRequest) 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 *PatchedApplicationRequest) 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 *PatchedApplicationRequest) SetName(v string) {
o.Name = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) 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 *PatchedApplicationRequest) 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 *PatchedApplicationRequest) 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 *PatchedApplicationRequest) SetSlug(v string) {
o.Slug = &v
}
// GetProvider returns the Provider field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedApplicationRequest) GetProvider() int32 {
if o == nil || IsNil(o.Provider.Get()) {
var ret int32
return ret
}
return *o.Provider.Get()
}
// GetProviderOk returns a tuple with the Provider 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 *PatchedApplicationRequest) GetProviderOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.Provider.Get(), o.Provider.IsSet()
}
// HasProvider returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasProvider() bool {
if o != nil && o.Provider.IsSet() {
return true
}
return false
}
// SetProvider gets a reference to the given NullableInt32 and assigns it to the Provider field.
func (o *PatchedApplicationRequest) SetProvider(v int32) {
o.Provider.Set(&v)
}
// SetProviderNil sets the value for Provider to be an explicit nil
func (o *PatchedApplicationRequest) SetProviderNil() {
o.Provider.Set(nil)
}
// UnsetProvider ensures that no value is present for Provider, not even an explicit nil
func (o *PatchedApplicationRequest) UnsetProvider() {
o.Provider.Unset()
}
// GetBackchannelProviders returns the BackchannelProviders field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) GetBackchannelProviders() []int32 {
if o == nil || IsNil(o.BackchannelProviders) {
var ret []int32
return ret
}
return o.BackchannelProviders
}
// GetBackchannelProvidersOk returns a tuple with the BackchannelProviders field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedApplicationRequest) GetBackchannelProvidersOk() ([]int32, bool) {
if o == nil || IsNil(o.BackchannelProviders) {
return nil, false
}
return o.BackchannelProviders, true
}
// HasBackchannelProviders returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasBackchannelProviders() bool {
if o != nil && !IsNil(o.BackchannelProviders) {
return true
}
return false
}
// SetBackchannelProviders gets a reference to the given []int32 and assigns it to the BackchannelProviders field.
func (o *PatchedApplicationRequest) SetBackchannelProviders(v []int32) {
o.BackchannelProviders = v
}
// GetOpenInNewTab returns the OpenInNewTab field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) GetOpenInNewTab() bool {
if o == nil || IsNil(o.OpenInNewTab) {
var ret bool
return ret
}
return *o.OpenInNewTab
}
// GetOpenInNewTabOk returns a tuple with the OpenInNewTab field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedApplicationRequest) GetOpenInNewTabOk() (*bool, bool) {
if o == nil || IsNil(o.OpenInNewTab) {
return nil, false
}
return o.OpenInNewTab, true
}
// HasOpenInNewTab returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasOpenInNewTab() bool {
if o != nil && !IsNil(o.OpenInNewTab) {
return true
}
return false
}
// SetOpenInNewTab gets a reference to the given bool and assigns it to the OpenInNewTab field.
func (o *PatchedApplicationRequest) SetOpenInNewTab(v bool) {
o.OpenInNewTab = &v
}
// GetMetaLaunchUrl returns the MetaLaunchUrl field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) GetMetaLaunchUrl() string {
if o == nil || IsNil(o.MetaLaunchUrl) {
var ret string
return ret
}
return *o.MetaLaunchUrl
}
// GetMetaLaunchUrlOk returns a tuple with the MetaLaunchUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedApplicationRequest) GetMetaLaunchUrlOk() (*string, bool) {
if o == nil || IsNil(o.MetaLaunchUrl) {
return nil, false
}
return o.MetaLaunchUrl, true
}
// HasMetaLaunchUrl returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasMetaLaunchUrl() bool {
if o != nil && !IsNil(o.MetaLaunchUrl) {
return true
}
return false
}
// SetMetaLaunchUrl gets a reference to the given string and assigns it to the MetaLaunchUrl field.
func (o *PatchedApplicationRequest) SetMetaLaunchUrl(v string) {
o.MetaLaunchUrl = &v
}
// GetMetaIcon returns the MetaIcon field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) GetMetaIcon() string {
if o == nil || IsNil(o.MetaIcon) {
var ret string
return ret
}
return *o.MetaIcon
}
// GetMetaIconOk returns a tuple with the MetaIcon field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedApplicationRequest) GetMetaIconOk() (*string, bool) {
if o == nil || IsNil(o.MetaIcon) {
return nil, false
}
return o.MetaIcon, true
}
// HasMetaIcon returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasMetaIcon() bool {
if o != nil && !IsNil(o.MetaIcon) {
return true
}
return false
}
// SetMetaIcon gets a reference to the given string and assigns it to the MetaIcon field.
func (o *PatchedApplicationRequest) SetMetaIcon(v string) {
o.MetaIcon = &v
}
// GetMetaDescription returns the MetaDescription field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) GetMetaDescription() string {
if o == nil || IsNil(o.MetaDescription) {
var ret string
return ret
}
return *o.MetaDescription
}
// GetMetaDescriptionOk returns a tuple with the MetaDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedApplicationRequest) GetMetaDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.MetaDescription) {
return nil, false
}
return o.MetaDescription, true
}
// HasMetaDescription returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasMetaDescription() bool {
if o != nil && !IsNil(o.MetaDescription) {
return true
}
return false
}
// SetMetaDescription gets a reference to the given string and assigns it to the MetaDescription field.
func (o *PatchedApplicationRequest) SetMetaDescription(v string) {
o.MetaDescription = &v
}
// GetMetaPublisher returns the MetaPublisher field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) GetMetaPublisher() string {
if o == nil || IsNil(o.MetaPublisher) {
var ret string
return ret
}
return *o.MetaPublisher
}
// GetMetaPublisherOk returns a tuple with the MetaPublisher field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedApplicationRequest) GetMetaPublisherOk() (*string, bool) {
if o == nil || IsNil(o.MetaPublisher) {
return nil, false
}
return o.MetaPublisher, true
}
// HasMetaPublisher returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasMetaPublisher() bool {
if o != nil && !IsNil(o.MetaPublisher) {
return true
}
return false
}
// SetMetaPublisher gets a reference to the given string and assigns it to the MetaPublisher field.
func (o *PatchedApplicationRequest) SetMetaPublisher(v string) {
o.MetaPublisher = &v
}
// GetPolicyEngineMode returns the PolicyEngineMode field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) 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 *PatchedApplicationRequest) 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 *PatchedApplicationRequest) 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 *PatchedApplicationRequest) SetPolicyEngineMode(v PolicyEngineMode) {
o.PolicyEngineMode = &v
}
// GetGroup returns the Group field value if set, zero value otherwise.
func (o *PatchedApplicationRequest) GetGroup() string {
if o == nil || IsNil(o.Group) {
var ret string
return ret
}
return *o.Group
}
// GetGroupOk returns a tuple with the Group field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedApplicationRequest) GetGroupOk() (*string, bool) {
if o == nil || IsNil(o.Group) {
return nil, false
}
return o.Group, true
}
// HasGroup returns a boolean if a field has been set.
func (o *PatchedApplicationRequest) HasGroup() bool {
if o != nil && !IsNil(o.Group) {
return true
}
return false
}
// SetGroup gets a reference to the given string and assigns it to the Group field.
func (o *PatchedApplicationRequest) SetGroup(v string) {
o.Group = &v
}
func (o PatchedApplicationRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PatchedApplicationRequest) 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 o.Provider.IsSet() {
toSerialize["provider"] = o.Provider.Get()
}
if !IsNil(o.BackchannelProviders) {
toSerialize["backchannel_providers"] = o.BackchannelProviders
}
if !IsNil(o.OpenInNewTab) {
toSerialize["open_in_new_tab"] = o.OpenInNewTab
}
if !IsNil(o.MetaLaunchUrl) {
toSerialize["meta_launch_url"] = o.MetaLaunchUrl
}
if !IsNil(o.MetaIcon) {
toSerialize["meta_icon"] = o.MetaIcon
}
if !IsNil(o.MetaDescription) {
toSerialize["meta_description"] = o.MetaDescription
}
if !IsNil(o.MetaPublisher) {
toSerialize["meta_publisher"] = o.MetaPublisher
}
if !IsNil(o.PolicyEngineMode) {
toSerialize["policy_engine_mode"] = o.PolicyEngineMode
}
if !IsNil(o.Group) {
toSerialize["group"] = o.Group
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *PatchedApplicationRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedApplicationRequest := _PatchedApplicationRequest{}
err = json.Unmarshal(data, &varPatchedApplicationRequest)
if err != nil {
return err
}
*o = PatchedApplicationRequest(varPatchedApplicationRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "provider")
delete(additionalProperties, "backchannel_providers")
delete(additionalProperties, "open_in_new_tab")
delete(additionalProperties, "meta_launch_url")
delete(additionalProperties, "meta_icon")
delete(additionalProperties, "meta_description")
delete(additionalProperties, "meta_publisher")
delete(additionalProperties, "policy_engine_mode")
delete(additionalProperties, "group")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePatchedApplicationRequest struct {
value *PatchedApplicationRequest
isSet bool
}
func (v NullablePatchedApplicationRequest) Get() *PatchedApplicationRequest {
return v.value
}
func (v *NullablePatchedApplicationRequest) Set(val *PatchedApplicationRequest) {
v.value = val
v.isSet = true
}
func (v NullablePatchedApplicationRequest) IsSet() bool {
return v.isSet
}
func (v *NullablePatchedApplicationRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePatchedApplicationRequest(val *PatchedApplicationRequest) *NullablePatchedApplicationRequest {
return &NullablePatchedApplicationRequest{value: val, isSet: true}
}
func (v NullablePatchedApplicationRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePatchedApplicationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}