/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.2.3-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'; /** * * @export * @interface ScheduleRequest */ export interface ScheduleRequest { /** * * @type {string} * @memberof ScheduleRequest */ relObjId?: string | null; /** * When to schedule tasks * @type {string} * @memberof ScheduleRequest */ crontab: string; /** * Pause this schedule * @type {boolean} * @memberof ScheduleRequest */ paused?: boolean; } /** * Check if a given object implements the ScheduleRequest interface. */ export function instanceOfScheduleRequest(value: object): value is ScheduleRequest { if (!('crontab' in value) || value['crontab'] === undefined) return false; return true; } export function ScheduleRequestFromJSON(json: any): ScheduleRequest { return ScheduleRequestFromJSONTyped(json, false); } export function ScheduleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleRequest { if (json == null) { return json; } return { 'relObjId': json['rel_obj_id'] == null ? undefined : json['rel_obj_id'], 'crontab': json['crontab'], 'paused': json['paused'] == null ? undefined : json['paused'], }; } export function ScheduleRequestToJSON(json: any): ScheduleRequest { return ScheduleRequestToJSONTyped(json, false); } export function ScheduleRequestToJSONTyped(value?: ScheduleRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'rel_obj_id': value['relObjId'], 'crontab': value['crontab'], 'paused': value['paused'], }; }