mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
62 lines
1.4 KiB
TypeScript
62 lines
1.4 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* AutoGlue API
|
|
* API for managing K3s clusters across cloud providers
|
|
*
|
|
* The version of the OpenAPI document: 1.0
|
|
*
|
|
*
|
|
* 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",
|
|
StatusRunning: "running",
|
|
StatusSucceeded: "succeeded",
|
|
StatusFailed: "failed",
|
|
StatusCanceled: "canceled",
|
|
StatusRetrying: "retrying",
|
|
StatusScheduled: "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;
|
|
}
|