// @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 { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1KafkaConsumerGroup } from './ioArgoprojEventsV1alpha1KafkaConsumerGroup';
import { IoArgoprojEventsV1alpha1SASLConfig } from './ioArgoprojEventsV1alpha1SASLConfig';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';

export class IoArgoprojEventsV1alpha1KafkaEventSource {
    /**
    * Yaml format Sarama config for Kafka connection. It follows the struct of sarama.Config. See https://github.com/Shopify/sarama/blob/main/config.go e.g.  consumer:   fetch:     min: 1 net:   MaxOpenRequests: 5  +optional
    */
    'config'?: string;
    'connectionBackoff'?: IoArgoprojEventsV1alpha1Backoff;
    'consumerGroup'?: IoArgoprojEventsV1alpha1KafkaConsumerGroup;
    'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
    'jsonBody'?: boolean;
    'limitEventsPerSecond'?: string;
    'metadata'?: { [key: string]: string; };
    'partition'?: string;
    'sasl'?: IoArgoprojEventsV1alpha1SASLConfig;
    'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
    'topic'?: string;
    'url'?: string;
    'version'?: string;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "config",
            "baseName": "config",
            "type": "string"
        },
        {
            "name": "connectionBackoff",
            "baseName": "connectionBackoff",
            "type": "IoArgoprojEventsV1alpha1Backoff"
        },
        {
            "name": "consumerGroup",
            "baseName": "consumerGroup",
            "type": "IoArgoprojEventsV1alpha1KafkaConsumerGroup"
        },
        {
            "name": "filter",
            "baseName": "filter",
            "type": "IoArgoprojEventsV1alpha1EventSourceFilter"
        },
        {
            "name": "jsonBody",
            "baseName": "jsonBody",
            "type": "boolean"
        },
        {
            "name": "limitEventsPerSecond",
            "baseName": "limitEventsPerSecond",
            "type": "string"
        },
        {
            "name": "metadata",
            "baseName": "metadata",
            "type": "{ [key: string]: string; }"
        },
        {
            "name": "partition",
            "baseName": "partition",
            "type": "string"
        },
        {
            "name": "sasl",
            "baseName": "sasl",
            "type": "IoArgoprojEventsV1alpha1SASLConfig"
        },
        {
            "name": "tls",
            "baseName": "tls",
            "type": "IoArgoprojEventsV1alpha1TLSConfig"
        },
        {
            "name": "topic",
            "baseName": "topic",
            "type": "string"
        },
        {
            "name": "url",
            "baseName": "url",
            "type": "string"
        },
        {
            "name": "version",
            "baseName": "version",
            "type": "string"
        }    ];

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

