/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.
 */

import { mapValues } from '../runtime';
/**
 * KubernetesServiceConnection Serializer
 * @export
 * @interface PatchedKubernetesServiceConnectionRequest
 */
export interface PatchedKubernetesServiceConnectionRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedKubernetesServiceConnectionRequest
     */
    name?: string;
    /**
     * If enabled, use the local connection. Required Docker socket/Kubernetes Integration
     * @type {boolean}
     * @memberof PatchedKubernetesServiceConnectionRequest
     */
    local?: boolean;
    /**
     * Paste your kubeconfig here. authentik will automatically use the currently selected context.
     * @type {{ [key: string]: any; }}
     * @memberof PatchedKubernetesServiceConnectionRequest
     */
    kubeconfig?: { [key: string]: any; };
    /**
     * Verify SSL Certificates of the Kubernetes API endpoint
     * @type {boolean}
     * @memberof PatchedKubernetesServiceConnectionRequest
     */
    verifySsl?: boolean;
}

/**
 * Check if a given object implements the PatchedKubernetesServiceConnectionRequest interface.
 */
export function instanceOfPatchedKubernetesServiceConnectionRequest(value: object): value is PatchedKubernetesServiceConnectionRequest {
    return true;
}

export function PatchedKubernetesServiceConnectionRequestFromJSON(json: any): PatchedKubernetesServiceConnectionRequest {
    return PatchedKubernetesServiceConnectionRequestFromJSONTyped(json, false);
}

export function PatchedKubernetesServiceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedKubernetesServiceConnectionRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'] == null ? undefined : json['name'],
        'local': json['local'] == null ? undefined : json['local'],
        'kubeconfig': json['kubeconfig'] == null ? undefined : json['kubeconfig'],
        'verifySsl': json['verify_ssl'] == null ? undefined : json['verify_ssl'],
    };
}

export function PatchedKubernetesServiceConnectionRequestToJSON(json: any): PatchedKubernetesServiceConnectionRequest {
    return PatchedKubernetesServiceConnectionRequestToJSONTyped(json, false);
}

export function PatchedKubernetesServiceConnectionRequestToJSONTyped(value?: PatchedKubernetesServiceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'name': value['name'],
        'local': value['local'],
        'kubeconfig': value['kubeconfig'],
        'verify_ssl': value['verifySsl'],
    };
}

