/**
 * 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/
 *
 * OpenAPI spec version: 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 { IoK8sApiCoreV1NodeAffinity } from '../models/IoK8sApiCoreV1NodeAffinity';
import { IoK8sApiCoreV1PodAffinity } from '../models/IoK8sApiCoreV1PodAffinity';
import { IoK8sApiCoreV1PodAntiAffinity } from '../models/IoK8sApiCoreV1PodAntiAffinity';
import { HttpFile } from '../http/http';

/**
* Affinity is a group of affinity scheduling rules.
*/
export class IoK8sApiCoreV1Affinity {
    'nodeAffinity'?: IoK8sApiCoreV1NodeAffinity;
    'podAffinity'?: IoK8sApiCoreV1PodAffinity;
    'podAntiAffinity'?: IoK8sApiCoreV1PodAntiAffinity;

    static readonly discriminator: string | undefined = undefined;

    static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
        {
            "name": "nodeAffinity",
            "baseName": "nodeAffinity",
            "type": "IoK8sApiCoreV1NodeAffinity",
            "format": ""
        },
        {
            "name": "podAffinity",
            "baseName": "podAffinity",
            "type": "IoK8sApiCoreV1PodAffinity",
            "format": ""
        },
        {
            "name": "podAntiAffinity",
            "baseName": "podAntiAffinity",
            "type": "IoK8sApiCoreV1PodAntiAffinity",
            "format": ""
        }    ];

    static getAttributeTypeMap() {
        return IoK8sApiCoreV1Affinity.attributeTypeMap;
    }

    public constructor() {
    }
}

