/* 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
 * @interface PatchedScheduleRequest
 */
export interface PatchedScheduleRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedScheduleRequest
     */
    relObjId?: string | null;
    /**
     * When to schedule tasks
     * @type {string}
     * @memberof PatchedScheduleRequest
     */
    crontab?: string;
    /**
     * Pause this schedule
     * @type {boolean}
     * @memberof PatchedScheduleRequest
     */
    paused?: boolean;
}

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

export function PatchedScheduleRequestFromJSON(json: any): PatchedScheduleRequest {
    return PatchedScheduleRequestFromJSONTyped(json, false);
}

export function PatchedScheduleRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedScheduleRequest {
    if (json == null) {
        return json;
    }
    return {
        relObjId: json["rel_obj_id"] == null ? undefined : json["rel_obj_id"],
        crontab: json["crontab"] == null ? undefined : json["crontab"],
        paused: json["paused"] == null ? undefined : json["paused"],
    };
}

export function PatchedScheduleRequestToJSON(json: any): PatchedScheduleRequest {
    return PatchedScheduleRequestToJSONTyped(json, false);
}

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

    return {
        rel_obj_id: value["relObjId"],
        crontab: value["crontab"],
        paused: value["paused"],
    };
}
