/**
 * tasks
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * OpenAPI spec version: 2.14
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

import { Script } from '././script';
import { ConfigurationItem } from '././configurationItem';
import { Execution } from '././execution';
import { TaskModels } from '././taskModels';
import { Output } from '././output';
import { TaskStatusEnum } from '././taskStatusEnum';
import { TaskTypeEnum } from '././taskTypeEnum';
import {Input} from '@angular/core';
import {Container} from '~/business-logic/model/tasks/container';


export interface Task {
    /**
     * Task id
     */
    id?: string;
    /**
     * Task Name
     */
    name?: string;
    /**
     * Associated user id
     */
    user?: string;
    /**
     * Company ID
     */
    company?: string;
    type?: TaskTypeEnum;
    status?: TaskStatusEnum;
    /**
     * Free text comment
     */
    comment?: string;
    /**
     * Task creation time (UTC)
     */
    created?: string;
    /**
     * Task start time (UTC)
     */
    started?: string;
    /**
     * Task end time (UTC)
     */
    completed?: string;
    /**
     * Task duration time (seconds)
     */
    active_duration?: number;
    /**
     * Parent task id
     */
    parent?: {id: string; name: string; project?: {id: string}};
    /**
     * Project ID of the project to which this task is assigned
     */
    project?: string;
    input?: Input;
    output?: Output;
    execution?: Execution;
    /**
     * Docker container parameters
     */
    models?: TaskModels;
    container?: Container;
    script?: Script;
    /**
     * User-defined tags list
     */
    tags?: Array<string>;
    /**
     * System tags list. This field is reserved for system use, please don\'t use it.
     */
    system_tags?: Array<string>;
    /**
     * Last status change time
     */
    status_changed?: string;
    /**
     * free text string representing info about the status
     */
    status_message?: string;
    /**
     * Reason for last status change
     */
    status_reason?: string;
    /**
     * Last status change time
     */
    published?: string;
    /**
     * ID of last worker that handled the task
     */
    last_worker?: string;
    /**
     * Last time a worker reported while working on this task
     */
    last_worker_report?: string;
    /**
     * Last time this task was created, updated, changed or events for this task were reported
     */
    last_update?: string;
    /**
     * Last time any update was done to the task
     */
    last_change?: string;
    /**
     * Last iteration reported for this task
     */
    last_iteration?: number;
    /**
     * Last metric variants (hash to events), one for each metric hash
     */
    last_metrics?: { [key: string]: any; };
    /**
     * Task hyper params per section
     */
    hyperparams?: { [key: string]: any; };
    /**
     * Task configuration params
     */
    configuration?: { [key: string]: ConfigurationItem; };
    runtime?: { [key: string]: string};
}
