/* 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 SCIMAuthenticationModeEnum = {
    Token: "token",
    Oauth: "oauth",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type SCIMAuthenticationModeEnum =
    (typeof SCIMAuthenticationModeEnum)[keyof typeof SCIMAuthenticationModeEnum];

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

export function SCIMAuthenticationModeEnumFromJSON(json: any): SCIMAuthenticationModeEnum {
    return SCIMAuthenticationModeEnumFromJSONTyped(json, false);
}

export function SCIMAuthenticationModeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): SCIMAuthenticationModeEnum {
    return json as SCIMAuthenticationModeEnum;
}

export function SCIMAuthenticationModeEnumToJSON(value?: SCIMAuthenticationModeEnum | null): any {
    return value as any;
}

export function SCIMAuthenticationModeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): SCIMAuthenticationModeEnum {
    return value as SCIMAuthenticationModeEnum;
}
