// @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 { IoArgoprojWorkflowV1alpha1Arguments } from './ioArgoprojWorkflowV1alpha1Arguments';
import { IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef } from './ioArgoprojWorkflowV1alpha1ArtifactRepositoryRef';
import { IoArgoprojWorkflowV1alpha1ExecutorConfig } from './ioArgoprojWorkflowV1alpha1ExecutorConfig';
import { IoArgoprojWorkflowV1alpha1LifecycleHook } from './ioArgoprojWorkflowV1alpha1LifecycleHook';
import { IoArgoprojWorkflowV1alpha1Metadata } from './ioArgoprojWorkflowV1alpha1Metadata';
import { IoArgoprojWorkflowV1alpha1Metrics } from './ioArgoprojWorkflowV1alpha1Metrics';
import { IoArgoprojWorkflowV1alpha1PodGC } from './ioArgoprojWorkflowV1alpha1PodGC';
import { IoArgoprojWorkflowV1alpha1RetryStrategy } from './ioArgoprojWorkflowV1alpha1RetryStrategy';
import { IoArgoprojWorkflowV1alpha1Synchronization } from './ioArgoprojWorkflowV1alpha1Synchronization';
import { IoArgoprojWorkflowV1alpha1TTLStrategy } from './ioArgoprojWorkflowV1alpha1TTLStrategy';
import { IoArgoprojWorkflowV1alpha1Template } from './ioArgoprojWorkflowV1alpha1Template';
import { IoArgoprojWorkflowV1alpha1VolumeClaimGC } from './ioArgoprojWorkflowV1alpha1VolumeClaimGC';
import { IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGC } from './ioArgoprojWorkflowV1alpha1WorkflowLevelArtifactGC';
import { IoArgoprojWorkflowV1alpha1WorkflowMetadata } from './ioArgoprojWorkflowV1alpha1WorkflowMetadata';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateRef } from './ioArgoprojWorkflowV1alpha1WorkflowTemplateRef';
import { IoK8sApiCoreV1Affinity } from './ioK8sApiCoreV1Affinity';
import { IoK8sApiCoreV1HostAlias } from './ioK8sApiCoreV1HostAlias';
import { IoK8sApiCoreV1LocalObjectReference } from './ioK8sApiCoreV1LocalObjectReference';
import { IoK8sApiCoreV1PersistentVolumeClaim } from './ioK8sApiCoreV1PersistentVolumeClaim';
import { IoK8sApiCoreV1PodDNSConfig } from './ioK8sApiCoreV1PodDNSConfig';
import { IoK8sApiCoreV1PodSecurityContext } from './ioK8sApiCoreV1PodSecurityContext';
import { IoK8sApiCoreV1Toleration } from './ioK8sApiCoreV1Toleration';
import { IoK8sApiCoreV1Volume } from './ioK8sApiCoreV1Volume';
import { IoK8sApiPolicyV1PodDisruptionBudgetSpec } from './ioK8sApiPolicyV1PodDisruptionBudgetSpec';

