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

export class IoArgoprojEventsV1alpha1BitbucketEventSource {
    'auth'?: IoArgoprojEventsV1alpha1BitbucketAuth;
    'deleteHookOnFinish'?: boolean;
    /**
    * Events this webhook is subscribed to.
    */
    'events'?: Array<string>;
    'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
    'metadata'?: { [key: string]: string; };
    'owner'?: string;
    'projectKey'?: string;
    'repositories'?: Array<IoArgoprojEventsV1alpha1BitbucketRepository>;
    'repositorySlug'?: string;
    'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;

    static readonly discriminator: string | undefined = undefined;

    static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
        {
            "name": "auth",
            "baseName": "auth",
            "type": "IoArgoprojEventsV1alpha1BitbucketAuth",
            "format": ""
        },
        {
            "name": "deleteHookOnFinish",
            "baseName": "deleteHookOnFinish",
            "type": "boolean",
            "format": ""
        },
        {
            "name": "events",
            "baseName": "events",
            "type": "Array<string>",
            "format": ""
        },
        {
            "name": "filter",
            "baseName": "filter",
            "type": "IoArgoprojEventsV1alpha1EventSourceFilter",
            "format": ""
        },
        {
            "name": "metadata",
            "baseName": "metadata",
            "type": "{ [key: string]: string; }",
            "format": ""
        },
        {
            "name": "owner",
            "baseName": "owner",
            "type": "string",
            "format": ""
        },
        {
            "name": "projectKey",
            "baseName": "projectKey",
            "type": "string",
            "format": ""
        },
        {
            "name": "repositories",
            "baseName": "repositories",
            "type": "Array<IoArgoprojEventsV1alpha1BitbucketRepository>",
            "format": ""
        },
        {
            "name": "repositorySlug",
            "baseName": "repositorySlug",
            "type": "string",
            "format": ""
        },
        {
            "name": "webhook",
            "baseName": "webhook",
            "type": "IoArgoprojEventsV1alpha1WebhookContext",
            "format": ""
        }    ];

    static getAttributeTypeMap() {
        return IoArgoprojEventsV1alpha1BitbucketEventSource.attributeTypeMap;
    }

    public constructor() {
    }
}

