/* tslint:disable */
/* eslint-disable */
/**
 * AutoGlue API
 * API for managing K3s clusters across cloud providers
 *
 * The version of the OpenAPI document: dev
 *
 *
 * 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 DtoJobStatus = {
  StatusQueued: "queued|running|succeeded|failed|canceled|retrying|scheduled",
} as const;
export type DtoJobStatus = (typeof DtoJobStatus)[keyof typeof DtoJobStatus];

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

export function DtoJobStatusFromJSON(json: any): DtoJobStatus {
  return DtoJobStatusFromJSONTyped(json, false);
}

export function DtoJobStatusFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoJobStatus {
  return json as DtoJobStatus;
}

export function DtoJobStatusToJSON(value?: DtoJobStatus | null): any {
  return value as any;
}

export function DtoJobStatusToJSONTyped(
  value: any,
  ignoreDiscriminator: boolean,
): DtoJobStatus {
  return value as DtoJobStatus;
}
