/* tslint:disable */ /* eslint-disable */ /** * Tapis Workflows API * Create and manage pipelines * * The version of the OpenAPI document: 1.6.0 * Contact: cicsupport@tacc.utexas.edu * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { EnumRunStatus, EnumRunStatusFromJSON, EnumRunStatusFromJSONTyped, EnumRunStatusToJSON, } from './'; /** * * @export * @interface TaskExecution */ export interface TaskExecution { /** * * @type {string} * @memberof TaskExecution */ uuid?: string; /** * * @type {string} * @memberof TaskExecution */ pipeline_run?: string; /** * * @type {string} * @memberof TaskExecution */ task_id?: string; /** * * @type {EnumRunStatus} * @memberof TaskExecution */ status?: EnumRunStatus; /** * * @type {string} * @memberof TaskExecution */ started_at?: string; /** * * @type {string} * @memberof TaskExecution */ last_modified?: string; /** * * @type {string} * @memberof TaskExecution */ last_message?: string; /** * * @type {string} * @memberof TaskExecution */ stderr?: string; /** * * @type {string} * @memberof TaskExecution */ stdout?: string; } export function TaskExecutionFromJSON(json: any): TaskExecution { return TaskExecutionFromJSONTyped(json, false); } export function TaskExecutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskExecution { if ((json === undefined) || (json === null)) { return json; } return { 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'], 'pipeline_run': !exists(json, 'pipeline_run') ? undefined : json['pipeline_run'], 'task_id': !exists(json, 'task_id') ? undefined : json['task_id'], 'status': !exists(json, 'status') ? undefined : EnumRunStatusFromJSON(json['status']), 'started_at': !exists(json, 'started_at') ? undefined : json['started_at'], 'last_modified': !exists(json, 'last_modified') ? undefined : json['last_modified'], 'last_message': !exists(json, 'last_message') ? undefined : json['last_message'], 'stderr': !exists(json, 'stderr') ? undefined : json['stderr'], 'stdout': !exists(json, 'stdout') ? undefined : json['stdout'], }; } export function TaskExecutionToJSON(value?: TaskExecution | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'uuid': value.uuid, 'pipeline_run': value.pipeline_run, 'task_id': value.task_id, 'status': EnumRunStatusToJSON(value.status), 'started_at': value.started_at, 'last_modified': value.last_modified, 'last_message': value.last_message, 'stderr': value.stderr, 'stdout': value.stdout, }; }