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>
671 lines
21 KiB
Go
Generated
671 lines
21 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 AgentConnectorRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &AgentConnectorRequest{}
|
|
|
|
// AgentConnectorRequest struct for AgentConnectorRequest
|
|
type AgentConnectorRequest struct {
|
|
ConnectorUuid *string `json:"connector_uuid,omitempty"`
|
|
Name string `json:"name"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
SnapshotExpiry *string `json:"snapshot_expiry,omitempty"`
|
|
AuthSessionDuration *string `json:"auth_session_duration,omitempty"`
|
|
AuthTerminateSessionOnExpiry *bool `json:"auth_terminate_session_on_expiry,omitempty"`
|
|
RefreshInterval *string `json:"refresh_interval,omitempty"`
|
|
AuthorizationFlow NullableString `json:"authorization_flow,omitempty"`
|
|
NssUidOffset *int32 `json:"nss_uid_offset,omitempty"`
|
|
NssGidOffset *int32 `json:"nss_gid_offset,omitempty"`
|
|
ChallengeKey NullableString `json:"challenge_key,omitempty"`
|
|
ChallengeIdleTimeout *string `json:"challenge_idle_timeout,omitempty"`
|
|
ChallengeTriggerCheckIn *bool `json:"challenge_trigger_check_in,omitempty"`
|
|
JwtFederationProviders []int32 `json:"jwt_federation_providers,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _AgentConnectorRequest AgentConnectorRequest
|
|
|
|
// NewAgentConnectorRequest instantiates a new AgentConnectorRequest 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 NewAgentConnectorRequest(name string) *AgentConnectorRequest {
|
|
this := AgentConnectorRequest{}
|
|
this.Name = name
|
|
return &this
|
|
}
|
|
|
|
// NewAgentConnectorRequestWithDefaults instantiates a new AgentConnectorRequest 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 NewAgentConnectorRequestWithDefaults() *AgentConnectorRequest {
|
|
this := AgentConnectorRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetConnectorUuid returns the ConnectorUuid field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetConnectorUuid() string {
|
|
if o == nil || IsNil(o.ConnectorUuid) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ConnectorUuid
|
|
}
|
|
|
|
// GetConnectorUuidOk returns a tuple with the ConnectorUuid field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetConnectorUuidOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ConnectorUuid) {
|
|
return nil, false
|
|
}
|
|
return o.ConnectorUuid, true
|
|
}
|
|
|
|
// HasConnectorUuid returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasConnectorUuid() bool {
|
|
if o != nil && !IsNil(o.ConnectorUuid) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetConnectorUuid gets a reference to the given string and assigns it to the ConnectorUuid field.
|
|
func (o *AgentConnectorRequest) SetConnectorUuid(v string) {
|
|
o.ConnectorUuid = &v
|
|
}
|
|
|
|
// GetName returns the Name field value
|
|
func (o *AgentConnectorRequest) GetName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Name, true
|
|
}
|
|
|
|
// SetName sets field value
|
|
func (o *AgentConnectorRequest) SetName(v string) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetEnabled returns the Enabled field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetEnabled() bool {
|
|
if o == nil || IsNil(o.Enabled) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Enabled
|
|
}
|
|
|
|
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetEnabledOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Enabled) {
|
|
return nil, false
|
|
}
|
|
return o.Enabled, true
|
|
}
|
|
|
|
// HasEnabled returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasEnabled() bool {
|
|
if o != nil && !IsNil(o.Enabled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
|
|
func (o *AgentConnectorRequest) SetEnabled(v bool) {
|
|
o.Enabled = &v
|
|
}
|
|
|
|
// GetSnapshotExpiry returns the SnapshotExpiry field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetSnapshotExpiry() string {
|
|
if o == nil || IsNil(o.SnapshotExpiry) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SnapshotExpiry
|
|
}
|
|
|
|
// GetSnapshotExpiryOk returns a tuple with the SnapshotExpiry field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetSnapshotExpiryOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SnapshotExpiry) {
|
|
return nil, false
|
|
}
|
|
return o.SnapshotExpiry, true
|
|
}
|
|
|
|
// HasSnapshotExpiry returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasSnapshotExpiry() bool {
|
|
if o != nil && !IsNil(o.SnapshotExpiry) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSnapshotExpiry gets a reference to the given string and assigns it to the SnapshotExpiry field.
|
|
func (o *AgentConnectorRequest) SetSnapshotExpiry(v string) {
|
|
o.SnapshotExpiry = &v
|
|
}
|
|
|
|
// GetAuthSessionDuration returns the AuthSessionDuration field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetAuthSessionDuration() string {
|
|
if o == nil || IsNil(o.AuthSessionDuration) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthSessionDuration
|
|
}
|
|
|
|
// GetAuthSessionDurationOk returns a tuple with the AuthSessionDuration field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetAuthSessionDurationOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AuthSessionDuration) {
|
|
return nil, false
|
|
}
|
|
return o.AuthSessionDuration, true
|
|
}
|
|
|
|
// HasAuthSessionDuration returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasAuthSessionDuration() bool {
|
|
if o != nil && !IsNil(o.AuthSessionDuration) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthSessionDuration gets a reference to the given string and assigns it to the AuthSessionDuration field.
|
|
func (o *AgentConnectorRequest) SetAuthSessionDuration(v string) {
|
|
o.AuthSessionDuration = &v
|
|
}
|
|
|
|
// GetAuthTerminateSessionOnExpiry returns the AuthTerminateSessionOnExpiry field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetAuthTerminateSessionOnExpiry() bool {
|
|
if o == nil || IsNil(o.AuthTerminateSessionOnExpiry) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.AuthTerminateSessionOnExpiry
|
|
}
|
|
|
|
// GetAuthTerminateSessionOnExpiryOk returns a tuple with the AuthTerminateSessionOnExpiry field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetAuthTerminateSessionOnExpiryOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.AuthTerminateSessionOnExpiry) {
|
|
return nil, false
|
|
}
|
|
return o.AuthTerminateSessionOnExpiry, true
|
|
}
|
|
|
|
// HasAuthTerminateSessionOnExpiry returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasAuthTerminateSessionOnExpiry() bool {
|
|
if o != nil && !IsNil(o.AuthTerminateSessionOnExpiry) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthTerminateSessionOnExpiry gets a reference to the given bool and assigns it to the AuthTerminateSessionOnExpiry field.
|
|
func (o *AgentConnectorRequest) SetAuthTerminateSessionOnExpiry(v bool) {
|
|
o.AuthTerminateSessionOnExpiry = &v
|
|
}
|
|
|
|
// GetRefreshInterval returns the RefreshInterval field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetRefreshInterval() string {
|
|
if o == nil || IsNil(o.RefreshInterval) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RefreshInterval
|
|
}
|
|
|
|
// GetRefreshIntervalOk returns a tuple with the RefreshInterval field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetRefreshIntervalOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RefreshInterval) {
|
|
return nil, false
|
|
}
|
|
return o.RefreshInterval, true
|
|
}
|
|
|
|
// HasRefreshInterval returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasRefreshInterval() bool {
|
|
if o != nil && !IsNil(o.RefreshInterval) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefreshInterval gets a reference to the given string and assigns it to the RefreshInterval field.
|
|
func (o *AgentConnectorRequest) SetRefreshInterval(v string) {
|
|
o.RefreshInterval = &v
|
|
}
|
|
|
|
// GetAuthorizationFlow returns the AuthorizationFlow field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *AgentConnectorRequest) GetAuthorizationFlow() string {
|
|
if o == nil || IsNil(o.AuthorizationFlow.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthorizationFlow.Get()
|
|
}
|
|
|
|
// GetAuthorizationFlowOk returns a tuple with the AuthorizationFlow 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 *AgentConnectorRequest) GetAuthorizationFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.AuthorizationFlow.Get(), o.AuthorizationFlow.IsSet()
|
|
}
|
|
|
|
// HasAuthorizationFlow returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasAuthorizationFlow() bool {
|
|
if o != nil && o.AuthorizationFlow.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthorizationFlow gets a reference to the given NullableString and assigns it to the AuthorizationFlow field.
|
|
func (o *AgentConnectorRequest) SetAuthorizationFlow(v string) {
|
|
o.AuthorizationFlow.Set(&v)
|
|
}
|
|
|
|
// SetAuthorizationFlowNil sets the value for AuthorizationFlow to be an explicit nil
|
|
func (o *AgentConnectorRequest) SetAuthorizationFlowNil() {
|
|
o.AuthorizationFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthorizationFlow ensures that no value is present for AuthorizationFlow, not even an explicit nil
|
|
func (o *AgentConnectorRequest) UnsetAuthorizationFlow() {
|
|
o.AuthorizationFlow.Unset()
|
|
}
|
|
|
|
// GetNssUidOffset returns the NssUidOffset field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetNssUidOffset() int32 {
|
|
if o == nil || IsNil(o.NssUidOffset) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.NssUidOffset
|
|
}
|
|
|
|
// GetNssUidOffsetOk returns a tuple with the NssUidOffset field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetNssUidOffsetOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.NssUidOffset) {
|
|
return nil, false
|
|
}
|
|
return o.NssUidOffset, true
|
|
}
|
|
|
|
// HasNssUidOffset returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasNssUidOffset() bool {
|
|
if o != nil && !IsNil(o.NssUidOffset) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNssUidOffset gets a reference to the given int32 and assigns it to the NssUidOffset field.
|
|
func (o *AgentConnectorRequest) SetNssUidOffset(v int32) {
|
|
o.NssUidOffset = &v
|
|
}
|
|
|
|
// GetNssGidOffset returns the NssGidOffset field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetNssGidOffset() int32 {
|
|
if o == nil || IsNil(o.NssGidOffset) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.NssGidOffset
|
|
}
|
|
|
|
// GetNssGidOffsetOk returns a tuple with the NssGidOffset field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetNssGidOffsetOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.NssGidOffset) {
|
|
return nil, false
|
|
}
|
|
return o.NssGidOffset, true
|
|
}
|
|
|
|
// HasNssGidOffset returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasNssGidOffset() bool {
|
|
if o != nil && !IsNil(o.NssGidOffset) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNssGidOffset gets a reference to the given int32 and assigns it to the NssGidOffset field.
|
|
func (o *AgentConnectorRequest) SetNssGidOffset(v int32) {
|
|
o.NssGidOffset = &v
|
|
}
|
|
|
|
// GetChallengeKey returns the ChallengeKey field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *AgentConnectorRequest) GetChallengeKey() string {
|
|
if o == nil || IsNil(o.ChallengeKey.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ChallengeKey.Get()
|
|
}
|
|
|
|
// GetChallengeKeyOk returns a tuple with the ChallengeKey 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 *AgentConnectorRequest) GetChallengeKeyOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.ChallengeKey.Get(), o.ChallengeKey.IsSet()
|
|
}
|
|
|
|
// HasChallengeKey returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasChallengeKey() bool {
|
|
if o != nil && o.ChallengeKey.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetChallengeKey gets a reference to the given NullableString and assigns it to the ChallengeKey field.
|
|
func (o *AgentConnectorRequest) SetChallengeKey(v string) {
|
|
o.ChallengeKey.Set(&v)
|
|
}
|
|
|
|
// SetChallengeKeyNil sets the value for ChallengeKey to be an explicit nil
|
|
func (o *AgentConnectorRequest) SetChallengeKeyNil() {
|
|
o.ChallengeKey.Set(nil)
|
|
}
|
|
|
|
// UnsetChallengeKey ensures that no value is present for ChallengeKey, not even an explicit nil
|
|
func (o *AgentConnectorRequest) UnsetChallengeKey() {
|
|
o.ChallengeKey.Unset()
|
|
}
|
|
|
|
// GetChallengeIdleTimeout returns the ChallengeIdleTimeout field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetChallengeIdleTimeout() string {
|
|
if o == nil || IsNil(o.ChallengeIdleTimeout) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ChallengeIdleTimeout
|
|
}
|
|
|
|
// GetChallengeIdleTimeoutOk returns a tuple with the ChallengeIdleTimeout field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetChallengeIdleTimeoutOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ChallengeIdleTimeout) {
|
|
return nil, false
|
|
}
|
|
return o.ChallengeIdleTimeout, true
|
|
}
|
|
|
|
// HasChallengeIdleTimeout returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasChallengeIdleTimeout() bool {
|
|
if o != nil && !IsNil(o.ChallengeIdleTimeout) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetChallengeIdleTimeout gets a reference to the given string and assigns it to the ChallengeIdleTimeout field.
|
|
func (o *AgentConnectorRequest) SetChallengeIdleTimeout(v string) {
|
|
o.ChallengeIdleTimeout = &v
|
|
}
|
|
|
|
// GetChallengeTriggerCheckIn returns the ChallengeTriggerCheckIn field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetChallengeTriggerCheckIn() bool {
|
|
if o == nil || IsNil(o.ChallengeTriggerCheckIn) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.ChallengeTriggerCheckIn
|
|
}
|
|
|
|
// GetChallengeTriggerCheckInOk returns a tuple with the ChallengeTriggerCheckIn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetChallengeTriggerCheckInOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.ChallengeTriggerCheckIn) {
|
|
return nil, false
|
|
}
|
|
return o.ChallengeTriggerCheckIn, true
|
|
}
|
|
|
|
// HasChallengeTriggerCheckIn returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasChallengeTriggerCheckIn() bool {
|
|
if o != nil && !IsNil(o.ChallengeTriggerCheckIn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetChallengeTriggerCheckIn gets a reference to the given bool and assigns it to the ChallengeTriggerCheckIn field.
|
|
func (o *AgentConnectorRequest) SetChallengeTriggerCheckIn(v bool) {
|
|
o.ChallengeTriggerCheckIn = &v
|
|
}
|
|
|
|
// GetJwtFederationProviders returns the JwtFederationProviders field value if set, zero value otherwise.
|
|
func (o *AgentConnectorRequest) GetJwtFederationProviders() []int32 {
|
|
if o == nil || IsNil(o.JwtFederationProviders) {
|
|
var ret []int32
|
|
return ret
|
|
}
|
|
return o.JwtFederationProviders
|
|
}
|
|
|
|
// GetJwtFederationProvidersOk returns a tuple with the JwtFederationProviders field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AgentConnectorRequest) GetJwtFederationProvidersOk() ([]int32, bool) {
|
|
if o == nil || IsNil(o.JwtFederationProviders) {
|
|
return nil, false
|
|
}
|
|
return o.JwtFederationProviders, true
|
|
}
|
|
|
|
// HasJwtFederationProviders returns a boolean if a field has been set.
|
|
func (o *AgentConnectorRequest) HasJwtFederationProviders() bool {
|
|
if o != nil && !IsNil(o.JwtFederationProviders) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetJwtFederationProviders gets a reference to the given []int32 and assigns it to the JwtFederationProviders field.
|
|
func (o *AgentConnectorRequest) SetJwtFederationProviders(v []int32) {
|
|
o.JwtFederationProviders = v
|
|
}
|
|
|
|
func (o AgentConnectorRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o AgentConnectorRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ConnectorUuid) {
|
|
toSerialize["connector_uuid"] = o.ConnectorUuid
|
|
}
|
|
toSerialize["name"] = o.Name
|
|
if !IsNil(o.Enabled) {
|
|
toSerialize["enabled"] = o.Enabled
|
|
}
|
|
if !IsNil(o.SnapshotExpiry) {
|
|
toSerialize["snapshot_expiry"] = o.SnapshotExpiry
|
|
}
|
|
if !IsNil(o.AuthSessionDuration) {
|
|
toSerialize["auth_session_duration"] = o.AuthSessionDuration
|
|
}
|
|
if !IsNil(o.AuthTerminateSessionOnExpiry) {
|
|
toSerialize["auth_terminate_session_on_expiry"] = o.AuthTerminateSessionOnExpiry
|
|
}
|
|
if !IsNil(o.RefreshInterval) {
|
|
toSerialize["refresh_interval"] = o.RefreshInterval
|
|
}
|
|
if o.AuthorizationFlow.IsSet() {
|
|
toSerialize["authorization_flow"] = o.AuthorizationFlow.Get()
|
|
}
|
|
if !IsNil(o.NssUidOffset) {
|
|
toSerialize["nss_uid_offset"] = o.NssUidOffset
|
|
}
|
|
if !IsNil(o.NssGidOffset) {
|
|
toSerialize["nss_gid_offset"] = o.NssGidOffset
|
|
}
|
|
if o.ChallengeKey.IsSet() {
|
|
toSerialize["challenge_key"] = o.ChallengeKey.Get()
|
|
}
|
|
if !IsNil(o.ChallengeIdleTimeout) {
|
|
toSerialize["challenge_idle_timeout"] = o.ChallengeIdleTimeout
|
|
}
|
|
if !IsNil(o.ChallengeTriggerCheckIn) {
|
|
toSerialize["challenge_trigger_check_in"] = o.ChallengeTriggerCheckIn
|
|
}
|
|
if !IsNil(o.JwtFederationProviders) {
|
|
toSerialize["jwt_federation_providers"] = o.JwtFederationProviders
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *AgentConnectorRequest) 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{
|
|
"name",
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
varAgentConnectorRequest := _AgentConnectorRequest{}
|
|
|
|
err = json.Unmarshal(data, &varAgentConnectorRequest)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = AgentConnectorRequest(varAgentConnectorRequest)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "connector_uuid")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "enabled")
|
|
delete(additionalProperties, "snapshot_expiry")
|
|
delete(additionalProperties, "auth_session_duration")
|
|
delete(additionalProperties, "auth_terminate_session_on_expiry")
|
|
delete(additionalProperties, "refresh_interval")
|
|
delete(additionalProperties, "authorization_flow")
|
|
delete(additionalProperties, "nss_uid_offset")
|
|
delete(additionalProperties, "nss_gid_offset")
|
|
delete(additionalProperties, "challenge_key")
|
|
delete(additionalProperties, "challenge_idle_timeout")
|
|
delete(additionalProperties, "challenge_trigger_check_in")
|
|
delete(additionalProperties, "jwt_federation_providers")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableAgentConnectorRequest struct {
|
|
value *AgentConnectorRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableAgentConnectorRequest) Get() *AgentConnectorRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableAgentConnectorRequest) Set(val *AgentConnectorRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableAgentConnectorRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableAgentConnectorRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableAgentConnectorRequest(val *AgentConnectorRequest) *NullableAgentConnectorRequest {
|
|
return &NullableAgentConnectorRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableAgentConnectorRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableAgentConnectorRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|