/**
 * 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 { IoArgoprojEventsV1alpha1EventDependency } from '../models/IoArgoprojEventsV1alpha1EventDependency';
import { IoArgoprojEventsV1alpha1Template } from '../models/IoArgoprojEventsV1alpha1Template';
import { IoArgoprojEventsV1alpha1Trigger } from '../models/IoArgoprojEventsV1alpha1Trigger';
import { HttpFile } from '../http/http';

export class IoArgoprojEventsV1alpha1SensorSpec {
    /**
    * Dependencies is a list of the events that this sensor is dependent on.
    */
    'dependencies'?: Array<IoArgoprojEventsV1alpha1EventDependency>;
    /**
    * ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails. Once sensor state is set to `error`, no further triggers will be processed.
    */
    'errorOnFailedRound'?: boolean;
    'eventBusName'?: string;
    'replicas'?: number;
    'template'?: IoArgoprojEventsV1alpha1Template;
    /**
    * Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.
    */
    'triggers'?: Array<IoArgoprojEventsV1alpha1Trigger>;

    static readonly discriminator: string | undefined = undefined;

    static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
        {
            "name": "dependencies",
            "baseName": "dependencies",
            "type": "Array<IoArgoprojEventsV1alpha1EventDependency>",
            "format": ""
        },
        {
            "name": "errorOnFailedRound",
            "baseName": "errorOnFailedRound",
            "type": "boolean",
            "format": ""
        },
        {
            "name": "eventBusName",
            "baseName": "eventBusName",
            "type": "string",
            "format": ""
        },
        {
            "name": "replicas",
            "baseName": "replicas",
            "type": "number",
            "format": ""
        },
        {
            "name": "template",
            "baseName": "template",
            "type": "IoArgoprojEventsV1alpha1Template",
            "format": ""
        },
        {
            "name": "triggers",
            "baseName": "triggers",
            "type": "Array<IoArgoprojEventsV1alpha1Trigger>",
            "format": ""
        }    ];

    static getAttributeTypeMap() {
        return IoArgoprojEventsV1alpha1SensorSpec.attributeTypeMap;
    }

    public constructor() {
    }
}

