/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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 UsedByActionEnum = {
    Cascade: 'cascade',
    CascadeMany: 'cascade_many',
    SetNull: 'set_null',
    SetDefault: 'set_default',
    UnknownDefaultOpenApi: '11184809'
} as const;
export type UsedByActionEnum = typeof UsedByActionEnum[keyof typeof UsedByActionEnum];


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

export function UsedByActionEnumFromJSON(json: any): UsedByActionEnum {
    return UsedByActionEnumFromJSONTyped(json, false);
}

export function UsedByActionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsedByActionEnum {
    return json as UsedByActionEnum;
}

export function UsedByActionEnumToJSON(value?: UsedByActionEnum | null): any {
    return value as any;
}

export function UsedByActionEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): UsedByActionEnum {
    return value as UsedByActionEnum;
}

