/* 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';
/**
 * SSFProvider Serializer
 * @export
 * @interface PatchedSSFProviderRequest
 */
export interface PatchedSSFProviderRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedSSFProviderRequest
     */
    name?: string;
    /**
     * Key used to sign the SSF Events.
     * @type {string}
     * @memberof PatchedSSFProviderRequest
     */
    signingKey?: string;
    /**
     * 
     * @type {Array<number>}
     * @memberof PatchedSSFProviderRequest
     */
    oidcAuthProviders?: Array<number>;
    /**
     * 
     * @type {string}
     * @memberof PatchedSSFProviderRequest
     */
    eventRetention?: string;
}

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

export function PatchedSSFProviderRequestFromJSON(json: any): PatchedSSFProviderRequest {
    return PatchedSSFProviderRequestFromJSONTyped(json, false);
}

export function PatchedSSFProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSSFProviderRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'] == null ? undefined : json['name'],
        'signingKey': json['signing_key'] == null ? undefined : json['signing_key'],
        'oidcAuthProviders': json['oidc_auth_providers'] == null ? undefined : json['oidc_auth_providers'],
        'eventRetention': json['event_retention'] == null ? undefined : json['event_retention'],
    };
}

export function PatchedSSFProviderRequestToJSON(json: any): PatchedSSFProviderRequest {
    return PatchedSSFProviderRequestToJSONTyped(json, false);
}

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

    return {
        
        'name': value['name'],
        'signing_key': value['signingKey'],
        'oidc_auth_providers': value['oidcAuthProviders'],
        'event_retention': value['eventRetention'],
    };
}

