"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.instanceOfKubernetesServiceConnection = instanceOfKubernetesServiceConnection;
exports.KubernetesServiceConnectionFromJSON = KubernetesServiceConnectionFromJSON;
exports.KubernetesServiceConnectionFromJSONTyped = KubernetesServiceConnectionFromJSONTyped;
exports.KubernetesServiceConnectionToJSON = KubernetesServiceConnectionToJSON;
exports.KubernetesServiceConnectionToJSONTyped = KubernetesServiceConnectionToJSONTyped;
/**
 * Check if a given object implements the KubernetesServiceConnection interface.
 */
function instanceOfKubernetesServiceConnection(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined)
        return false;
    if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
        return false;
    if (!('metaModelName' in value) || value['metaModelName'] === undefined)
        return false;
    return true;
}
function KubernetesServiceConnectionFromJSON(json) {
    return KubernetesServiceConnectionFromJSONTyped(json, false);
}
function KubernetesServiceConnectionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'local': json['local'] == null ? undefined : json['local'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
        'kubeconfig': json['kubeconfig'] == null ? undefined : json['kubeconfig'],
        'verifySsl': json['verify_ssl'] == null ? undefined : json['verify_ssl'],
    };
}
function KubernetesServiceConnectionToJSON(json) {
    return KubernetesServiceConnectionToJSONTyped(json, false);
}
function KubernetesServiceConnectionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'local': value['local'],
        'kubeconfig': value['kubeconfig'],
        'verify_ssl': value['verifySsl'],
    };
}
//# sourceMappingURL=KubernetesServiceConnection.js.map