"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfLDAPOutpostConfig = instanceOfLDAPOutpostConfig;
exports.LDAPOutpostConfigFromJSON = LDAPOutpostConfigFromJSON;
exports.LDAPOutpostConfigFromJSONTyped = LDAPOutpostConfigFromJSONTyped;
exports.LDAPOutpostConfigToJSON = LDAPOutpostConfigToJSON;
exports.LDAPOutpostConfigToJSONTyped = LDAPOutpostConfigToJSONTyped;
const LDAPAPIAccessMode_1 = require("./LDAPAPIAccessMode");
/**
 * Check if a given object implements the LDAPOutpostConfig interface.
 */
function instanceOfLDAPOutpostConfig(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('bindFlowSlug' in value) || value['bindFlowSlug'] === undefined)
        return false;
    if (!('unbindFlowSlug' in value) || value['unbindFlowSlug'] === undefined)
        return false;
    if (!('applicationSlug' in value) || value['applicationSlug'] === undefined)
        return false;
    return true;
}
function LDAPOutpostConfigFromJSON(json) {
    return LDAPOutpostConfigFromJSONTyped(json, false);
}
function LDAPOutpostConfigFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'baseDn': json['base_dn'] == null ? undefined : json['base_dn'],
        'bindFlowSlug': json['bind_flow_slug'],
        'unbindFlowSlug': json['unbind_flow_slug'],
        'applicationSlug': json['application_slug'],
        'certificate': json['certificate'] == null ? undefined : json['certificate'],
        'tlsServerName': json['tls_server_name'] == null ? undefined : json['tls_server_name'],
        'uidStartNumber': json['uid_start_number'] == null ? undefined : json['uid_start_number'],
        'gidStartNumber': json['gid_start_number'] == null ? undefined : json['gid_start_number'],
        'searchMode': json['search_mode'] == null ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['search_mode']),
        'bindMode': json['bind_mode'] == null ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['bind_mode']),
        'mfaSupport': json['mfa_support'] == null ? undefined : json['mfa_support'],
    };
}
function LDAPOutpostConfigToJSON(json) {
    return LDAPOutpostConfigToJSONTyped(json, false);
}
function LDAPOutpostConfigToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'base_dn': value['baseDn'],
        'bind_flow_slug': value['bindFlowSlug'],
        'certificate': value['certificate'],
        'tls_server_name': value['tlsServerName'],
        'uid_start_number': value['uidStartNumber'],
        'gid_start_number': value['gidStartNumber'],
        'search_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value['searchMode']),
        'bind_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value['bindMode']),
        'mfa_support': value['mfaSupport'],
    };
}
//# sourceMappingURL=LDAPOutpostConfig.js.map