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>
1715 lines
51 KiB
Go
Generated
1715 lines
51 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 LDAPSource type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &LDAPSource{}
|
|
|
|
// LDAPSource LDAP Source Serializer
|
|
type LDAPSource struct {
|
|
Pk string `json:"pk"`
|
|
// Source's display Name.
|
|
Name string `json:"name"`
|
|
// Internal source name, used in URLs.
|
|
Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
// When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.
|
|
Promoted *bool `json:"promoted,omitempty"`
|
|
// Flow to use when authenticating existing users.
|
|
AuthenticationFlow NullableString `json:"authentication_flow,omitempty"`
|
|
// Flow to use when enrolling new users.
|
|
EnrollmentFlow NullableString `json:"enrollment_flow,omitempty"`
|
|
UserPropertyMappings []string `json:"user_property_mappings,omitempty"`
|
|
GroupPropertyMappings []string `json:"group_property_mappings,omitempty"`
|
|
// Get object component so that we know how to edit the object
|
|
Component string `json:"component"`
|
|
// Return object's verbose_name
|
|
VerboseName string `json:"verbose_name"`
|
|
// Return object's plural verbose_name
|
|
VerboseNamePlural string `json:"verbose_name_plural"`
|
|
// Return internal model name
|
|
MetaModelName string `json:"meta_model_name"`
|
|
PolicyEngineMode *PolicyEngineMode `json:"policy_engine_mode,omitempty"`
|
|
// How the source determines if an existing user should be authenticated or a new user enrolled.
|
|
UserMatchingMode *UserMatchingModeEnum `json:"user_matching_mode,omitempty"`
|
|
// Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
|
Managed NullableString `json:"managed"`
|
|
UserPathTemplate *string `json:"user_path_template,omitempty"`
|
|
Icon *string `json:"icon,omitempty"`
|
|
IconUrl string `json:"icon_url"`
|
|
IconThemedUrls NullableThemedUrls `json:"icon_themed_urls"`
|
|
ServerUri string `json:"server_uri"`
|
|
// Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
|
|
PeerCertificate NullableString `json:"peer_certificate,omitempty"`
|
|
// Client certificate to authenticate against the LDAP Server's Certificate.
|
|
ClientCertificate NullableString `json:"client_certificate,omitempty"`
|
|
BindCn *string `json:"bind_cn,omitempty"`
|
|
StartTls *bool `json:"start_tls,omitempty"`
|
|
Sni *bool `json:"sni,omitempty"`
|
|
BaseDn string `json:"base_dn"`
|
|
// Prepended to Base DN for User-queries.
|
|
AdditionalUserDn *string `json:"additional_user_dn,omitempty"`
|
|
// Prepended to Base DN for Group-queries.
|
|
AdditionalGroupDn *string `json:"additional_group_dn,omitempty"`
|
|
// Consider Objects matching this filter to be Users.
|
|
UserObjectFilter *string `json:"user_object_filter,omitempty"`
|
|
// Consider Objects matching this filter to be Groups.
|
|
GroupObjectFilter *string `json:"group_object_filter,omitempty"`
|
|
// Field which contains members of a group.
|
|
GroupMembershipField *string `json:"group_membership_field,omitempty"`
|
|
// Attribute which matches the value of `group_membership_field`.
|
|
UserMembershipAttribute *string `json:"user_membership_attribute,omitempty"`
|
|
// Field which contains a unique Identifier.
|
|
ObjectUniquenessField *string `json:"object_uniqueness_field,omitempty"`
|
|
// Update internal authentik password when login succeeds with LDAP
|
|
PasswordLoginUpdateInternalPassword *bool `json:"password_login_update_internal_password,omitempty"`
|
|
SyncUsers *bool `json:"sync_users,omitempty"`
|
|
// When a user changes their password, sync it back to LDAP. This can only be enabled on a single LDAP source.
|
|
SyncUsersPassword *bool `json:"sync_users_password,omitempty"`
|
|
SyncGroups *bool `json:"sync_groups,omitempty"`
|
|
SyncParentGroup NullableString `json:"sync_parent_group,omitempty"`
|
|
// Get cached source connectivity
|
|
Connectivity map[string]map[string]string `json:"connectivity"`
|
|
// Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory
|
|
LookupGroupsFromUser *bool `json:"lookup_groups_from_user,omitempty"`
|
|
// Delete authentik users and groups which were previously supplied by this source, but are now missing from it.
|
|
DeleteNotFoundObjects *bool `json:"delete_not_found_objects,omitempty"`
|
|
// When to trigger sync for outgoing providers
|
|
SyncOutgoingTriggerMode *SyncOutgoingTriggerModeEnum `json:"sync_outgoing_trigger_mode,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _LDAPSource LDAPSource
|
|
|
|
// NewLDAPSource instantiates a new LDAPSource 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 NewLDAPSource(pk string, name string, slug string, component string, verboseName string, verboseNamePlural string, metaModelName string, managed NullableString, iconUrl string, iconThemedUrls NullableThemedUrls, serverUri string, baseDn string, connectivity map[string]map[string]string) *LDAPSource {
|
|
this := LDAPSource{}
|
|
this.Pk = pk
|
|
this.Name = name
|
|
this.Slug = slug
|
|
this.Component = component
|
|
this.VerboseName = verboseName
|
|
this.VerboseNamePlural = verboseNamePlural
|
|
this.MetaModelName = metaModelName
|
|
this.Managed = managed
|
|
this.IconUrl = iconUrl
|
|
this.IconThemedUrls = iconThemedUrls
|
|
this.ServerUri = serverUri
|
|
this.BaseDn = baseDn
|
|
this.Connectivity = connectivity
|
|
return &this
|
|
}
|
|
|
|
// NewLDAPSourceWithDefaults instantiates a new LDAPSource 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 NewLDAPSourceWithDefaults() *LDAPSource {
|
|
this := LDAPSource{}
|
|
return &this
|
|
}
|
|
|
|
// GetPk returns the Pk field value
|
|
func (o *LDAPSource) GetPk() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Pk
|
|
}
|
|
|
|
// GetPkOk returns a tuple with the Pk field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetPkOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Pk, true
|
|
}
|
|
|
|
// SetPk sets field value
|
|
func (o *LDAPSource) SetPk(v string) {
|
|
o.Pk = v
|
|
}
|
|
|
|
// GetName returns the Name field value
|
|
func (o *LDAPSource) 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 *LDAPSource) GetNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Name, true
|
|
}
|
|
|
|
// SetName sets field value
|
|
func (o *LDAPSource) SetName(v string) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetSlug returns the Slug field value
|
|
func (o *LDAPSource) GetSlug() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Slug
|
|
}
|
|
|
|
// GetSlugOk returns a tuple with the Slug field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetSlugOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Slug, true
|
|
}
|
|
|
|
// SetSlug sets field value
|
|
func (o *LDAPSource) SetSlug(v string) {
|
|
o.Slug = v
|
|
}
|
|
|
|
// GetEnabled returns the Enabled field value if set, zero value otherwise.
|
|
func (o *LDAPSource) 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 *LDAPSource) 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 *LDAPSource) 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 *LDAPSource) SetEnabled(v bool) {
|
|
o.Enabled = &v
|
|
}
|
|
|
|
// GetPromoted returns the Promoted field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetPromoted() bool {
|
|
if o == nil || IsNil(o.Promoted) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Promoted
|
|
}
|
|
|
|
// GetPromotedOk returns a tuple with the Promoted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetPromotedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Promoted) {
|
|
return nil, false
|
|
}
|
|
return o.Promoted, true
|
|
}
|
|
|
|
// HasPromoted returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasPromoted() bool {
|
|
if o != nil && !IsNil(o.Promoted) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPromoted gets a reference to the given bool and assigns it to the Promoted field.
|
|
func (o *LDAPSource) SetPromoted(v bool) {
|
|
o.Promoted = &v
|
|
}
|
|
|
|
// GetAuthenticationFlow returns the AuthenticationFlow field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *LDAPSource) GetAuthenticationFlow() string {
|
|
if o == nil || IsNil(o.AuthenticationFlow.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthenticationFlow.Get()
|
|
}
|
|
|
|
// GetAuthenticationFlowOk returns a tuple with the AuthenticationFlow 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 *LDAPSource) GetAuthenticationFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.AuthenticationFlow.Get(), o.AuthenticationFlow.IsSet()
|
|
}
|
|
|
|
// HasAuthenticationFlow returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasAuthenticationFlow() bool {
|
|
if o != nil && o.AuthenticationFlow.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthenticationFlow gets a reference to the given NullableString and assigns it to the AuthenticationFlow field.
|
|
func (o *LDAPSource) SetAuthenticationFlow(v string) {
|
|
o.AuthenticationFlow.Set(&v)
|
|
}
|
|
|
|
// SetAuthenticationFlowNil sets the value for AuthenticationFlow to be an explicit nil
|
|
func (o *LDAPSource) SetAuthenticationFlowNil() {
|
|
o.AuthenticationFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthenticationFlow ensures that no value is present for AuthenticationFlow, not even an explicit nil
|
|
func (o *LDAPSource) UnsetAuthenticationFlow() {
|
|
o.AuthenticationFlow.Unset()
|
|
}
|
|
|
|
// GetEnrollmentFlow returns the EnrollmentFlow field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *LDAPSource) GetEnrollmentFlow() string {
|
|
if o == nil || IsNil(o.EnrollmentFlow.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EnrollmentFlow.Get()
|
|
}
|
|
|
|
// GetEnrollmentFlowOk returns a tuple with the EnrollmentFlow 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 *LDAPSource) GetEnrollmentFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.EnrollmentFlow.Get(), o.EnrollmentFlow.IsSet()
|
|
}
|
|
|
|
// HasEnrollmentFlow returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasEnrollmentFlow() bool {
|
|
if o != nil && o.EnrollmentFlow.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnrollmentFlow gets a reference to the given NullableString and assigns it to the EnrollmentFlow field.
|
|
func (o *LDAPSource) SetEnrollmentFlow(v string) {
|
|
o.EnrollmentFlow.Set(&v)
|
|
}
|
|
|
|
// SetEnrollmentFlowNil sets the value for EnrollmentFlow to be an explicit nil
|
|
func (o *LDAPSource) SetEnrollmentFlowNil() {
|
|
o.EnrollmentFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetEnrollmentFlow ensures that no value is present for EnrollmentFlow, not even an explicit nil
|
|
func (o *LDAPSource) UnsetEnrollmentFlow() {
|
|
o.EnrollmentFlow.Unset()
|
|
}
|
|
|
|
// GetUserPropertyMappings returns the UserPropertyMappings field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetUserPropertyMappings() []string {
|
|
if o == nil || IsNil(o.UserPropertyMappings) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.UserPropertyMappings
|
|
}
|
|
|
|
// GetUserPropertyMappingsOk returns a tuple with the UserPropertyMappings field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetUserPropertyMappingsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.UserPropertyMappings) {
|
|
return nil, false
|
|
}
|
|
return o.UserPropertyMappings, true
|
|
}
|
|
|
|
// HasUserPropertyMappings returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasUserPropertyMappings() bool {
|
|
if o != nil && !IsNil(o.UserPropertyMappings) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserPropertyMappings gets a reference to the given []string and assigns it to the UserPropertyMappings field.
|
|
func (o *LDAPSource) SetUserPropertyMappings(v []string) {
|
|
o.UserPropertyMappings = v
|
|
}
|
|
|
|
// GetGroupPropertyMappings returns the GroupPropertyMappings field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetGroupPropertyMappings() []string {
|
|
if o == nil || IsNil(o.GroupPropertyMappings) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.GroupPropertyMappings
|
|
}
|
|
|
|
// GetGroupPropertyMappingsOk returns a tuple with the GroupPropertyMappings field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetGroupPropertyMappingsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.GroupPropertyMappings) {
|
|
return nil, false
|
|
}
|
|
return o.GroupPropertyMappings, true
|
|
}
|
|
|
|
// HasGroupPropertyMappings returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasGroupPropertyMappings() bool {
|
|
if o != nil && !IsNil(o.GroupPropertyMappings) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupPropertyMappings gets a reference to the given []string and assigns it to the GroupPropertyMappings field.
|
|
func (o *LDAPSource) SetGroupPropertyMappings(v []string) {
|
|
o.GroupPropertyMappings = v
|
|
}
|
|
|
|
// GetComponent returns the Component field value
|
|
func (o *LDAPSource) GetComponent() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Component
|
|
}
|
|
|
|
// GetComponentOk returns a tuple with the Component field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetComponentOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Component, true
|
|
}
|
|
|
|
// SetComponent sets field value
|
|
func (o *LDAPSource) SetComponent(v string) {
|
|
o.Component = v
|
|
}
|
|
|
|
// GetVerboseName returns the VerboseName field value
|
|
func (o *LDAPSource) GetVerboseName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.VerboseName
|
|
}
|
|
|
|
// GetVerboseNameOk returns a tuple with the VerboseName field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetVerboseNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.VerboseName, true
|
|
}
|
|
|
|
// SetVerboseName sets field value
|
|
func (o *LDAPSource) SetVerboseName(v string) {
|
|
o.VerboseName = v
|
|
}
|
|
|
|
// GetVerboseNamePlural returns the VerboseNamePlural field value
|
|
func (o *LDAPSource) GetVerboseNamePlural() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.VerboseNamePlural
|
|
}
|
|
|
|
// GetVerboseNamePluralOk returns a tuple with the VerboseNamePlural field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetVerboseNamePluralOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.VerboseNamePlural, true
|
|
}
|
|
|
|
// SetVerboseNamePlural sets field value
|
|
func (o *LDAPSource) SetVerboseNamePlural(v string) {
|
|
o.VerboseNamePlural = v
|
|
}
|
|
|
|
// GetMetaModelName returns the MetaModelName field value
|
|
func (o *LDAPSource) GetMetaModelName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.MetaModelName
|
|
}
|
|
|
|
// GetMetaModelNameOk returns a tuple with the MetaModelName field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetMetaModelNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.MetaModelName, true
|
|
}
|
|
|
|
// SetMetaModelName sets field value
|
|
func (o *LDAPSource) SetMetaModelName(v string) {
|
|
o.MetaModelName = v
|
|
}
|
|
|
|
// GetPolicyEngineMode returns the PolicyEngineMode field value if set, zero value otherwise.
|
|
func (o *LDAPSource) 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 *LDAPSource) 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 *LDAPSource) 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 *LDAPSource) SetPolicyEngineMode(v PolicyEngineMode) {
|
|
o.PolicyEngineMode = &v
|
|
}
|
|
|
|
// GetUserMatchingMode returns the UserMatchingMode field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetUserMatchingMode() UserMatchingModeEnum {
|
|
if o == nil || IsNil(o.UserMatchingMode) {
|
|
var ret UserMatchingModeEnum
|
|
return ret
|
|
}
|
|
return *o.UserMatchingMode
|
|
}
|
|
|
|
// GetUserMatchingModeOk returns a tuple with the UserMatchingMode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetUserMatchingModeOk() (*UserMatchingModeEnum, bool) {
|
|
if o == nil || IsNil(o.UserMatchingMode) {
|
|
return nil, false
|
|
}
|
|
return o.UserMatchingMode, true
|
|
}
|
|
|
|
// HasUserMatchingMode returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasUserMatchingMode() bool {
|
|
if o != nil && !IsNil(o.UserMatchingMode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserMatchingMode gets a reference to the given UserMatchingModeEnum and assigns it to the UserMatchingMode field.
|
|
func (o *LDAPSource) SetUserMatchingMode(v UserMatchingModeEnum) {
|
|
o.UserMatchingMode = &v
|
|
}
|
|
|
|
// GetManaged returns the Managed field value
|
|
// If the value is explicit nil, the zero value for string will be returned
|
|
func (o *LDAPSource) GetManaged() string {
|
|
if o == nil || o.Managed.Get() == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return *o.Managed.Get()
|
|
}
|
|
|
|
// GetManagedOk returns a tuple with the Managed field value
|
|
// 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 *LDAPSource) GetManagedOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.Managed.Get(), o.Managed.IsSet()
|
|
}
|
|
|
|
// SetManaged sets field value
|
|
func (o *LDAPSource) SetManaged(v string) {
|
|
o.Managed.Set(&v)
|
|
}
|
|
|
|
// GetUserPathTemplate returns the UserPathTemplate field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetUserPathTemplate() string {
|
|
if o == nil || IsNil(o.UserPathTemplate) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserPathTemplate
|
|
}
|
|
|
|
// GetUserPathTemplateOk returns a tuple with the UserPathTemplate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetUserPathTemplateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserPathTemplate) {
|
|
return nil, false
|
|
}
|
|
return o.UserPathTemplate, true
|
|
}
|
|
|
|
// HasUserPathTemplate returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasUserPathTemplate() bool {
|
|
if o != nil && !IsNil(o.UserPathTemplate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserPathTemplate gets a reference to the given string and assigns it to the UserPathTemplate field.
|
|
func (o *LDAPSource) SetUserPathTemplate(v string) {
|
|
o.UserPathTemplate = &v
|
|
}
|
|
|
|
// GetIcon returns the Icon field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetIcon() string {
|
|
if o == nil || IsNil(o.Icon) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Icon
|
|
}
|
|
|
|
// GetIconOk returns a tuple with the Icon field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetIconOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Icon) {
|
|
return nil, false
|
|
}
|
|
return o.Icon, true
|
|
}
|
|
|
|
// HasIcon returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasIcon() bool {
|
|
if o != nil && !IsNil(o.Icon) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIcon gets a reference to the given string and assigns it to the Icon field.
|
|
func (o *LDAPSource) SetIcon(v string) {
|
|
o.Icon = &v
|
|
}
|
|
|
|
// GetIconUrl returns the IconUrl field value
|
|
func (o *LDAPSource) GetIconUrl() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.IconUrl
|
|
}
|
|
|
|
// GetIconUrlOk returns a tuple with the IconUrl field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetIconUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.IconUrl, true
|
|
}
|
|
|
|
// SetIconUrl sets field value
|
|
func (o *LDAPSource) SetIconUrl(v string) {
|
|
o.IconUrl = v
|
|
}
|
|
|
|
// GetIconThemedUrls returns the IconThemedUrls field value
|
|
// If the value is explicit nil, the zero value for ThemedUrls will be returned
|
|
func (o *LDAPSource) GetIconThemedUrls() ThemedUrls {
|
|
if o == nil || o.IconThemedUrls.Get() == nil {
|
|
var ret ThemedUrls
|
|
return ret
|
|
}
|
|
|
|
return *o.IconThemedUrls.Get()
|
|
}
|
|
|
|
// GetIconThemedUrlsOk returns a tuple with the IconThemedUrls field value
|
|
// 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 *LDAPSource) GetIconThemedUrlsOk() (*ThemedUrls, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.IconThemedUrls.Get(), o.IconThemedUrls.IsSet()
|
|
}
|
|
|
|
// SetIconThemedUrls sets field value
|
|
func (o *LDAPSource) SetIconThemedUrls(v ThemedUrls) {
|
|
o.IconThemedUrls.Set(&v)
|
|
}
|
|
|
|
// GetServerUri returns the ServerUri field value
|
|
func (o *LDAPSource) GetServerUri() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.ServerUri
|
|
}
|
|
|
|
// GetServerUriOk returns a tuple with the ServerUri field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetServerUriOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.ServerUri, true
|
|
}
|
|
|
|
// SetServerUri sets field value
|
|
func (o *LDAPSource) SetServerUri(v string) {
|
|
o.ServerUri = v
|
|
}
|
|
|
|
// GetPeerCertificate returns the PeerCertificate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *LDAPSource) GetPeerCertificate() string {
|
|
if o == nil || IsNil(o.PeerCertificate.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PeerCertificate.Get()
|
|
}
|
|
|
|
// GetPeerCertificateOk returns a tuple with the PeerCertificate 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 *LDAPSource) GetPeerCertificateOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.PeerCertificate.Get(), o.PeerCertificate.IsSet()
|
|
}
|
|
|
|
// HasPeerCertificate returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasPeerCertificate() bool {
|
|
if o != nil && o.PeerCertificate.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPeerCertificate gets a reference to the given NullableString and assigns it to the PeerCertificate field.
|
|
func (o *LDAPSource) SetPeerCertificate(v string) {
|
|
o.PeerCertificate.Set(&v)
|
|
}
|
|
|
|
// SetPeerCertificateNil sets the value for PeerCertificate to be an explicit nil
|
|
func (o *LDAPSource) SetPeerCertificateNil() {
|
|
o.PeerCertificate.Set(nil)
|
|
}
|
|
|
|
// UnsetPeerCertificate ensures that no value is present for PeerCertificate, not even an explicit nil
|
|
func (o *LDAPSource) UnsetPeerCertificate() {
|
|
o.PeerCertificate.Unset()
|
|
}
|
|
|
|
// GetClientCertificate returns the ClientCertificate field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *LDAPSource) GetClientCertificate() string {
|
|
if o == nil || IsNil(o.ClientCertificate.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ClientCertificate.Get()
|
|
}
|
|
|
|
// GetClientCertificateOk returns a tuple with the ClientCertificate 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 *LDAPSource) GetClientCertificateOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.ClientCertificate.Get(), o.ClientCertificate.IsSet()
|
|
}
|
|
|
|
// HasClientCertificate returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasClientCertificate() bool {
|
|
if o != nil && o.ClientCertificate.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClientCertificate gets a reference to the given NullableString and assigns it to the ClientCertificate field.
|
|
func (o *LDAPSource) SetClientCertificate(v string) {
|
|
o.ClientCertificate.Set(&v)
|
|
}
|
|
|
|
// SetClientCertificateNil sets the value for ClientCertificate to be an explicit nil
|
|
func (o *LDAPSource) SetClientCertificateNil() {
|
|
o.ClientCertificate.Set(nil)
|
|
}
|
|
|
|
// UnsetClientCertificate ensures that no value is present for ClientCertificate, not even an explicit nil
|
|
func (o *LDAPSource) UnsetClientCertificate() {
|
|
o.ClientCertificate.Unset()
|
|
}
|
|
|
|
// GetBindCn returns the BindCn field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetBindCn() string {
|
|
if o == nil || IsNil(o.BindCn) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.BindCn
|
|
}
|
|
|
|
// GetBindCnOk returns a tuple with the BindCn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetBindCnOk() (*string, bool) {
|
|
if o == nil || IsNil(o.BindCn) {
|
|
return nil, false
|
|
}
|
|
return o.BindCn, true
|
|
}
|
|
|
|
// HasBindCn returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasBindCn() bool {
|
|
if o != nil && !IsNil(o.BindCn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBindCn gets a reference to the given string and assigns it to the BindCn field.
|
|
func (o *LDAPSource) SetBindCn(v string) {
|
|
o.BindCn = &v
|
|
}
|
|
|
|
// GetStartTls returns the StartTls field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetStartTls() bool {
|
|
if o == nil || IsNil(o.StartTls) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.StartTls
|
|
}
|
|
|
|
// GetStartTlsOk returns a tuple with the StartTls field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetStartTlsOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.StartTls) {
|
|
return nil, false
|
|
}
|
|
return o.StartTls, true
|
|
}
|
|
|
|
// HasStartTls returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasStartTls() bool {
|
|
if o != nil && !IsNil(o.StartTls) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStartTls gets a reference to the given bool and assigns it to the StartTls field.
|
|
func (o *LDAPSource) SetStartTls(v bool) {
|
|
o.StartTls = &v
|
|
}
|
|
|
|
// GetSni returns the Sni field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetSni() bool {
|
|
if o == nil || IsNil(o.Sni) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Sni
|
|
}
|
|
|
|
// GetSniOk returns a tuple with the Sni field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetSniOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Sni) {
|
|
return nil, false
|
|
}
|
|
return o.Sni, true
|
|
}
|
|
|
|
// HasSni returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasSni() bool {
|
|
if o != nil && !IsNil(o.Sni) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSni gets a reference to the given bool and assigns it to the Sni field.
|
|
func (o *LDAPSource) SetSni(v bool) {
|
|
o.Sni = &v
|
|
}
|
|
|
|
// GetBaseDn returns the BaseDn field value
|
|
func (o *LDAPSource) GetBaseDn() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.BaseDn
|
|
}
|
|
|
|
// GetBaseDnOk returns a tuple with the BaseDn field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetBaseDnOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.BaseDn, true
|
|
}
|
|
|
|
// SetBaseDn sets field value
|
|
func (o *LDAPSource) SetBaseDn(v string) {
|
|
o.BaseDn = v
|
|
}
|
|
|
|
// GetAdditionalUserDn returns the AdditionalUserDn field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetAdditionalUserDn() string {
|
|
if o == nil || IsNil(o.AdditionalUserDn) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AdditionalUserDn
|
|
}
|
|
|
|
// GetAdditionalUserDnOk returns a tuple with the AdditionalUserDn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetAdditionalUserDnOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AdditionalUserDn) {
|
|
return nil, false
|
|
}
|
|
return o.AdditionalUserDn, true
|
|
}
|
|
|
|
// HasAdditionalUserDn returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasAdditionalUserDn() bool {
|
|
if o != nil && !IsNil(o.AdditionalUserDn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAdditionalUserDn gets a reference to the given string and assigns it to the AdditionalUserDn field.
|
|
func (o *LDAPSource) SetAdditionalUserDn(v string) {
|
|
o.AdditionalUserDn = &v
|
|
}
|
|
|
|
// GetAdditionalGroupDn returns the AdditionalGroupDn field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetAdditionalGroupDn() string {
|
|
if o == nil || IsNil(o.AdditionalGroupDn) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AdditionalGroupDn
|
|
}
|
|
|
|
// GetAdditionalGroupDnOk returns a tuple with the AdditionalGroupDn field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetAdditionalGroupDnOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AdditionalGroupDn) {
|
|
return nil, false
|
|
}
|
|
return o.AdditionalGroupDn, true
|
|
}
|
|
|
|
// HasAdditionalGroupDn returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasAdditionalGroupDn() bool {
|
|
if o != nil && !IsNil(o.AdditionalGroupDn) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAdditionalGroupDn gets a reference to the given string and assigns it to the AdditionalGroupDn field.
|
|
func (o *LDAPSource) SetAdditionalGroupDn(v string) {
|
|
o.AdditionalGroupDn = &v
|
|
}
|
|
|
|
// GetUserObjectFilter returns the UserObjectFilter field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetUserObjectFilter() string {
|
|
if o == nil || IsNil(o.UserObjectFilter) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserObjectFilter
|
|
}
|
|
|
|
// GetUserObjectFilterOk returns a tuple with the UserObjectFilter field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetUserObjectFilterOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserObjectFilter) {
|
|
return nil, false
|
|
}
|
|
return o.UserObjectFilter, true
|
|
}
|
|
|
|
// HasUserObjectFilter returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasUserObjectFilter() bool {
|
|
if o != nil && !IsNil(o.UserObjectFilter) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserObjectFilter gets a reference to the given string and assigns it to the UserObjectFilter field.
|
|
func (o *LDAPSource) SetUserObjectFilter(v string) {
|
|
o.UserObjectFilter = &v
|
|
}
|
|
|
|
// GetGroupObjectFilter returns the GroupObjectFilter field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetGroupObjectFilter() string {
|
|
if o == nil || IsNil(o.GroupObjectFilter) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.GroupObjectFilter
|
|
}
|
|
|
|
// GetGroupObjectFilterOk returns a tuple with the GroupObjectFilter field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetGroupObjectFilterOk() (*string, bool) {
|
|
if o == nil || IsNil(o.GroupObjectFilter) {
|
|
return nil, false
|
|
}
|
|
return o.GroupObjectFilter, true
|
|
}
|
|
|
|
// HasGroupObjectFilter returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasGroupObjectFilter() bool {
|
|
if o != nil && !IsNil(o.GroupObjectFilter) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupObjectFilter gets a reference to the given string and assigns it to the GroupObjectFilter field.
|
|
func (o *LDAPSource) SetGroupObjectFilter(v string) {
|
|
o.GroupObjectFilter = &v
|
|
}
|
|
|
|
// GetGroupMembershipField returns the GroupMembershipField field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetGroupMembershipField() string {
|
|
if o == nil || IsNil(o.GroupMembershipField) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.GroupMembershipField
|
|
}
|
|
|
|
// GetGroupMembershipFieldOk returns a tuple with the GroupMembershipField field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetGroupMembershipFieldOk() (*string, bool) {
|
|
if o == nil || IsNil(o.GroupMembershipField) {
|
|
return nil, false
|
|
}
|
|
return o.GroupMembershipField, true
|
|
}
|
|
|
|
// HasGroupMembershipField returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasGroupMembershipField() bool {
|
|
if o != nil && !IsNil(o.GroupMembershipField) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGroupMembershipField gets a reference to the given string and assigns it to the GroupMembershipField field.
|
|
func (o *LDAPSource) SetGroupMembershipField(v string) {
|
|
o.GroupMembershipField = &v
|
|
}
|
|
|
|
// GetUserMembershipAttribute returns the UserMembershipAttribute field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetUserMembershipAttribute() string {
|
|
if o == nil || IsNil(o.UserMembershipAttribute) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserMembershipAttribute
|
|
}
|
|
|
|
// GetUserMembershipAttributeOk returns a tuple with the UserMembershipAttribute field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetUserMembershipAttributeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserMembershipAttribute) {
|
|
return nil, false
|
|
}
|
|
return o.UserMembershipAttribute, true
|
|
}
|
|
|
|
// HasUserMembershipAttribute returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasUserMembershipAttribute() bool {
|
|
if o != nil && !IsNil(o.UserMembershipAttribute) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserMembershipAttribute gets a reference to the given string and assigns it to the UserMembershipAttribute field.
|
|
func (o *LDAPSource) SetUserMembershipAttribute(v string) {
|
|
o.UserMembershipAttribute = &v
|
|
}
|
|
|
|
// GetObjectUniquenessField returns the ObjectUniquenessField field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetObjectUniquenessField() string {
|
|
if o == nil || IsNil(o.ObjectUniquenessField) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ObjectUniquenessField
|
|
}
|
|
|
|
// GetObjectUniquenessFieldOk returns a tuple with the ObjectUniquenessField field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetObjectUniquenessFieldOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ObjectUniquenessField) {
|
|
return nil, false
|
|
}
|
|
return o.ObjectUniquenessField, true
|
|
}
|
|
|
|
// HasObjectUniquenessField returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasObjectUniquenessField() bool {
|
|
if o != nil && !IsNil(o.ObjectUniquenessField) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObjectUniquenessField gets a reference to the given string and assigns it to the ObjectUniquenessField field.
|
|
func (o *LDAPSource) SetObjectUniquenessField(v string) {
|
|
o.ObjectUniquenessField = &v
|
|
}
|
|
|
|
// GetPasswordLoginUpdateInternalPassword returns the PasswordLoginUpdateInternalPassword field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetPasswordLoginUpdateInternalPassword() bool {
|
|
if o == nil || IsNil(o.PasswordLoginUpdateInternalPassword) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.PasswordLoginUpdateInternalPassword
|
|
}
|
|
|
|
// GetPasswordLoginUpdateInternalPasswordOk returns a tuple with the PasswordLoginUpdateInternalPassword field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetPasswordLoginUpdateInternalPasswordOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.PasswordLoginUpdateInternalPassword) {
|
|
return nil, false
|
|
}
|
|
return o.PasswordLoginUpdateInternalPassword, true
|
|
}
|
|
|
|
// HasPasswordLoginUpdateInternalPassword returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasPasswordLoginUpdateInternalPassword() bool {
|
|
if o != nil && !IsNil(o.PasswordLoginUpdateInternalPassword) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPasswordLoginUpdateInternalPassword gets a reference to the given bool and assigns it to the PasswordLoginUpdateInternalPassword field.
|
|
func (o *LDAPSource) SetPasswordLoginUpdateInternalPassword(v bool) {
|
|
o.PasswordLoginUpdateInternalPassword = &v
|
|
}
|
|
|
|
// GetSyncUsers returns the SyncUsers field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetSyncUsers() bool {
|
|
if o == nil || IsNil(o.SyncUsers) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SyncUsers
|
|
}
|
|
|
|
// GetSyncUsersOk returns a tuple with the SyncUsers field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetSyncUsersOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SyncUsers) {
|
|
return nil, false
|
|
}
|
|
return o.SyncUsers, true
|
|
}
|
|
|
|
// HasSyncUsers returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasSyncUsers() bool {
|
|
if o != nil && !IsNil(o.SyncUsers) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSyncUsers gets a reference to the given bool and assigns it to the SyncUsers field.
|
|
func (o *LDAPSource) SetSyncUsers(v bool) {
|
|
o.SyncUsers = &v
|
|
}
|
|
|
|
// GetSyncUsersPassword returns the SyncUsersPassword field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetSyncUsersPassword() bool {
|
|
if o == nil || IsNil(o.SyncUsersPassword) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SyncUsersPassword
|
|
}
|
|
|
|
// GetSyncUsersPasswordOk returns a tuple with the SyncUsersPassword field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetSyncUsersPasswordOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SyncUsersPassword) {
|
|
return nil, false
|
|
}
|
|
return o.SyncUsersPassword, true
|
|
}
|
|
|
|
// HasSyncUsersPassword returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasSyncUsersPassword() bool {
|
|
if o != nil && !IsNil(o.SyncUsersPassword) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSyncUsersPassword gets a reference to the given bool and assigns it to the SyncUsersPassword field.
|
|
func (o *LDAPSource) SetSyncUsersPassword(v bool) {
|
|
o.SyncUsersPassword = &v
|
|
}
|
|
|
|
// GetSyncGroups returns the SyncGroups field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetSyncGroups() bool {
|
|
if o == nil || IsNil(o.SyncGroups) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SyncGroups
|
|
}
|
|
|
|
// GetSyncGroupsOk returns a tuple with the SyncGroups field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetSyncGroupsOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SyncGroups) {
|
|
return nil, false
|
|
}
|
|
return o.SyncGroups, true
|
|
}
|
|
|
|
// HasSyncGroups returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasSyncGroups() bool {
|
|
if o != nil && !IsNil(o.SyncGroups) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSyncGroups gets a reference to the given bool and assigns it to the SyncGroups field.
|
|
func (o *LDAPSource) SetSyncGroups(v bool) {
|
|
o.SyncGroups = &v
|
|
}
|
|
|
|
// GetSyncParentGroup returns the SyncParentGroup field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *LDAPSource) GetSyncParentGroup() string {
|
|
if o == nil || IsNil(o.SyncParentGroup.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SyncParentGroup.Get()
|
|
}
|
|
|
|
// GetSyncParentGroupOk returns a tuple with the SyncParentGroup 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 *LDAPSource) GetSyncParentGroupOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.SyncParentGroup.Get(), o.SyncParentGroup.IsSet()
|
|
}
|
|
|
|
// HasSyncParentGroup returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasSyncParentGroup() bool {
|
|
if o != nil && o.SyncParentGroup.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSyncParentGroup gets a reference to the given NullableString and assigns it to the SyncParentGroup field.
|
|
func (o *LDAPSource) SetSyncParentGroup(v string) {
|
|
o.SyncParentGroup.Set(&v)
|
|
}
|
|
|
|
// SetSyncParentGroupNil sets the value for SyncParentGroup to be an explicit nil
|
|
func (o *LDAPSource) SetSyncParentGroupNil() {
|
|
o.SyncParentGroup.Set(nil)
|
|
}
|
|
|
|
// UnsetSyncParentGroup ensures that no value is present for SyncParentGroup, not even an explicit nil
|
|
func (o *LDAPSource) UnsetSyncParentGroup() {
|
|
o.SyncParentGroup.Unset()
|
|
}
|
|
|
|
// GetConnectivity returns the Connectivity field value
|
|
// If the value is explicit nil, the zero value for map[string]map[string]string will be returned
|
|
func (o *LDAPSource) GetConnectivity() map[string]map[string]string {
|
|
if o == nil {
|
|
var ret map[string]map[string]string
|
|
return ret
|
|
}
|
|
|
|
return o.Connectivity
|
|
}
|
|
|
|
// GetConnectivityOk returns a tuple with the Connectivity field value
|
|
// 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 *LDAPSource) GetConnectivityOk() (*map[string]map[string]string, bool) {
|
|
if o == nil || IsNil(o.Connectivity) {
|
|
return nil, false
|
|
}
|
|
return &o.Connectivity, true
|
|
}
|
|
|
|
// SetConnectivity sets field value
|
|
func (o *LDAPSource) SetConnectivity(v map[string]map[string]string) {
|
|
o.Connectivity = v
|
|
}
|
|
|
|
// GetLookupGroupsFromUser returns the LookupGroupsFromUser field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetLookupGroupsFromUser() bool {
|
|
if o == nil || IsNil(o.LookupGroupsFromUser) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.LookupGroupsFromUser
|
|
}
|
|
|
|
// GetLookupGroupsFromUserOk returns a tuple with the LookupGroupsFromUser field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetLookupGroupsFromUserOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.LookupGroupsFromUser) {
|
|
return nil, false
|
|
}
|
|
return o.LookupGroupsFromUser, true
|
|
}
|
|
|
|
// HasLookupGroupsFromUser returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasLookupGroupsFromUser() bool {
|
|
if o != nil && !IsNil(o.LookupGroupsFromUser) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLookupGroupsFromUser gets a reference to the given bool and assigns it to the LookupGroupsFromUser field.
|
|
func (o *LDAPSource) SetLookupGroupsFromUser(v bool) {
|
|
o.LookupGroupsFromUser = &v
|
|
}
|
|
|
|
// GetDeleteNotFoundObjects returns the DeleteNotFoundObjects field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetDeleteNotFoundObjects() bool {
|
|
if o == nil || IsNil(o.DeleteNotFoundObjects) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.DeleteNotFoundObjects
|
|
}
|
|
|
|
// GetDeleteNotFoundObjectsOk returns a tuple with the DeleteNotFoundObjects field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetDeleteNotFoundObjectsOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.DeleteNotFoundObjects) {
|
|
return nil, false
|
|
}
|
|
return o.DeleteNotFoundObjects, true
|
|
}
|
|
|
|
// HasDeleteNotFoundObjects returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasDeleteNotFoundObjects() bool {
|
|
if o != nil && !IsNil(o.DeleteNotFoundObjects) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDeleteNotFoundObjects gets a reference to the given bool and assigns it to the DeleteNotFoundObjects field.
|
|
func (o *LDAPSource) SetDeleteNotFoundObjects(v bool) {
|
|
o.DeleteNotFoundObjects = &v
|
|
}
|
|
|
|
// GetSyncOutgoingTriggerMode returns the SyncOutgoingTriggerMode field value if set, zero value otherwise.
|
|
func (o *LDAPSource) GetSyncOutgoingTriggerMode() SyncOutgoingTriggerModeEnum {
|
|
if o == nil || IsNil(o.SyncOutgoingTriggerMode) {
|
|
var ret SyncOutgoingTriggerModeEnum
|
|
return ret
|
|
}
|
|
return *o.SyncOutgoingTriggerMode
|
|
}
|
|
|
|
// GetSyncOutgoingTriggerModeOk returns a tuple with the SyncOutgoingTriggerMode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSource) GetSyncOutgoingTriggerModeOk() (*SyncOutgoingTriggerModeEnum, bool) {
|
|
if o == nil || IsNil(o.SyncOutgoingTriggerMode) {
|
|
return nil, false
|
|
}
|
|
return o.SyncOutgoingTriggerMode, true
|
|
}
|
|
|
|
// HasSyncOutgoingTriggerMode returns a boolean if a field has been set.
|
|
func (o *LDAPSource) HasSyncOutgoingTriggerMode() bool {
|
|
if o != nil && !IsNil(o.SyncOutgoingTriggerMode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSyncOutgoingTriggerMode gets a reference to the given SyncOutgoingTriggerModeEnum and assigns it to the SyncOutgoingTriggerMode field.
|
|
func (o *LDAPSource) SetSyncOutgoingTriggerMode(v SyncOutgoingTriggerModeEnum) {
|
|
o.SyncOutgoingTriggerMode = &v
|
|
}
|
|
|
|
func (o LDAPSource) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o LDAPSource) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["pk"] = o.Pk
|
|
toSerialize["name"] = o.Name
|
|
toSerialize["slug"] = o.Slug
|
|
if !IsNil(o.Enabled) {
|
|
toSerialize["enabled"] = o.Enabled
|
|
}
|
|
if !IsNil(o.Promoted) {
|
|
toSerialize["promoted"] = o.Promoted
|
|
}
|
|
if o.AuthenticationFlow.IsSet() {
|
|
toSerialize["authentication_flow"] = o.AuthenticationFlow.Get()
|
|
}
|
|
if o.EnrollmentFlow.IsSet() {
|
|
toSerialize["enrollment_flow"] = o.EnrollmentFlow.Get()
|
|
}
|
|
if !IsNil(o.UserPropertyMappings) {
|
|
toSerialize["user_property_mappings"] = o.UserPropertyMappings
|
|
}
|
|
if !IsNil(o.GroupPropertyMappings) {
|
|
toSerialize["group_property_mappings"] = o.GroupPropertyMappings
|
|
}
|
|
toSerialize["component"] = o.Component
|
|
toSerialize["verbose_name"] = o.VerboseName
|
|
toSerialize["verbose_name_plural"] = o.VerboseNamePlural
|
|
toSerialize["meta_model_name"] = o.MetaModelName
|
|
if !IsNil(o.PolicyEngineMode) {
|
|
toSerialize["policy_engine_mode"] = o.PolicyEngineMode
|
|
}
|
|
if !IsNil(o.UserMatchingMode) {
|
|
toSerialize["user_matching_mode"] = o.UserMatchingMode
|
|
}
|
|
toSerialize["managed"] = o.Managed.Get()
|
|
if !IsNil(o.UserPathTemplate) {
|
|
toSerialize["user_path_template"] = o.UserPathTemplate
|
|
}
|
|
if !IsNil(o.Icon) {
|
|
toSerialize["icon"] = o.Icon
|
|
}
|
|
toSerialize["icon_url"] = o.IconUrl
|
|
toSerialize["icon_themed_urls"] = o.IconThemedUrls.Get()
|
|
toSerialize["server_uri"] = o.ServerUri
|
|
if o.PeerCertificate.IsSet() {
|
|
toSerialize["peer_certificate"] = o.PeerCertificate.Get()
|
|
}
|
|
if o.ClientCertificate.IsSet() {
|
|
toSerialize["client_certificate"] = o.ClientCertificate.Get()
|
|
}
|
|
if !IsNil(o.BindCn) {
|
|
toSerialize["bind_cn"] = o.BindCn
|
|
}
|
|
if !IsNil(o.StartTls) {
|
|
toSerialize["start_tls"] = o.StartTls
|
|
}
|
|
if !IsNil(o.Sni) {
|
|
toSerialize["sni"] = o.Sni
|
|
}
|
|
toSerialize["base_dn"] = o.BaseDn
|
|
if !IsNil(o.AdditionalUserDn) {
|
|
toSerialize["additional_user_dn"] = o.AdditionalUserDn
|
|
}
|
|
if !IsNil(o.AdditionalGroupDn) {
|
|
toSerialize["additional_group_dn"] = o.AdditionalGroupDn
|
|
}
|
|
if !IsNil(o.UserObjectFilter) {
|
|
toSerialize["user_object_filter"] = o.UserObjectFilter
|
|
}
|
|
if !IsNil(o.GroupObjectFilter) {
|
|
toSerialize["group_object_filter"] = o.GroupObjectFilter
|
|
}
|
|
if !IsNil(o.GroupMembershipField) {
|
|
toSerialize["group_membership_field"] = o.GroupMembershipField
|
|
}
|
|
if !IsNil(o.UserMembershipAttribute) {
|
|
toSerialize["user_membership_attribute"] = o.UserMembershipAttribute
|
|
}
|
|
if !IsNil(o.ObjectUniquenessField) {
|
|
toSerialize["object_uniqueness_field"] = o.ObjectUniquenessField
|
|
}
|
|
if !IsNil(o.PasswordLoginUpdateInternalPassword) {
|
|
toSerialize["password_login_update_internal_password"] = o.PasswordLoginUpdateInternalPassword
|
|
}
|
|
if !IsNil(o.SyncUsers) {
|
|
toSerialize["sync_users"] = o.SyncUsers
|
|
}
|
|
if !IsNil(o.SyncUsersPassword) {
|
|
toSerialize["sync_users_password"] = o.SyncUsersPassword
|
|
}
|
|
if !IsNil(o.SyncGroups) {
|
|
toSerialize["sync_groups"] = o.SyncGroups
|
|
}
|
|
if o.SyncParentGroup.IsSet() {
|
|
toSerialize["sync_parent_group"] = o.SyncParentGroup.Get()
|
|
}
|
|
if o.Connectivity != nil {
|
|
toSerialize["connectivity"] = o.Connectivity
|
|
}
|
|
if !IsNil(o.LookupGroupsFromUser) {
|
|
toSerialize["lookup_groups_from_user"] = o.LookupGroupsFromUser
|
|
}
|
|
if !IsNil(o.DeleteNotFoundObjects) {
|
|
toSerialize["delete_not_found_objects"] = o.DeleteNotFoundObjects
|
|
}
|
|
if !IsNil(o.SyncOutgoingTriggerMode) {
|
|
toSerialize["sync_outgoing_trigger_mode"] = o.SyncOutgoingTriggerMode
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *LDAPSource) 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{
|
|
"pk",
|
|
"name",
|
|
"slug",
|
|
"component",
|
|
"verbose_name",
|
|
"verbose_name_plural",
|
|
"meta_model_name",
|
|
"managed",
|
|
"icon_url",
|
|
"icon_themed_urls",
|
|
"server_uri",
|
|
"base_dn",
|
|
"connectivity",
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
varLDAPSource := _LDAPSource{}
|
|
|
|
err = json.Unmarshal(data, &varLDAPSource)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = LDAPSource(varLDAPSource)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "pk")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "slug")
|
|
delete(additionalProperties, "enabled")
|
|
delete(additionalProperties, "promoted")
|
|
delete(additionalProperties, "authentication_flow")
|
|
delete(additionalProperties, "enrollment_flow")
|
|
delete(additionalProperties, "user_property_mappings")
|
|
delete(additionalProperties, "group_property_mappings")
|
|
delete(additionalProperties, "component")
|
|
delete(additionalProperties, "verbose_name")
|
|
delete(additionalProperties, "verbose_name_plural")
|
|
delete(additionalProperties, "meta_model_name")
|
|
delete(additionalProperties, "policy_engine_mode")
|
|
delete(additionalProperties, "user_matching_mode")
|
|
delete(additionalProperties, "managed")
|
|
delete(additionalProperties, "user_path_template")
|
|
delete(additionalProperties, "icon")
|
|
delete(additionalProperties, "icon_url")
|
|
delete(additionalProperties, "icon_themed_urls")
|
|
delete(additionalProperties, "server_uri")
|
|
delete(additionalProperties, "peer_certificate")
|
|
delete(additionalProperties, "client_certificate")
|
|
delete(additionalProperties, "bind_cn")
|
|
delete(additionalProperties, "start_tls")
|
|
delete(additionalProperties, "sni")
|
|
delete(additionalProperties, "base_dn")
|
|
delete(additionalProperties, "additional_user_dn")
|
|
delete(additionalProperties, "additional_group_dn")
|
|
delete(additionalProperties, "user_object_filter")
|
|
delete(additionalProperties, "group_object_filter")
|
|
delete(additionalProperties, "group_membership_field")
|
|
delete(additionalProperties, "user_membership_attribute")
|
|
delete(additionalProperties, "object_uniqueness_field")
|
|
delete(additionalProperties, "password_login_update_internal_password")
|
|
delete(additionalProperties, "sync_users")
|
|
delete(additionalProperties, "sync_users_password")
|
|
delete(additionalProperties, "sync_groups")
|
|
delete(additionalProperties, "sync_parent_group")
|
|
delete(additionalProperties, "connectivity")
|
|
delete(additionalProperties, "lookup_groups_from_user")
|
|
delete(additionalProperties, "delete_not_found_objects")
|
|
delete(additionalProperties, "sync_outgoing_trigger_mode")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableLDAPSource struct {
|
|
value *LDAPSource
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableLDAPSource) Get() *LDAPSource {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableLDAPSource) Set(val *LDAPSource) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableLDAPSource) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableLDAPSource) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableLDAPSource(val *LDAPSource) *NullableLDAPSource {
|
|
return &NullableLDAPSource{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableLDAPSource) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableLDAPSource) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|