/**
 * 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 { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from '../models/IoArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';

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 readonly discriminator: string | undefined = undefined;

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

    static getAttributeTypeMap() {
        return IoArgoprojEventsV1alpha1GitlabEventSource.attributeTypeMap;
    }

    public constructor() {
    }
}

