"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.0-rc1
 * 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.instanceOfPatchedKerberosSourceRequest = instanceOfPatchedKerberosSourceRequest;
exports.PatchedKerberosSourceRequestFromJSON = PatchedKerberosSourceRequestFromJSON;
exports.PatchedKerberosSourceRequestFromJSONTyped = PatchedKerberosSourceRequestFromJSONTyped;
exports.PatchedKerberosSourceRequestToJSON = PatchedKerberosSourceRequestToJSON;
exports.PatchedKerberosSourceRequestToJSONTyped = PatchedKerberosSourceRequestToJSONTyped;
const KadminTypeEnum_1 = require("./KadminTypeEnum");
const PolicyEngineMode_1 = require("./PolicyEngineMode");
const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
/**
 * Check if a given object implements the PatchedKerberosSourceRequest interface.
 */
function instanceOfPatchedKerberosSourceRequest(value) {
    return true;
}
function PatchedKerberosSourceRequestFromJSON(json) {
    return PatchedKerberosSourceRequestFromJSONTyped(json, false);
}
function PatchedKerberosSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'slug': json['slug'] == null ? undefined : json['slug'],
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'promoted': json['promoted'] == null ? undefined : json['promoted'],
        'authenticationFlow': json['authentication_flow'] == null ? undefined : json['authentication_flow'],
        'enrollmentFlow': json['enrollment_flow'] == null ? undefined : json['enrollment_flow'],
        'userPropertyMappings': json['user_property_mappings'] == null ? undefined : json['user_property_mappings'],
        'groupPropertyMappings': json['group_property_mappings'] == null ? undefined : json['group_property_mappings'],
        'policyEngineMode': json['policy_engine_mode'] == null ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
        'userMatchingMode': json['user_matching_mode'] == null ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
        'userPathTemplate': json['user_path_template'] == null ? undefined : json['user_path_template'],
        'groupMatchingMode': json['group_matching_mode'] == null ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
        'realm': json['realm'] == null ? undefined : json['realm'],
        'krb5Conf': json['krb5_conf'] == null ? undefined : json['krb5_conf'],
        'kadminType': json['kadmin_type'] == null ? undefined : (0, KadminTypeEnum_1.KadminTypeEnumFromJSON)(json['kadmin_type']),
        'syncUsers': json['sync_users'] == null ? undefined : json['sync_users'],
        'syncUsersPassword': json['sync_users_password'] == null ? undefined : json['sync_users_password'],
        'syncPrincipal': json['sync_principal'] == null ? undefined : json['sync_principal'],
        'syncPassword': json['sync_password'] == null ? undefined : json['sync_password'],
        'syncKeytab': json['sync_keytab'] == null ? undefined : json['sync_keytab'],
        'syncCcache': json['sync_ccache'] == null ? undefined : json['sync_ccache'],
        'spnegoServerName': json['spnego_server_name'] == null ? undefined : json['spnego_server_name'],
        'spnegoKeytab': json['spnego_keytab'] == null ? undefined : json['spnego_keytab'],
        'spnegoCcache': json['spnego_ccache'] == null ? undefined : json['spnego_ccache'],
        'passwordLoginUpdateInternalPassword': json['password_login_update_internal_password'] == null ? undefined : json['password_login_update_internal_password'],
    };
}
function PatchedKerberosSourceRequestToJSON(json) {
    return PatchedKerberosSourceRequestToJSONTyped(json, false);
}
function PatchedKerberosSourceRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'slug': value['slug'],
        'enabled': value['enabled'],
        'promoted': value['promoted'],
        'authentication_flow': value['authenticationFlow'],
        'enrollment_flow': value['enrollmentFlow'],
        'user_property_mappings': value['userPropertyMappings'],
        'group_property_mappings': value['groupPropertyMappings'],
        'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value['policyEngineMode']),
        'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value['userMatchingMode']),
        'user_path_template': value['userPathTemplate'],
        'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value['groupMatchingMode']),
        'realm': value['realm'],
        'krb5_conf': value['krb5Conf'],
        'kadmin_type': (0, KadminTypeEnum_1.KadminTypeEnumToJSON)(value['kadminType']),
        'sync_users': value['syncUsers'],
        'sync_users_password': value['syncUsersPassword'],
        'sync_principal': value['syncPrincipal'],
        'sync_password': value['syncPassword'],
        'sync_keytab': value['syncKeytab'],
        'sync_ccache': value['syncCcache'],
        'spnego_server_name': value['spnegoServerName'],
        'spnego_keytab': value['spnegoKeytab'],
        'spnego_ccache': value['spnegoCcache'],
        'password_login_update_internal_password': value['passwordLoginUpdateInternalPassword'],
    };
}
//# sourceMappingURL=PatchedKerberosSourceRequest.js.map