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

/**
 *
 * @export
 */
export const CertAttributeEnum = {
    Subject: "subject",
    CommonName: "common_name",
    Email: "email",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type CertAttributeEnum = (typeof CertAttributeEnum)[keyof typeof CertAttributeEnum];

export function instanceOfCertAttributeEnum(value: any): boolean {
    for (const key in CertAttributeEnum) {
        if (Object.prototype.hasOwnProperty.call(CertAttributeEnum, key)) {
            if (CertAttributeEnum[key as keyof typeof CertAttributeEnum] === value) {
                return true;
            }
        }
    }
    return false;
}

export function CertAttributeEnumFromJSON(json: any): CertAttributeEnum {
    return CertAttributeEnumFromJSONTyped(json, false);
}

export function CertAttributeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): CertAttributeEnum {
    return json as CertAttributeEnum;
}

export function CertAttributeEnumToJSON(value?: CertAttributeEnum | null): any {
    return value as any;
}

export function CertAttributeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): CertAttributeEnum {
    return value as CertAttributeEnum;
}
