/**
 * 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 { IoArgoprojEventsV1alpha1BasicAuth } from '../models/IoArgoprojEventsV1alpha1BasicAuth';
import { IoArgoprojEventsV1alpha1SecureHeader } from '../models/IoArgoprojEventsV1alpha1SecureHeader';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { HttpFile } from '../http/http';

export class IoArgoprojEventsV1alpha1HTTPTrigger {
    'basicAuth'?: IoArgoprojEventsV1alpha1BasicAuth;
    'headers'?: { [key: string]: string; };
    'method'?: string;
    /**
    * Parameters is the list of key-value extracted from event\'s payload that are applied to the HTTP trigger resource.
    */
    'parameters'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
    'payload'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
    'secureHeaders'?: Array<IoArgoprojEventsV1alpha1SecureHeader>;
    'timeout'?: string;
    'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
    /**
    * URL refers to the URL to send HTTP request to.
    */
    'url'?: string;

    static readonly discriminator: string | undefined = undefined;

    static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
        {
            "name": "basicAuth",
            "baseName": "basicAuth",
            "type": "IoArgoprojEventsV1alpha1BasicAuth",
            "format": ""
        },
        {
            "name": "headers",
            "baseName": "headers",
            "type": "{ [key: string]: string; }",
            "format": ""
        },
        {
            "name": "method",
            "baseName": "method",
            "type": "string",
            "format": ""
        },
        {
            "name": "parameters",
            "baseName": "parameters",
            "type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
            "format": ""
        },
        {
            "name": "payload",
            "baseName": "payload",
            "type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
            "format": ""
        },
        {
            "name": "secureHeaders",
            "baseName": "secureHeaders",
            "type": "Array<IoArgoprojEventsV1alpha1SecureHeader>",
            "format": ""
        },
        {
            "name": "timeout",
            "baseName": "timeout",
            "type": "string",
            "format": ""
        },
        {
            "name": "tls",
            "baseName": "tls",
            "type": "IoArgoprojEventsV1alpha1TLSConfig",
            "format": ""
        },
        {
            "name": "url",
            "baseName": "url",
            "type": "string",
            "format": ""
        }    ];

    static getAttributeTypeMap() {
        return IoArgoprojEventsV1alpha1HTTPTrigger.attributeTypeMap;
    }

    public constructor() {
    }
}

