mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 03:19:51 +03:00
2f70351c90
* 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>
251 lines
7.1 KiB
Go
Generated
251 lines
7.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"
|
|
)
|
|
|
|
// checks if the PropertyMappingTestRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &PropertyMappingTestRequest{}
|
|
|
|
// PropertyMappingTestRequest Test property mapping execution for a user/group with context
|
|
type PropertyMappingTestRequest struct {
|
|
User NullableInt32 `json:"user,omitempty"`
|
|
Context map[string]interface{} `json:"context,omitempty"`
|
|
Group NullableString `json:"group,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _PropertyMappingTestRequest PropertyMappingTestRequest
|
|
|
|
// NewPropertyMappingTestRequest instantiates a new PropertyMappingTestRequest 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 NewPropertyMappingTestRequest() *PropertyMappingTestRequest {
|
|
this := PropertyMappingTestRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewPropertyMappingTestRequestWithDefaults instantiates a new PropertyMappingTestRequest 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 NewPropertyMappingTestRequestWithDefaults() *PropertyMappingTestRequest {
|
|
this := PropertyMappingTestRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *PropertyMappingTestRequest) GetUser() int32 {
|
|
if o == nil || IsNil(o.User.Get()) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.User.Get()
|
|
}
|
|
|
|
// GetUserOk returns a tuple with the User 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 *PropertyMappingTestRequest) GetUserOk() (*int32, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.User.Get(), o.User.IsSet()
|
|
}
|
|
|
|
// HasUser returns a boolean if a field has been set.
|
|
func (o *PropertyMappingTestRequest) HasUser() bool {
|
|
if o != nil && o.User.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUser gets a reference to the given NullableInt32 and assigns it to the User field.
|
|
func (o *PropertyMappingTestRequest) SetUser(v int32) {
|
|
o.User.Set(&v)
|
|
}
|
|
|
|
// SetUserNil sets the value for User to be an explicit nil
|
|
func (o *PropertyMappingTestRequest) SetUserNil() {
|
|
o.User.Set(nil)
|
|
}
|
|
|
|
// UnsetUser ensures that no value is present for User, not even an explicit nil
|
|
func (o *PropertyMappingTestRequest) UnsetUser() {
|
|
o.User.Unset()
|
|
}
|
|
|
|
// GetContext returns the Context field value if set, zero value otherwise.
|
|
func (o *PropertyMappingTestRequest) GetContext() map[string]interface{} {
|
|
if o == nil || IsNil(o.Context) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.Context
|
|
}
|
|
|
|
// GetContextOk returns a tuple with the Context field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PropertyMappingTestRequest) GetContextOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.Context) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.Context, true
|
|
}
|
|
|
|
// HasContext returns a boolean if a field has been set.
|
|
func (o *PropertyMappingTestRequest) HasContext() bool {
|
|
if o != nil && !IsNil(o.Context) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field.
|
|
func (o *PropertyMappingTestRequest) SetContext(v map[string]interface{}) {
|
|
o.Context = v
|
|
}
|
|
|
|
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *PropertyMappingTestRequest) GetGroup() string {
|
|
if o == nil || IsNil(o.Group.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Group.Get()
|
|
}
|
|
|
|
// GetGroupOk returns a tuple with the Group 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 *PropertyMappingTestRequest) GetGroupOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.Group.Get(), o.Group.IsSet()
|
|
}
|
|
|
|
// HasGroup returns a boolean if a field has been set.
|
|
func (o *PropertyMappingTestRequest) HasGroup() bool {
|
|
if o != nil && o.Group.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroup gets a reference to the given NullableString and assigns it to the Group field.
|
|
func (o *PropertyMappingTestRequest) SetGroup(v string) {
|
|
o.Group.Set(&v)
|
|
}
|
|
|
|
// SetGroupNil sets the value for Group to be an explicit nil
|
|
func (o *PropertyMappingTestRequest) SetGroupNil() {
|
|
o.Group.Set(nil)
|
|
}
|
|
|
|
// UnsetGroup ensures that no value is present for Group, not even an explicit nil
|
|
func (o *PropertyMappingTestRequest) UnsetGroup() {
|
|
o.Group.Unset()
|
|
}
|
|
|
|
func (o PropertyMappingTestRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o PropertyMappingTestRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.User.IsSet() {
|
|
toSerialize["user"] = o.User.Get()
|
|
}
|
|
if !IsNil(o.Context) {
|
|
toSerialize["context"] = o.Context
|
|
}
|
|
if o.Group.IsSet() {
|
|
toSerialize["group"] = o.Group.Get()
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *PropertyMappingTestRequest) UnmarshalJSON(data []byte) (err error) {
|
|
varPropertyMappingTestRequest := _PropertyMappingTestRequest{}
|
|
|
|
err = json.Unmarshal(data, &varPropertyMappingTestRequest)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = PropertyMappingTestRequest(varPropertyMappingTestRequest)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "user")
|
|
delete(additionalProperties, "context")
|
|
delete(additionalProperties, "group")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullablePropertyMappingTestRequest struct {
|
|
value *PropertyMappingTestRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullablePropertyMappingTestRequest) Get() *PropertyMappingTestRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullablePropertyMappingTestRequest) Set(val *PropertyMappingTestRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullablePropertyMappingTestRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullablePropertyMappingTestRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullablePropertyMappingTestRequest(val *PropertyMappingTestRequest) *NullablePropertyMappingTestRequest {
|
|
return &NullablePropertyMappingTestRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullablePropertyMappingTestRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullablePropertyMappingTestRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|