// @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 { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from './ioArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';

export class IoArgoprojEventsV1alpha1GitlabEventSource {
    'accessToken'?: IoK8sApiCoreV1SecretKeySelector;
    'deleteHookOnFinish'?: boolean;
    'enableSSLVerification'?: boolean;
    /**
    * Events are gitlab event to listen to. Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794.
    */
    'events'?: Array<string>;
    'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
    'gitlabBaseURL'?: string;
    'metadata'?: { [key: string]: string; };
    'projectID'?: string;
    'projects'?: Array<string>;
    'secretToken'?: IoK8sApiCoreV1SecretKeySelector;
    'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "accessToken",
            "baseName": "accessToken",
            "type": "IoK8sApiCoreV1SecretKeySelector"
        },
        {
            "name": "deleteHookOnFinish",
            "baseName": "deleteHookOnFinish",
            "type": "boolean"
        },
        {
            "name": "enableSSLVerification",
            "baseName": "enableSSLVerification",
            "type": "boolean"
        },
        {
            "name": "events",
            "baseName": "events",
            "type": "Array<string>"
        },
        {
            "name": "filter",
            "baseName": "filter",
            "type": "IoArgoprojEventsV1alpha1EventSourceFilter"
        },
        {
            "name": "gitlabBaseURL",
            "baseName": "gitlabBaseURL",
            "type": "string"
        },
        {
            "name": "metadata",
            "baseName": "metadata",
            "type": "{ [key: string]: string; }"
        },
        {
            "name": "projectID",
            "baseName": "projectID",
            "type": "string"
        },
        {
            "name": "projects",
            "baseName": "projects",
            "type": "Array<string>"
        },
        {
            "name": "secretToken",
            "baseName": "secretToken",
            "type": "IoK8sApiCoreV1SecretKeySelector"
        },
        {
            "name": "webhook",
            "baseName": "webhook",
            "type": "IoArgoprojEventsV1alpha1WebhookContext"
        }    ];

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

