// @ts-nocheck
/**
 * Argo Workflows API
 * Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
 *
 * The version of the OpenAPI document: VERSION
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { RequestFile } from './models';
import { IoArgoprojWorkflowV1alpha1ArtifactLocation } from './ioArgoprojWorkflowV1alpha1ArtifactLocation';
import { IoArgoprojWorkflowV1alpha1ContainerSetTemplate } from './ioArgoprojWorkflowV1alpha1ContainerSetTemplate';
import { IoArgoprojWorkflowV1alpha1DAGTemplate } from './ioArgoprojWorkflowV1alpha1DAGTemplate';
import { IoArgoprojWorkflowV1alpha1Data } from './ioArgoprojWorkflowV1alpha1Data';
import { IoArgoprojWorkflowV1alpha1ExecutorConfig } from './ioArgoprojWorkflowV1alpha1ExecutorConfig';
import { IoArgoprojWorkflowV1alpha1HTTP } from './ioArgoprojWorkflowV1alpha1HTTP';
import { IoArgoprojWorkflowV1alpha1Inputs } from './ioArgoprojWorkflowV1alpha1Inputs';
import { IoArgoprojWorkflowV1alpha1Memoize } from './ioArgoprojWorkflowV1alpha1Memoize';
import { IoArgoprojWorkflowV1alpha1Metadata } from './ioArgoprojWorkflowV1alpha1Metadata';
import { IoArgoprojWorkflowV1alpha1Metrics } from './ioArgoprojWorkflowV1alpha1Metrics';
import { IoArgoprojWorkflowV1alpha1Outputs } from './ioArgoprojWorkflowV1alpha1Outputs';
import { IoArgoprojWorkflowV1alpha1ResourceTemplate } from './ioArgoprojWorkflowV1alpha1ResourceTemplate';
import { IoArgoprojWorkflowV1alpha1RetryStrategy } from './ioArgoprojWorkflowV1alpha1RetryStrategy';
import { IoArgoprojWorkflowV1alpha1ScriptTemplate } from './ioArgoprojWorkflowV1alpha1ScriptTemplate';
import { IoArgoprojWorkflowV1alpha1SuspendTemplate } from './ioArgoprojWorkflowV1alpha1SuspendTemplate';
import { IoArgoprojWorkflowV1alpha1Synchronization } from './ioArgoprojWorkflowV1alpha1Synchronization';
import { IoArgoprojWorkflowV1alpha1UserContainer } from './ioArgoprojWorkflowV1alpha1UserContainer';
import { IoArgoprojWorkflowV1alpha1WorkflowStep } from './ioArgoprojWorkflowV1alpha1WorkflowStep';
import { IoK8sApiCoreV1Affinity } from './ioK8sApiCoreV1Affinity';
import { IoK8sApiCoreV1Container } from './ioK8sApiCoreV1Container';
import { IoK8sApiCoreV1HostAlias } from './ioK8sApiCoreV1HostAlias';
import { IoK8sApiCoreV1PodSecurityContext } from './ioK8sApiCoreV1PodSecurityContext';
import { IoK8sApiCoreV1Toleration } from './ioK8sApiCoreV1Toleration';
import { IoK8sApiCoreV1Volume } from './ioK8sApiCoreV1Volume';

/**
* Template is a reusable and composable unit of execution in a workflow
*/
export class IoArgoprojWorkflowV1alpha1Template {
    'activeDeadlineSeconds'?: string;
    'affinity'?: IoK8sApiCoreV1Affinity;
    'archiveLocation'?: IoArgoprojWorkflowV1alpha1ArtifactLocation;
    /**
    * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. ServiceAccountName of ExecutorConfig must be specified if this value is false.
    */
    'automountServiceAccountToken'?: boolean;
    'container'?: IoK8sApiCoreV1Container;
    'containerSet'?: IoArgoprojWorkflowV1alpha1ContainerSetTemplate;
    /**
    * Daemon will allow a workflow to proceed to the next step so long as the container reaches readiness
    */
    'daemon'?: boolean;
    'dag'?: IoArgoprojWorkflowV1alpha1DAGTemplate;
    'data'?: IoArgoprojWorkflowV1alpha1Data;
    'executor'?: IoArgoprojWorkflowV1alpha1ExecutorConfig;
    /**
    * FailFast, if specified, will fail this template if any of its child pods has failed. This is useful for when this template is expanded with `withItems`, etc.
    */
    'failFast'?: boolean;
    /**
    * HostAliases is an optional list of hosts and IPs that will be injected into the pod spec
    */
    'hostAliases'?: Array<IoK8sApiCoreV1HostAlias>;
    'http'?: IoArgoprojWorkflowV1alpha1HTTP;
    /**
    * InitContainers is a list of containers which run before the main container.
    */
    'initContainers'?: Array<IoArgoprojWorkflowV1alpha1UserContainer>;
    'inputs'?: IoArgoprojWorkflowV1alpha1Inputs;
    'memoize'?: IoArgoprojWorkflowV1alpha1Memoize;
    'metadata'?: IoArgoprojWorkflowV1alpha1Metadata;
    'metrics'?: IoArgoprojWorkflowV1alpha1Metrics;
    /**
    * Name is the name of the template
    */
    'name'?: string;
    /**
    * NodeSelector is a selector to schedule this step of the workflow to be run on the selected node(s). Overrides the selector set at the workflow level.
    */
    'nodeSelector'?: { [key: string]: string; };
    'outputs'?: IoArgoprojWorkflowV1alpha1Outputs;
    /**
    * Parallelism limits the max total parallel pods that can execute at the same time within the boundaries of this template invocation. If additional steps/dag templates are invoked, the pods created by those templates will not be counted towards this total.
    */
    'parallelism'?: number;
    /**
    * Plugin is an Object with exactly one key
    */
    'plugin'?: object;
    /**
    * PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits).
    */
    'podSpecPatch'?: string;
    /**
    * Priority to apply to workflow pods.
    */
    'priority'?: number;
    /**
    * PriorityClassName to apply to workflow pods.
    */
    'priorityClassName'?: string;
    'resource'?: IoArgoprojWorkflowV1alpha1ResourceTemplate;
    'retryStrategy'?: IoArgoprojWorkflowV1alpha1RetryStrategy;
    /**
    * If specified, the pod will be dispatched by specified scheduler. Or it will be dispatched by workflow scope scheduler if specified. If neither specified, the pod will be dispatched by default scheduler.
    */
    'schedulerName'?: string;
    'script'?: IoArgoprojWorkflowV1alpha1ScriptTemplate;
    'securityContext'?: IoK8sApiCoreV1PodSecurityContext;
    /**
    * ServiceAccountName to apply to workflow pods
    */
    'serviceAccountName'?: string;
    /**
    * Sidecars is a list of containers which run alongside the main container Sidecars are automatically killed when the main container completes
    */
    'sidecars'?: Array<IoArgoprojWorkflowV1alpha1UserContainer>;
    /**
    * Steps define a series of sequential/parallel workflow steps
    */
    'steps'?: Array<Array<IoArgoprojWorkflowV1alpha1WorkflowStep>>;
    'suspend'?: IoArgoprojWorkflowV1alpha1SuspendTemplate;
    'synchronization'?: IoArgoprojWorkflowV1alpha1Synchronization;
    /**
    * Timeout allows to set the total node execution timeout duration counting from the node\'s start time. This duration also includes time in which the node spends in Pending state. This duration may not be applied to Step or DAG templates.
    */
    'timeout'?: string;
    /**
    * Tolerations to apply to workflow pods.
    */
    'tolerations'?: Array<IoK8sApiCoreV1Toleration>;
    /**
    * Volumes is a list of volumes that can be mounted by containers in a template.
    */
    'volumes'?: Array<IoK8sApiCoreV1Volume>;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "activeDeadlineSeconds",
            "baseName": "activeDeadlineSeconds",
            "type": "string"
        },
        {
            "name": "affinity",
            "baseName": "affinity",
            "type": "IoK8sApiCoreV1Affinity"
        },
        {
            "name": "archiveLocation",
            "baseName": "archiveLocation",
            "type": "IoArgoprojWorkflowV1alpha1ArtifactLocation"
        },
        {
            "name": "automountServiceAccountToken",
            "baseName": "automountServiceAccountToken",
            "type": "boolean"
        },
        {
            "name": "container",
            "baseName": "container",
            "type": "IoK8sApiCoreV1Container"
        },
        {
            "name": "containerSet",
            "baseName": "containerSet",
            "type": "IoArgoprojWorkflowV1alpha1ContainerSetTemplate"
        },
        {
            "name": "daemon",
            "baseName": "daemon",
            "type": "boolean"
        },
        {
            "name": "dag",
            "baseName": "dag",
            "type": "IoArgoprojWorkflowV1alpha1DAGTemplate"
        },
        {
            "name": "data",
            "baseName": "data",
            "type": "IoArgoprojWorkflowV1alpha1Data"
        },
        {
            "name": "executor",
            "baseName": "executor",
            "type": "IoArgoprojWorkflowV1alpha1ExecutorConfig"
        },
        {
            "name": "failFast",
            "baseName": "failFast",
            "type": "boolean"
        },
        {
            "name": "hostAliases",
            "baseName": "hostAliases",
            "type": "Array<IoK8sApiCoreV1HostAlias>"
        },
        {
            "name": "http",
            "baseName": "http",
            "type": "IoArgoprojWorkflowV1alpha1HTTP"
        },
        {
            "name": "initContainers",
            "baseName": "initContainers",
            "type": "Array<IoArgoprojWorkflowV1alpha1UserContainer>"
        },
        {
            "name": "inputs",
            "baseName": "inputs",
            "type": "IoArgoprojWorkflowV1alpha1Inputs"
        },
        {
            "name": "memoize",
            "baseName": "memoize",
            "type": "IoArgoprojWorkflowV1alpha1Memoize"
        },
        {
            "name": "metadata",
            "baseName": "metadata",
            "type": "IoArgoprojWorkflowV1alpha1Metadata"
        },
        {
            "name": "metrics",
            "baseName": "metrics",
            "type": "IoArgoprojWorkflowV1alpha1Metrics"
        },
        {
            "name": "name",
            "baseName": "name",
            "type": "string"
        },
        {
            "name": "nodeSelector",
            "baseName": "nodeSelector",
            "type": "{ [key: string]: string; }"
        },
        {
            "name": "outputs",
            "baseName": "outputs",
            "type": "IoArgoprojWorkflowV1alpha1Outputs"
        },
        {
            "name": "parallelism",
            "baseName": "parallelism",
            "type": "number"
        },
        {
            "name": "plugin",
            "baseName": "plugin",
            "type": "object"
        },
        {
            "name": "podSpecPatch",
            "baseName": "podSpecPatch",
            "type": "string"
        },
        {
            "name": "priority",
            "baseName": "priority",
            "type": "number"
        },
        {
            "name": "priorityClassName",
            "baseName": "priorityClassName",
            "type": "string"
        },
        {
            "name": "resource",
            "baseName": "resource",
            "type": "IoArgoprojWorkflowV1alpha1ResourceTemplate"
        },
        {
            "name": "retryStrategy",
            "baseName": "retryStrategy",
            "type": "IoArgoprojWorkflowV1alpha1RetryStrategy"
        },
        {
            "name": "schedulerName",
            "baseName": "schedulerName",
            "type": "string"
        },
        {
            "name": "script",
            "baseName": "script",
            "type": "IoArgoprojWorkflowV1alpha1ScriptTemplate"
        },
        {
            "name": "securityContext",
            "baseName": "securityContext",
            "type": "IoK8sApiCoreV1PodSecurityContext"
        },
        {
            "name": "serviceAccountName",
            "baseName": "serviceAccountName",
            "type": "string"
        },
        {
            "name": "sidecars",
            "baseName": "sidecars",
            "type": "Array<IoArgoprojWorkflowV1alpha1UserContainer>"
        },
        {
            "name": "steps",
            "baseName": "steps",
            "type": "Array<Array<IoArgoprojWorkflowV1alpha1WorkflowStep>>"
        },
        {
            "name": "suspend",
            "baseName": "suspend",
            "type": "IoArgoprojWorkflowV1alpha1SuspendTemplate"
        },
        {
            "name": "synchronization",
            "baseName": "synchronization",
            "type": "IoArgoprojWorkflowV1alpha1Synchronization"
        },
        {
            "name": "timeout",
            "baseName": "timeout",
            "type": "string"
        },
        {
            "name": "tolerations",
            "baseName": "tolerations",
            "type": "Array<IoK8sApiCoreV1Toleration>"
        },
        {
            "name": "volumes",
            "baseName": "volumes",
            "type": "Array<IoK8sApiCoreV1Volume>"
        }    ];

    static getAttributeTypeMap() {
        return IoArgoprojWorkflowV1alpha1Template.attributeTypeMap;
    }
}

