/* tslint:disable */ /* eslint-disable */ /** * Abaco API * Abaco (Actor Based Containers) is an API and distributed computing platform funded by the National Science Foundation to provide Functions-as-a-service to the research computing community. Abaco leverages Docker containers and the Actor Model of Concurrent Computation to provide generic function primitives that are portable, composable and scalable. * * The version of the OpenAPI document: 1 * 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'; /** * * @export * @interface ActorExecution */ export interface ActorExecution { /** * the id of the actor * @type {string} * @memberof ActorExecution */ actor_id?: string; /** * the base URL for this Abaco instance. * @type {string} * @memberof ActorExecution */ api_server?: string; /** * The user who owns the associated actor. * @type {string} * @memberof ActorExecution */ owner?: string; /** * * @type {number} * @memberof ActorExecution */ cpu?: number; /** * the id of the executions * @type {string} * @memberof ActorExecution */ id?: string; /** * the time the execution started. * @type {string} * @memberof ActorExecution */ start_time?: string; /** * the status of the execution. * @type {string} * @memberof ActorExecution */ status?: ActorExecutionStatusEnum; /** * the time the message was originally received by Abaco. * @type {string} * @memberof ActorExecution */ message_received_time?: string; /** * * @type {number} * @memberof ActorExecution */ io?: number; /** * * @type {number} * @memberof ActorExecution */ runtime?: number; /** * the id of the Abaco worker that supervised the execution. * @type {string} * @memberof ActorExecution */ worker_id?: string; } /** * @export * @enum {string} */ export enum ActorExecutionStatusEnum { Submitted = 'SUBMITTED', Running = 'RUNNING', Complete = 'COMPLETE' } export function ActorExecutionFromJSON(json: any): ActorExecution { return ActorExecutionFromJSONTyped(json, false); } export function ActorExecutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActorExecution { if ((json === undefined) || (json === null)) { return json; } return { 'actor_id': !exists(json, 'actor_id') ? undefined : json['actor_id'], 'api_server': !exists(json, 'api_server') ? undefined : json['api_server'], 'owner': !exists(json, 'owner') ? undefined : json['owner'], 'cpu': !exists(json, 'cpu') ? undefined : json['cpu'], 'id': !exists(json, 'id') ? undefined : json['id'], 'start_time': !exists(json, 'start_time') ? undefined : json['start_time'], 'status': !exists(json, 'status') ? undefined : json['status'], 'message_received_time': !exists(json, 'message_received_time') ? undefined : json['message_received_time'], 'io': !exists(json, 'io') ? undefined : json['io'], 'runtime': !exists(json, 'runtime') ? undefined : json['runtime'], 'worker_id': !exists(json, 'worker_id') ? undefined : json['worker_id'], }; } export function ActorExecutionToJSON(value?: ActorExecution | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'actor_id': value.actor_id, 'api_server': value.api_server, 'owner': value.owner, 'cpu': value.cpu, 'id': value.id, 'start_time': value.start_time, 'status': value.status, 'message_received_time': value.message_received_time, 'io': value.io, 'runtime': value.runtime, 'worker_id': value.worker_id, }; }