/**
* WorkflowSpec is the specification of a Workflow.
*/
export class IoArgoprojWorkflowV1alpha1WorkflowSpec {
    /**
    * Optional duration in seconds relative to the workflow start time which the workflow is allowed to run before the controller terminates the io.argoproj.workflow.v1alpha1. A value of zero is used to terminate a Running workflow
    */
    'activeDeadlineSeconds'?: number;
    'affinity'?: IoK8sApiCoreV1Affinity;
    /**
    * ArchiveLogs indicates if the container logs should be archived
    */
    'archiveLogs'?: boolean;
    'arguments'?: IoArgoprojWorkflowV1alpha1Arguments;
    'artifactGC'?: IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGC;
    'artifactRepositoryRef'?: IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef;
    /**
    * 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;
    'dnsConfig'?: IoK8sApiCoreV1PodDNSConfig;
    /**
    * Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are \'ClusterFirstWithHostNet\', \'ClusterFirst\', \'Default\' or \'None\'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to \'ClusterFirstWithHostNet\'.
    */
    'dnsPolicy'?: string;
    /**
    * Entrypoint is a template reference to the starting point of the io.argoproj.workflow.v1alpha1.
    */
    'entrypoint'?: string;
    'executor'?: IoArgoprojWorkflowV1alpha1ExecutorConfig;
    /**
    * Hooks holds the lifecycle hook which is invoked at lifecycle of step, irrespective of the success, failure, or error status of the primary step
    */
    'hooks'?: { [key: string]: IoArgoprojWorkflowV1alpha1LifecycleHook; };
    'hostAliases'?: Array<IoK8sApiCoreV1HostAlias>;
    /**
    * Host networking requested for this workflow pod. Default to false.
    */
    'hostNetwork'?: boolean;
    /**
    * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
    */
    'imagePullSecrets'?: Array<IoK8sApiCoreV1LocalObjectReference>;
    'metrics'?: IoArgoprojWorkflowV1alpha1Metrics;
    /**
    * NodeSelector is a selector which will result in all pods of the workflow to be scheduled on the selected node(s). This is able to be overridden by a nodeSelector specified in the template.
    */
    'nodeSelector'?: { [key: string]: string; };
    /**
    * OnExit is a template reference which is invoked at the end of the workflow, irrespective of the success, failure, or error of the primary io.argoproj.workflow.v1alpha1.
    */
    'onExit'?: string;
    /**
    * Parallelism limits the max total parallel pods that can execute at the same time in a workflow
    */
    'parallelism'?: number;
    'podDisruptionBudget'?: IoK8sApiPolicyV1PodDisruptionBudgetSpec;
    'podGC'?: IoArgoprojWorkflowV1alpha1PodGC;
    'podMetadata'?: IoArgoprojWorkflowV1alpha1Metadata;
    /**
    * Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.
    */
    'podPriority'?: number;
    /**
    * PriorityClassName to apply to workflow pods.
    */
    'podPriorityClassName'?: string;
    /**
    * 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 is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first.
    */
    'priority'?: number;
    'retryStrategy'?: IoArgoprojWorkflowV1alpha1RetryStrategy;
    /**
    * Set scheduler name for all pods. Will be overridden if container/script template\'s scheduler name is set. Default scheduler will be used if neither specified.
    */
    'schedulerName'?: string;
    'securityContext'?: IoK8sApiCoreV1PodSecurityContext;
    /**
    * ServiceAccountName is the name of the ServiceAccount to run all pods of the workflow as.
    */
    'serviceAccountName'?: string;
    /**
    * Shutdown will shutdown the workflow according to its ShutdownStrategy
    */
    'shutdown'?: string;
    /**
    * Suspend will suspend the workflow and prevent execution of any future steps in the workflow
    */
    'suspend'?: boolean;
    'synchronization'?: IoArgoprojWorkflowV1alpha1Synchronization;
    'templateDefaults'?: IoArgoprojWorkflowV1alpha1Template;
    /**
    * Templates is a list of workflow templates used in a workflow
    */
    'templates'?: Array<IoArgoprojWorkflowV1alpha1Template>;
    /**
    * Tolerations to apply to workflow pods.
    */
    'tolerations'?: Array<IoK8sApiCoreV1Toleration>;
    'ttlStrategy'?: IoArgoprojWorkflowV1alpha1TTLStrategy;
    'volumeClaimGC'?: IoArgoprojWorkflowV1alpha1VolumeClaimGC;
    /**
    * VolumeClaimTemplates is a list of claims that containers are allowed to reference. The Workflow controller will create the claims at the beginning of the workflow and delete the claims upon completion of the workflow
    */
    'volumeClaimTemplates'?: Array<IoK8sApiCoreV1PersistentVolumeClaim>;
    /**
    * Volumes is a list of volumes that can be mounted by containers in a io.argoproj.workflow.v1alpha1.
    */
    'volumes'?: Array<IoK8sApiCoreV1Volume>;
    'workflowMetadata'?: IoArgoprojWorkflowV1alpha1WorkflowMetadata;
    'workflowTemplateRef'?: IoArgoprojWorkflowV1alpha1WorkflowTemplateRef;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "activeDeadlineSeconds",
            "baseName": "activeDeadlineSeconds",
            "type": "number"
        },
        {
            "name": "affinity",
            "baseName": "affinity",
            "type": "IoK8sApiCoreV1Affinity"
        },
        {
            "name": "archiveLogs",
            "baseName": "archiveLogs",
            "type": "boolean"
        },
        {
            "name": "arguments",
            "baseName": "arguments",
            "type": "IoArgoprojWorkflowV1alpha1Arguments"
        },
        {
            "name": "artifactGC",
            "baseName": "artifactGC",
            "type": "IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGC"
        },
        {
            "name": "artifactRepositoryRef",
            "baseName": "artifactRepositoryRef",
            "type": "IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef"
        },
        {
            "name": "automountServiceAccountToken",
            "baseName": "automountServiceAccountToken",
            "type": "boolean"
        },
        {
            "name": "dnsConfig",
            "baseName": "dnsConfig",
            "type": "IoK8sApiCoreV1PodDNSConfig"
        },
        {
            "name": "dnsPolicy",
            "baseName": "dnsPolicy",
            "type": "string"
        },
        {
            "name": "entrypoint",
            "baseName": "entrypoint",
            "type": "string"
        },
        {
            "name": "executor",
            "baseName": "executor",
            "type": "IoArgoprojWorkflowV1alpha1ExecutorConfig"
        },
        {
            "name": "hooks",
            "baseName": "hooks",
            "type": "{ [key: string]: IoArgoprojWorkflowV1alpha1LifecycleHook; }"
        },
        {
            "name": "hostAliases",
            "baseName": "hostAliases",
            "type": "Array<IoK8sApiCoreV1HostAlias>"
        },
        {
            "name": "hostNetwork",
            "baseName": "hostNetwork",
            "type": "boolean"
        },
        {
            "name": "imagePullSecrets",
            "baseName": "imagePullSecrets",
            "type": "Array<IoK8sApiCoreV1LocalObjectReference>"
        },
        {
            "name": "metrics",
            "baseName": "metrics",
            "type": "IoArgoprojWorkflowV1alpha1Metrics"
        },
        {
            "name": "nodeSelector",
            "baseName": "nodeSelector",
            "type": "{ [key: string]: string; }"
        },
        {
            "name": "onExit",
            "baseName": "onExit",
            "type": "string"
        },
        {
            "name": "parallelism",
            "baseName": "parallelism",
            "type": "number"
        },
        {
            "name": "podDisruptionBudget",
            "baseName": "podDisruptionBudget",
            "type": "IoK8sApiPolicyV1PodDisruptionBudgetSpec"
        },
        {
            "name": "podGC",
            "baseName": "podGC",
            "type": "IoArgoprojWorkflowV1alpha1PodGC"
        },
        {
            "name": "podMetadata",
            "baseName": "podMetadata",
            "type": "IoArgoprojWorkflowV1alpha1Metadata"
        },
        {
            "name": "podPriority",
            "baseName": "podPriority",
            "type": "number"
        },
        {
            "name": "podPriorityClassName",
            "baseName": "podPriorityClassName",
            "type": "string"
        },
        {
            "name": "podSpecPatch",
            "baseName": "podSpecPatch",
            "type": "string"
        },
        {
            "name": "priority",
            "baseName": "priority",
            "type": "number"
        },
        {
            "name": "retryStrategy",
            "baseName": "retryStrategy",
            "type": "IoArgoprojWorkflowV1alpha1RetryStrategy"
        },
        {
            "name": "schedulerName",
            "baseName": "schedulerName",
            "type": "string"
        },
        {
            "name": "securityContext",
            "baseName": "securityContext",
            "type": "IoK8sApiCoreV1PodSecurityContext"
        },
        {
            "name": "serviceAccountName",
            "baseName": "serviceAccountName",
            "type": "string"
        },
        {
            "name": "shutdown",
            "baseName": "shutdown",
            "type": "string"
        },
        {
            "name": "suspend",
            "baseName": "suspend",
            "type": "boolean"
        },
        {
            "name": "synchronization",
            "baseName": "synchronization",
            "type": "IoArgoprojWorkflowV1alpha1Synchronization"
        },
        {
            "name": "templateDefaults",
            "baseName": "templateDefaults",
            "type": "IoArgoprojWorkflowV1alpha1Template"
        },
        {
            "name": "templates",
            "baseName": "templates",
            "type": "Array<IoArgoprojWorkflowV1alpha1Template>"
        },
        {
            "name": "tolerations",
            "baseName": "tolerations",
            "type": "Array<IoK8sApiCoreV1Toleration>"
        },
        {
            "name": "ttlStrategy",
            "baseName": "ttlStrategy",
            "type": "IoArgoprojWorkflowV1alpha1TTLStrategy"
        },
        {
            "name": "volumeClaimGC",
            "baseName": "volumeClaimGC",
            "type": "IoArgoprojWorkflowV1alpha1VolumeClaimGC"
        },
        {
            "name": "volumeClaimTemplates",
            "baseName": "volumeClaimTemplates",
            "type": "Array<IoK8sApiCoreV1PersistentVolumeClaim>"
        },
        {
            "name": "volumes",
            "baseName": "volumes",
            "type": "Array<IoK8sApiCoreV1Volume>"
        },
        {
            "name": "workflowMetadata",
            "baseName": "workflowMetadata",
            "type": "IoArgoprojWorkflowV1alpha1WorkflowMetadata"
        },
        {
            "name": "workflowTemplateRef",
            "baseName": "workflowTemplateRef",
            "type": "IoArgoprojWorkflowV1alpha1WorkflowTemplateRef"
        }    ];

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

