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>
1477 lines
46 KiB
Go
Generated
1477 lines
46 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 LDAPSourceRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &LDAPSourceRequest{}
|
|
|
|
// LDAPSourceRequest LDAP Source Serializer
|
|
type LDAPSourceRequest struct {
|
|
// 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"`
|
|
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"`
|
|
UserPathTemplate *string `json:"user_path_template,omitempty"`
|
|
Icon *string `json:"icon,omitempty"`
|
|
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"`
|
|
BindPassword *string `json:"bind_password,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"`
|
|
// 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 _LDAPSourceRequest LDAPSourceRequest
|
|
|
|
// NewLDAPSourceRequest instantiates a new LDAPSourceRequest 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 NewLDAPSourceRequest(name string, slug string, serverUri string, baseDn string) *LDAPSourceRequest {
|
|
this := LDAPSourceRequest{}
|
|
this.Name = name
|
|
this.Slug = slug
|
|
this.ServerUri = serverUri
|
|
this.BaseDn = baseDn
|
|
return &this
|
|
}
|
|
|
|
// NewLDAPSourceRequestWithDefaults instantiates a new LDAPSourceRequest 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 NewLDAPSourceRequestWithDefaults() *LDAPSourceRequest {
|
|
this := LDAPSourceRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetName returns the Name field value
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) GetNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Name, true
|
|
}
|
|
|
|
// SetName sets field value
|
|
func (o *LDAPSourceRequest) SetName(v string) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetSlug returns the Slug field value
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) GetSlugOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Slug, true
|
|
}
|
|
|
|
// SetSlug sets field value
|
|
func (o *LDAPSourceRequest) SetSlug(v string) {
|
|
o.Slug = v
|
|
}
|
|
|
|
// GetEnabled returns the Enabled field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetEnabled(v bool) {
|
|
o.Enabled = &v
|
|
}
|
|
|
|
// GetPromoted returns the Promoted field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetAuthenticationFlow(v string) {
|
|
o.AuthenticationFlow.Set(&v)
|
|
}
|
|
|
|
// SetAuthenticationFlowNil sets the value for AuthenticationFlow to be an explicit nil
|
|
func (o *LDAPSourceRequest) SetAuthenticationFlowNil() {
|
|
o.AuthenticationFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthenticationFlow ensures that no value is present for AuthenticationFlow, not even an explicit nil
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetEnrollmentFlow(v string) {
|
|
o.EnrollmentFlow.Set(&v)
|
|
}
|
|
|
|
// SetEnrollmentFlowNil sets the value for EnrollmentFlow to be an explicit nil
|
|
func (o *LDAPSourceRequest) SetEnrollmentFlowNil() {
|
|
o.EnrollmentFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetEnrollmentFlow ensures that no value is present for EnrollmentFlow, not even an explicit nil
|
|
func (o *LDAPSourceRequest) UnsetEnrollmentFlow() {
|
|
o.EnrollmentFlow.Unset()
|
|
}
|
|
|
|
// GetUserPropertyMappings returns the UserPropertyMappings field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetUserPropertyMappings(v []string) {
|
|
o.UserPropertyMappings = v
|
|
}
|
|
|
|
// GetGroupPropertyMappings returns the GroupPropertyMappings field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetGroupPropertyMappings(v []string) {
|
|
o.GroupPropertyMappings = v
|
|
}
|
|
|
|
// GetPolicyEngineMode returns the PolicyEngineMode field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetPolicyEngineMode(v PolicyEngineMode) {
|
|
o.PolicyEngineMode = &v
|
|
}
|
|
|
|
// GetUserMatchingMode returns the UserMatchingMode field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetUserMatchingMode(v UserMatchingModeEnum) {
|
|
o.UserMatchingMode = &v
|
|
}
|
|
|
|
// GetUserPathTemplate returns the UserPathTemplate field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetUserPathTemplate(v string) {
|
|
o.UserPathTemplate = &v
|
|
}
|
|
|
|
// GetIcon returns the Icon field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetIcon(v string) {
|
|
o.Icon = &v
|
|
}
|
|
|
|
// GetServerUri returns the ServerUri field value
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) GetServerUriOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.ServerUri, true
|
|
}
|
|
|
|
// SetServerUri sets field value
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetPeerCertificate(v string) {
|
|
o.PeerCertificate.Set(&v)
|
|
}
|
|
|
|
// SetPeerCertificateNil sets the value for PeerCertificate to be an explicit nil
|
|
func (o *LDAPSourceRequest) SetPeerCertificateNil() {
|
|
o.PeerCertificate.Set(nil)
|
|
}
|
|
|
|
// UnsetPeerCertificate ensures that no value is present for PeerCertificate, not even an explicit nil
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetClientCertificate(v string) {
|
|
o.ClientCertificate.Set(&v)
|
|
}
|
|
|
|
// SetClientCertificateNil sets the value for ClientCertificate to be an explicit nil
|
|
func (o *LDAPSourceRequest) SetClientCertificateNil() {
|
|
o.ClientCertificate.Set(nil)
|
|
}
|
|
|
|
// UnsetClientCertificate ensures that no value is present for ClientCertificate, not even an explicit nil
|
|
func (o *LDAPSourceRequest) UnsetClientCertificate() {
|
|
o.ClientCertificate.Unset()
|
|
}
|
|
|
|
// GetBindCn returns the BindCn field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetBindCn(v string) {
|
|
o.BindCn = &v
|
|
}
|
|
|
|
// GetBindPassword returns the BindPassword field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) GetBindPassword() string {
|
|
if o == nil || IsNil(o.BindPassword) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.BindPassword
|
|
}
|
|
|
|
// GetBindPasswordOk returns a tuple with the BindPassword field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LDAPSourceRequest) GetBindPasswordOk() (*string, bool) {
|
|
if o == nil || IsNil(o.BindPassword) {
|
|
return nil, false
|
|
}
|
|
return o.BindPassword, true
|
|
}
|
|
|
|
// HasBindPassword returns a boolean if a field has been set.
|
|
func (o *LDAPSourceRequest) HasBindPassword() bool {
|
|
if o != nil && !IsNil(o.BindPassword) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBindPassword gets a reference to the given string and assigns it to the BindPassword field.
|
|
func (o *LDAPSourceRequest) SetBindPassword(v string) {
|
|
o.BindPassword = &v
|
|
}
|
|
|
|
// GetStartTls returns the StartTls field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetStartTls(v bool) {
|
|
o.StartTls = &v
|
|
}
|
|
|
|
// GetSni returns the Sni field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetSni(v bool) {
|
|
o.Sni = &v
|
|
}
|
|
|
|
// GetBaseDn returns the BaseDn field value
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) GetBaseDnOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.BaseDn, true
|
|
}
|
|
|
|
// SetBaseDn sets field value
|
|
func (o *LDAPSourceRequest) SetBaseDn(v string) {
|
|
o.BaseDn = v
|
|
}
|
|
|
|
// GetAdditionalUserDn returns the AdditionalUserDn field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetAdditionalUserDn(v string) {
|
|
o.AdditionalUserDn = &v
|
|
}
|
|
|
|
// GetAdditionalGroupDn returns the AdditionalGroupDn field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetAdditionalGroupDn(v string) {
|
|
o.AdditionalGroupDn = &v
|
|
}
|
|
|
|
// GetUserObjectFilter returns the UserObjectFilter field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetUserObjectFilter(v string) {
|
|
o.UserObjectFilter = &v
|
|
}
|
|
|
|
// GetGroupObjectFilter returns the GroupObjectFilter field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetGroupObjectFilter(v string) {
|
|
o.GroupObjectFilter = &v
|
|
}
|
|
|
|
// GetGroupMembershipField returns the GroupMembershipField field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetGroupMembershipField(v string) {
|
|
o.GroupMembershipField = &v
|
|
}
|
|
|
|
// GetUserMembershipAttribute returns the UserMembershipAttribute field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetUserMembershipAttribute(v string) {
|
|
o.UserMembershipAttribute = &v
|
|
}
|
|
|
|
// GetObjectUniquenessField returns the ObjectUniquenessField field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetObjectUniquenessField(v string) {
|
|
o.ObjectUniquenessField = &v
|
|
}
|
|
|
|
// GetPasswordLoginUpdateInternalPassword returns the PasswordLoginUpdateInternalPassword field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetPasswordLoginUpdateInternalPassword(v bool) {
|
|
o.PasswordLoginUpdateInternalPassword = &v
|
|
}
|
|
|
|
// GetSyncUsers returns the SyncUsers field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetSyncUsers(v bool) {
|
|
o.SyncUsers = &v
|
|
}
|
|
|
|
// GetSyncUsersPassword returns the SyncUsersPassword field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetSyncUsersPassword(v bool) {
|
|
o.SyncUsersPassword = &v
|
|
}
|
|
|
|
// GetSyncGroups returns the SyncGroups field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetSyncParentGroup(v string) {
|
|
o.SyncParentGroup.Set(&v)
|
|
}
|
|
|
|
// SetSyncParentGroupNil sets the value for SyncParentGroup to be an explicit nil
|
|
func (o *LDAPSourceRequest) SetSyncParentGroupNil() {
|
|
o.SyncParentGroup.Set(nil)
|
|
}
|
|
|
|
// UnsetSyncParentGroup ensures that no value is present for SyncParentGroup, not even an explicit nil
|
|
func (o *LDAPSourceRequest) UnsetSyncParentGroup() {
|
|
o.SyncParentGroup.Unset()
|
|
}
|
|
|
|
// GetLookupGroupsFromUser returns the LookupGroupsFromUser field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetLookupGroupsFromUser(v bool) {
|
|
o.LookupGroupsFromUser = &v
|
|
}
|
|
|
|
// GetDeleteNotFoundObjects returns the DeleteNotFoundObjects field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetDeleteNotFoundObjects(v bool) {
|
|
o.DeleteNotFoundObjects = &v
|
|
}
|
|
|
|
// GetSyncOutgoingTriggerMode returns the SyncOutgoingTriggerMode field value if set, zero value otherwise.
|
|
func (o *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) 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 *LDAPSourceRequest) SetSyncOutgoingTriggerMode(v SyncOutgoingTriggerModeEnum) {
|
|
o.SyncOutgoingTriggerMode = &v
|
|
}
|
|
|
|
func (o LDAPSourceRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o LDAPSourceRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
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
|
|
}
|
|
if !IsNil(o.PolicyEngineMode) {
|
|
toSerialize["policy_engine_mode"] = o.PolicyEngineMode
|
|
}
|
|
if !IsNil(o.UserMatchingMode) {
|
|
toSerialize["user_matching_mode"] = o.UserMatchingMode
|
|
}
|
|
if !IsNil(o.UserPathTemplate) {
|
|
toSerialize["user_path_template"] = o.UserPathTemplate
|
|
}
|
|
if !IsNil(o.Icon) {
|
|
toSerialize["icon"] = o.Icon
|
|
}
|
|
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.BindPassword) {
|
|
toSerialize["bind_password"] = o.BindPassword
|
|
}
|
|
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 !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 *LDAPSourceRequest) 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",
|
|
"slug",
|
|
"server_uri",
|
|
"base_dn",
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
varLDAPSourceRequest := _LDAPSourceRequest{}
|
|
|
|
err = json.Unmarshal(data, &varLDAPSourceRequest)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = LDAPSourceRequest(varLDAPSourceRequest)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
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, "policy_engine_mode")
|
|
delete(additionalProperties, "user_matching_mode")
|
|
delete(additionalProperties, "user_path_template")
|
|
delete(additionalProperties, "icon")
|
|
delete(additionalProperties, "server_uri")
|
|
delete(additionalProperties, "peer_certificate")
|
|
delete(additionalProperties, "client_certificate")
|
|
delete(additionalProperties, "bind_cn")
|
|
delete(additionalProperties, "bind_password")
|
|
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, "lookup_groups_from_user")
|
|
delete(additionalProperties, "delete_not_found_objects")
|
|
delete(additionalProperties, "sync_outgoing_trigger_mode")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableLDAPSourceRequest struct {
|
|
value *LDAPSourceRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableLDAPSourceRequest) Get() *LDAPSourceRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableLDAPSourceRequest) Set(val *LDAPSourceRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableLDAPSourceRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableLDAPSourceRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableLDAPSourceRequest(val *LDAPSourceRequest) *NullableLDAPSourceRequest {
|
|
return &NullableLDAPSourceRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableLDAPSourceRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableLDAPSourceRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|