/* 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 { EnumInvocationMode, EnumInvocationModeFromJSON, EnumInvocationModeFromJSONTyped, EnumInvocationModeToJSON, EnumRetryPolicy, EnumRetryPolicyFromJSON, EnumRetryPolicyFromJSONTyped, EnumRetryPolicyToJSON, EnumTaskFlavor, EnumTaskFlavorFromJSON, EnumTaskFlavorFromJSONTyped, EnumTaskFlavorToJSON, ExecutionProfile, ExecutionProfileFromJSON, ExecutionProfileFromJSONTyped, ExecutionProfileToJSON, TaskExecutionProfileAllOf, TaskExecutionProfileAllOfFromJSON, TaskExecutionProfileAllOfFromJSONTyped, TaskExecutionProfileAllOfToJSON, } from './'; /** * * @export * @interface TaskExecutionProfile */ export interface TaskExecutionProfile { /** * * @type {EnumInvocationMode} * @memberof TaskExecutionProfile */ invocation_mode?: EnumInvocationMode; /** * * @type {number} * @memberof TaskExecutionProfile */ max_retries?: number; /** * * @type {number} * @memberof TaskExecutionProfile */ max_exec_time?: number; /** * * @type {EnumRetryPolicy} * @memberof TaskExecutionProfile */ retry_policy?: EnumRetryPolicy; /** * * @type {EnumTaskFlavor} * @memberof TaskExecutionProfile */ flavor?: EnumTaskFlavor; } export function TaskExecutionProfileFromJSON(json: any): TaskExecutionProfile { return TaskExecutionProfileFromJSONTyped(json, false); } export function TaskExecutionProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskExecutionProfile { if ((json === undefined) || (json === null)) { return json; } return { 'invocation_mode': !exists(json, 'invocation_mode') ? undefined : EnumInvocationModeFromJSON(json['invocation_mode']), 'max_retries': !exists(json, 'max_retries') ? undefined : json['max_retries'], 'max_exec_time': !exists(json, 'max_exec_time') ? undefined : json['max_exec_time'], 'retry_policy': !exists(json, 'retry_policy') ? undefined : EnumRetryPolicyFromJSON(json['retry_policy']), 'flavor': !exists(json, 'flavor') ? undefined : EnumTaskFlavorFromJSON(json['flavor']), }; } export function TaskExecutionProfileToJSON(value?: TaskExecutionProfile | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'invocation_mode': EnumInvocationModeToJSON(value.invocation_mode), 'max_retries': value.max_retries, 'max_exec_time': value.max_exec_time, 'retry_policy': EnumRetryPolicyToJSON(value.retry_policy), 'flavor': EnumTaskFlavorToJSON(value.flavor), }; }