github.com/argoproj/argo-events@v1.9.1/pkg/apis/eventsource/v1alpha1/openapi_generated.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright 2021 BlackRock, Inc.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by openapi-gen. DO NOT EDIT.
    21  
    22  // This file was autogenerated by openapi-gen. Do not edit it manually!
    23  
    24  package v1alpha1
    25  
    26  import (
    27  	common "k8s.io/kube-openapi/pkg/common"
    28  	spec "k8s.io/kube-openapi/pkg/validation/spec"
    29  )
    30  
    31  func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
    32  	return map[string]common.OpenAPIDefinition{
    33  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPConsumeConfig":            schema_pkg_apis_eventsource_v1alpha1_AMQPConsumeConfig(ref),
    34  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPEventSource":              schema_pkg_apis_eventsource_v1alpha1_AMQPEventSource(ref),
    35  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPExchangeDeclareConfig":    schema_pkg_apis_eventsource_v1alpha1_AMQPExchangeDeclareConfig(ref),
    36  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueBindConfig":          schema_pkg_apis_eventsource_v1alpha1_AMQPQueueBindConfig(ref),
    37  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueDeclareConfig":       schema_pkg_apis_eventsource_v1alpha1_AMQPQueueDeclareConfig(ref),
    38  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureEventsHubEventSource":    schema_pkg_apis_eventsource_v1alpha1_AzureEventsHubEventSource(ref),
    39  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureQueueStorageEventSource": schema_pkg_apis_eventsource_v1alpha1_AzureQueueStorageEventSource(ref),
    40  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureServiceBusEventSource":   schema_pkg_apis_eventsource_v1alpha1_AzureServiceBusEventSource(ref),
    41  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketAuth":                schema_pkg_apis_eventsource_v1alpha1_BitbucketAuth(ref),
    42  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketBasicAuth":           schema_pkg_apis_eventsource_v1alpha1_BitbucketBasicAuth(ref),
    43  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketEventSource":         schema_pkg_apis_eventsource_v1alpha1_BitbucketEventSource(ref),
    44  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketRepository":          schema_pkg_apis_eventsource_v1alpha1_BitbucketRepository(ref),
    45  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketServerEventSource":   schema_pkg_apis_eventsource_v1alpha1_BitbucketServerEventSource(ref),
    46  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketServerRepository":    schema_pkg_apis_eventsource_v1alpha1_BitbucketServerRepository(ref),
    47  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CalendarEventSource":          schema_pkg_apis_eventsource_v1alpha1_CalendarEventSource(ref),
    48  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CatchupConfiguration":         schema_pkg_apis_eventsource_v1alpha1_CatchupConfiguration(ref),
    49  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ConfigMapPersistence":         schema_pkg_apis_eventsource_v1alpha1_ConfigMapPersistence(ref),
    50  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EmitterEventSource":           schema_pkg_apis_eventsource_v1alpha1_EmitterEventSource(ref),
    51  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventPersistence":             schema_pkg_apis_eventsource_v1alpha1_EventPersistence(ref),
    52  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSource":                  schema_pkg_apis_eventsource_v1alpha1_EventSource(ref),
    53  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter":            schema_pkg_apis_eventsource_v1alpha1_EventSourceFilter(ref),
    54  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceList":              schema_pkg_apis_eventsource_v1alpha1_EventSourceList(ref),
    55  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceSpec":              schema_pkg_apis_eventsource_v1alpha1_EventSourceSpec(ref),
    56  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceStatus":            schema_pkg_apis_eventsource_v1alpha1_EventSourceStatus(ref),
    57  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.FileEventSource":              schema_pkg_apis_eventsource_v1alpha1_FileEventSource(ref),
    58  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GenericEventSource":           schema_pkg_apis_eventsource_v1alpha1_GenericEventSource(ref),
    59  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GerritEventSource":            schema_pkg_apis_eventsource_v1alpha1_GerritEventSource(ref),
    60  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubAppCreds":               schema_pkg_apis_eventsource_v1alpha1_GithubAppCreds(ref),
    61  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubEventSource":            schema_pkg_apis_eventsource_v1alpha1_GithubEventSource(ref),
    62  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GitlabEventSource":            schema_pkg_apis_eventsource_v1alpha1_GitlabEventSource(ref),
    63  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.HDFSEventSource":              schema_pkg_apis_eventsource_v1alpha1_HDFSEventSource(ref),
    64  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaConsumerGroup":           schema_pkg_apis_eventsource_v1alpha1_KafkaConsumerGroup(ref),
    65  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaEventSource":             schema_pkg_apis_eventsource_v1alpha1_KafkaEventSource(ref),
    66  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.MQTTEventSource":              schema_pkg_apis_eventsource_v1alpha1_MQTTEventSource(ref),
    67  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSAuth":                     schema_pkg_apis_eventsource_v1alpha1_NATSAuth(ref),
    68  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSEventsSource":             schema_pkg_apis_eventsource_v1alpha1_NATSEventsSource(ref),
    69  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NSQEventSource":               schema_pkg_apis_eventsource_v1alpha1_NSQEventSource(ref),
    70  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.OwnedRepositories":            schema_pkg_apis_eventsource_v1alpha1_OwnedRepositories(ref),
    71  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PubSubEventSource":            schema_pkg_apis_eventsource_v1alpha1_PubSubEventSource(ref),
    72  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PulsarEventSource":            schema_pkg_apis_eventsource_v1alpha1_PulsarEventSource(ref),
    73  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisEventSource":             schema_pkg_apis_eventsource_v1alpha1_RedisEventSource(ref),
    74  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisStreamEventSource":       schema_pkg_apis_eventsource_v1alpha1_RedisStreamEventSource(ref),
    75  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceEventSource":          schema_pkg_apis_eventsource_v1alpha1_ResourceEventSource(ref),
    76  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceFilter":               schema_pkg_apis_eventsource_v1alpha1_ResourceFilter(ref),
    77  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SFTPEventSource":              schema_pkg_apis_eventsource_v1alpha1_SFTPEventSource(ref),
    78  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SNSEventSource":               schema_pkg_apis_eventsource_v1alpha1_SNSEventSource(ref),
    79  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SQSEventSource":               schema_pkg_apis_eventsource_v1alpha1_SQSEventSource(ref),
    80  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Selector":                     schema_pkg_apis_eventsource_v1alpha1_Selector(ref),
    81  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Service":                      schema_pkg_apis_eventsource_v1alpha1_Service(ref),
    82  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SlackEventSource":             schema_pkg_apis_eventsource_v1alpha1_SlackEventSource(ref),
    83  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridEventSource":       schema_pkg_apis_eventsource_v1alpha1_StorageGridEventSource(ref),
    84  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridFilter":            schema_pkg_apis_eventsource_v1alpha1_StorageGridFilter(ref),
    85  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StripeEventSource":            schema_pkg_apis_eventsource_v1alpha1_StripeEventSource(ref),
    86  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Template":                     schema_pkg_apis_eventsource_v1alpha1_Template(ref),
    87  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig":              schema_pkg_apis_eventsource_v1alpha1_WatchPathConfig(ref),
    88  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext":               schema_pkg_apis_eventsource_v1alpha1_WebhookContext(ref),
    89  		"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookEventSource":           schema_pkg_apis_eventsource_v1alpha1_WebhookEventSource(ref),
    90  	}
    91  }
    92  
    93  func schema_pkg_apis_eventsource_v1alpha1_AMQPConsumeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
    94  	return common.OpenAPIDefinition{
    95  		Schema: spec.Schema{
    96  			SchemaProps: spec.SchemaProps{
    97  				Description: "AMQPConsumeConfig holds the configuration to immediately starts delivering queued messages",
    98  				Type:        []string{"object"},
    99  				Properties: map[string]spec.Schema{
   100  					"consumerTag": {
   101  						SchemaProps: spec.SchemaProps{
   102  							Description: "ConsumerTag is the identity of the consumer included in every delivery",
   103  							Type:        []string{"string"},
   104  							Format:      "",
   105  						},
   106  					},
   107  					"autoAck": {
   108  						SchemaProps: spec.SchemaProps{
   109  							Description: "AutoAck when true, the server will acknowledge deliveries to this consumer prior to writing the delivery to the network",
   110  							Type:        []string{"boolean"},
   111  							Format:      "",
   112  						},
   113  					},
   114  					"exclusive": {
   115  						SchemaProps: spec.SchemaProps{
   116  							Description: "Exclusive when true, the server will ensure that this is the sole consumer from this queue",
   117  							Type:        []string{"boolean"},
   118  							Format:      "",
   119  						},
   120  					},
   121  					"noLocal": {
   122  						SchemaProps: spec.SchemaProps{
   123  							Description: "NoLocal flag is not supported by RabbitMQ",
   124  							Type:        []string{"boolean"},
   125  							Format:      "",
   126  						},
   127  					},
   128  					"noWait": {
   129  						SchemaProps: spec.SchemaProps{
   130  							Description: "NowWait when true, do not wait for the server to confirm the request and immediately begin deliveries",
   131  							Type:        []string{"boolean"},
   132  							Format:      "",
   133  						},
   134  					},
   135  				},
   136  			},
   137  		},
   138  	}
   139  }
   140  
   141  func schema_pkg_apis_eventsource_v1alpha1_AMQPEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
   142  	return common.OpenAPIDefinition{
   143  		Schema: spec.Schema{
   144  			SchemaProps: spec.SchemaProps{
   145  				Description: "AMQPEventSource refers to an event-source for AMQP stream events",
   146  				Type:        []string{"object"},
   147  				Properties: map[string]spec.Schema{
   148  					"url": {
   149  						SchemaProps: spec.SchemaProps{
   150  							Description: "URL for rabbitmq service",
   151  							Type:        []string{"string"},
   152  							Format:      "",
   153  						},
   154  					},
   155  					"exchangeName": {
   156  						SchemaProps: spec.SchemaProps{
   157  							Description: "ExchangeName is the exchange name For more information, visit https://www.rabbitmq.com/tutorials/amqp-concepts.html",
   158  							Default:     "",
   159  							Type:        []string{"string"},
   160  							Format:      "",
   161  						},
   162  					},
   163  					"exchangeType": {
   164  						SchemaProps: spec.SchemaProps{
   165  							Description: "ExchangeType is rabbitmq exchange type",
   166  							Default:     "",
   167  							Type:        []string{"string"},
   168  							Format:      "",
   169  						},
   170  					},
   171  					"routingKey": {
   172  						SchemaProps: spec.SchemaProps{
   173  							Description: "Routing key for bindings",
   174  							Default:     "",
   175  							Type:        []string{"string"},
   176  							Format:      "",
   177  						},
   178  					},
   179  					"connectionBackoff": {
   180  						SchemaProps: spec.SchemaProps{
   181  							Description: "Backoff holds parameters applied to connection.",
   182  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
   183  						},
   184  					},
   185  					"jsonBody": {
   186  						SchemaProps: spec.SchemaProps{
   187  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
   188  							Type:        []string{"boolean"},
   189  							Format:      "",
   190  						},
   191  					},
   192  					"tls": {
   193  						SchemaProps: spec.SchemaProps{
   194  							Description: "TLS configuration for the amqp client.",
   195  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
   196  						},
   197  					},
   198  					"metadata": {
   199  						SchemaProps: spec.SchemaProps{
   200  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
   201  							Type:        []string{"object"},
   202  							AdditionalProperties: &spec.SchemaOrBool{
   203  								Allows: true,
   204  								Schema: &spec.Schema{
   205  									SchemaProps: spec.SchemaProps{
   206  										Default: "",
   207  										Type:    []string{"string"},
   208  										Format:  "",
   209  									},
   210  								},
   211  							},
   212  						},
   213  					},
   214  					"exchangeDeclare": {
   215  						SchemaProps: spec.SchemaProps{
   216  							Description: "ExchangeDeclare holds the configuration for the exchange on the server For more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.ExchangeDeclare",
   217  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPExchangeDeclareConfig"),
   218  						},
   219  					},
   220  					"queueDeclare": {
   221  						SchemaProps: spec.SchemaProps{
   222  							Description: "QueueDeclare holds the configuration of a queue to hold messages and deliver to consumers. Declaring creates a queue if it doesn't already exist, or ensures that an existing queue matches the same parameters For more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.QueueDeclare",
   223  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueDeclareConfig"),
   224  						},
   225  					},
   226  					"queueBind": {
   227  						SchemaProps: spec.SchemaProps{
   228  							Description: "QueueBind holds the configuration that binds an exchange to a queue so that publishings to the exchange will be routed to the queue when the publishing routing key matches the binding routing key For more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.QueueBind",
   229  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueBindConfig"),
   230  						},
   231  					},
   232  					"consume": {
   233  						SchemaProps: spec.SchemaProps{
   234  							Description: "Consume holds the configuration to immediately starts delivering queued messages For more information, visit https://pkg.go.dev/github.com/rabbitmq/amqp091-go#Channel.Consume",
   235  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPConsumeConfig"),
   236  						},
   237  					},
   238  					"auth": {
   239  						SchemaProps: spec.SchemaProps{
   240  							Description: "Auth hosts secret selectors for username and password",
   241  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.BasicAuth"),
   242  						},
   243  					},
   244  					"urlSecret": {
   245  						SchemaProps: spec.SchemaProps{
   246  							Description: "URLSecret is secret reference for rabbitmq service URL",
   247  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   248  						},
   249  					},
   250  					"filter": {
   251  						SchemaProps: spec.SchemaProps{
   252  							Description: "Filter",
   253  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
   254  						},
   255  					},
   256  				},
   257  				Required: []string{"exchangeName", "exchangeType", "routingKey"},
   258  			},
   259  		},
   260  		Dependencies: []string{
   261  			"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.BasicAuth", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPConsumeConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPExchangeDeclareConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueBindConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueDeclareConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
   262  	}
   263  }
   264  
   265  func schema_pkg_apis_eventsource_v1alpha1_AMQPExchangeDeclareConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
   266  	return common.OpenAPIDefinition{
   267  		Schema: spec.Schema{
   268  			SchemaProps: spec.SchemaProps{
   269  				Description: "AMQPExchangeDeclareConfig holds the configuration for the exchange on the server",
   270  				Type:        []string{"object"},
   271  				Properties: map[string]spec.Schema{
   272  					"durable": {
   273  						SchemaProps: spec.SchemaProps{
   274  							Description: "Durable keeps the exchange also after the server restarts",
   275  							Type:        []string{"boolean"},
   276  							Format:      "",
   277  						},
   278  					},
   279  					"autoDelete": {
   280  						SchemaProps: spec.SchemaProps{
   281  							Description: "AutoDelete removes the exchange when no bindings are active",
   282  							Type:        []string{"boolean"},
   283  							Format:      "",
   284  						},
   285  					},
   286  					"internal": {
   287  						SchemaProps: spec.SchemaProps{
   288  							Description: "Internal when true does not accept publishings",
   289  							Type:        []string{"boolean"},
   290  							Format:      "",
   291  						},
   292  					},
   293  					"noWait": {
   294  						SchemaProps: spec.SchemaProps{
   295  							Description: "NowWait when true does not wait for a confirmation from the server",
   296  							Type:        []string{"boolean"},
   297  							Format:      "",
   298  						},
   299  					},
   300  				},
   301  			},
   302  		},
   303  	}
   304  }
   305  
   306  func schema_pkg_apis_eventsource_v1alpha1_AMQPQueueBindConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
   307  	return common.OpenAPIDefinition{
   308  		Schema: spec.Schema{
   309  			SchemaProps: spec.SchemaProps{
   310  				Description: "AMQPQueueBindConfig holds the configuration that binds an exchange to a queue so that publishings to the exchange will be routed to the queue when the publishing routing key matches the binding routing key",
   311  				Type:        []string{"object"},
   312  				Properties: map[string]spec.Schema{
   313  					"noWait": {
   314  						SchemaProps: spec.SchemaProps{
   315  							Description: "NowWait false and the queue could not be bound, the channel will be closed with an error",
   316  							Type:        []string{"boolean"},
   317  							Format:      "",
   318  						},
   319  					},
   320  				},
   321  			},
   322  		},
   323  	}
   324  }
   325  
   326  func schema_pkg_apis_eventsource_v1alpha1_AMQPQueueDeclareConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
   327  	return common.OpenAPIDefinition{
   328  		Schema: spec.Schema{
   329  			SchemaProps: spec.SchemaProps{
   330  				Description: "AMQPQueueDeclareConfig holds the configuration of a queue to hold messages and deliver to consumers. Declaring creates a queue if it doesn't already exist, or ensures that an existing queue matches the same parameters",
   331  				Type:        []string{"object"},
   332  				Properties: map[string]spec.Schema{
   333  					"name": {
   334  						SchemaProps: spec.SchemaProps{
   335  							Description: "Name of the queue. If empty the server auto-generates a unique name for this queue",
   336  							Type:        []string{"string"},
   337  							Format:      "",
   338  						},
   339  					},
   340  					"durable": {
   341  						SchemaProps: spec.SchemaProps{
   342  							Description: "Durable keeps the queue also after the server restarts",
   343  							Type:        []string{"boolean"},
   344  							Format:      "",
   345  						},
   346  					},
   347  					"autoDelete": {
   348  						SchemaProps: spec.SchemaProps{
   349  							Description: "AutoDelete removes the queue when no consumers are active",
   350  							Type:        []string{"boolean"},
   351  							Format:      "",
   352  						},
   353  					},
   354  					"exclusive": {
   355  						SchemaProps: spec.SchemaProps{
   356  							Description: "Exclusive sets the queues to be accessible only by the connection that declares them and will be deleted wgen the connection closes",
   357  							Type:        []string{"boolean"},
   358  							Format:      "",
   359  						},
   360  					},
   361  					"noWait": {
   362  						SchemaProps: spec.SchemaProps{
   363  							Description: "NowWait when true, the queue assumes to be declared on the server",
   364  							Type:        []string{"boolean"},
   365  							Format:      "",
   366  						},
   367  					},
   368  					"arguments": {
   369  						SchemaProps: spec.SchemaProps{
   370  							Description: "Arguments of a queue (also known as \"x-arguments\") used for optional features and plugins",
   371  							Type:        []string{"string"},
   372  							Format:      "",
   373  						},
   374  					},
   375  				},
   376  			},
   377  		},
   378  	}
   379  }
   380  
   381  func schema_pkg_apis_eventsource_v1alpha1_AzureEventsHubEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
   382  	return common.OpenAPIDefinition{
   383  		Schema: spec.Schema{
   384  			SchemaProps: spec.SchemaProps{
   385  				Description: "AzureEventsHubEventSource describes the event source for azure events hub More info at https://docs.microsoft.com/en-us/azure/event-hubs/",
   386  				Type:        []string{"object"},
   387  				Properties: map[string]spec.Schema{
   388  					"fqdn": {
   389  						SchemaProps: spec.SchemaProps{
   390  							Description: "FQDN of the EventHubs namespace you created More info at https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string",
   391  							Default:     "",
   392  							Type:        []string{"string"},
   393  							Format:      "",
   394  						},
   395  					},
   396  					"sharedAccessKeyName": {
   397  						SchemaProps: spec.SchemaProps{
   398  							Description: "SharedAccessKeyName is the name you chose for your application's SAS keys",
   399  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   400  						},
   401  					},
   402  					"sharedAccessKey": {
   403  						SchemaProps: spec.SchemaProps{
   404  							Description: "SharedAccessKey is the generated value of the key",
   405  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   406  						},
   407  					},
   408  					"hubName": {
   409  						SchemaProps: spec.SchemaProps{
   410  							Description: "Event Hub path/name",
   411  							Default:     "",
   412  							Type:        []string{"string"},
   413  							Format:      "",
   414  						},
   415  					},
   416  					"metadata": {
   417  						SchemaProps: spec.SchemaProps{
   418  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
   419  							Type:        []string{"object"},
   420  							AdditionalProperties: &spec.SchemaOrBool{
   421  								Allows: true,
   422  								Schema: &spec.Schema{
   423  									SchemaProps: spec.SchemaProps{
   424  										Default: "",
   425  										Type:    []string{"string"},
   426  										Format:  "",
   427  									},
   428  								},
   429  							},
   430  						},
   431  					},
   432  					"filter": {
   433  						SchemaProps: spec.SchemaProps{
   434  							Description: "Filter",
   435  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
   436  						},
   437  					},
   438  				},
   439  				Required: []string{"fqdn", "hubName"},
   440  			},
   441  		},
   442  		Dependencies: []string{
   443  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
   444  	}
   445  }
   446  
   447  func schema_pkg_apis_eventsource_v1alpha1_AzureQueueStorageEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
   448  	return common.OpenAPIDefinition{
   449  		Schema: spec.Schema{
   450  			SchemaProps: spec.SchemaProps{
   451  				Description: "AzureQueueStorageEventSource describes the event source for azure queue storage more info at https://learn.microsoft.com/en-us/azure/storage/queues/",
   452  				Type:        []string{"object"},
   453  				Properties: map[string]spec.Schema{
   454  					"storageAccountName": {
   455  						SchemaProps: spec.SchemaProps{
   456  							Description: "StorageAccountName is the name of the storage account where the queue is. This field is necessary to access via Azure AD (managed identity) and it is ignored if ConnectionString is set.",
   457  							Type:        []string{"string"},
   458  							Format:      "",
   459  						},
   460  					},
   461  					"connectionString": {
   462  						SchemaProps: spec.SchemaProps{
   463  							Description: "ConnectionString is the connection string to access Azure Queue Storage. If this fields is not provided it will try to access via Azure AD with StorageAccountName.",
   464  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   465  						},
   466  					},
   467  					"queueName": {
   468  						SchemaProps: spec.SchemaProps{
   469  							Description: "QueueName is the name of the queue",
   470  							Default:     "",
   471  							Type:        []string{"string"},
   472  							Format:      "",
   473  						},
   474  					},
   475  					"jsonBody": {
   476  						SchemaProps: spec.SchemaProps{
   477  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
   478  							Type:        []string{"boolean"},
   479  							Format:      "",
   480  						},
   481  					},
   482  					"dlq": {
   483  						SchemaProps: spec.SchemaProps{
   484  							Description: "DLQ specifies if a dead-letter queue is configured for messages that can't be processed successfully. If set to true, messages with invalid payload won't be acknowledged to allow to forward them farther to the dead-letter queue. The default value is false.",
   485  							Type:        []string{"boolean"},
   486  							Format:      "",
   487  						},
   488  					},
   489  					"metadata": {
   490  						SchemaProps: spec.SchemaProps{
   491  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
   492  							Type:        []string{"object"},
   493  							AdditionalProperties: &spec.SchemaOrBool{
   494  								Allows: true,
   495  								Schema: &spec.Schema{
   496  									SchemaProps: spec.SchemaProps{
   497  										Default: "",
   498  										Type:    []string{"string"},
   499  										Format:  "",
   500  									},
   501  								},
   502  							},
   503  						},
   504  					},
   505  					"filter": {
   506  						SchemaProps: spec.SchemaProps{
   507  							Description: "Filter",
   508  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
   509  						},
   510  					},
   511  					"decodeMessage": {
   512  						SchemaProps: spec.SchemaProps{
   513  							Description: "DecodeMessage specifies if all the messages should be base64 decoded. If set to true the decoding is done before the evaluation of JSONBody",
   514  							Type:        []string{"boolean"},
   515  							Format:      "",
   516  						},
   517  					},
   518  					"waitTimeInSeconds": {
   519  						SchemaProps: spec.SchemaProps{
   520  							Description: "WaitTimeInSeconds is the duration (in seconds) for which the event source waits between empty results from the queue. The default value is 3 seconds.",
   521  							Type:        []string{"integer"},
   522  							Format:      "int32",
   523  						},
   524  					},
   525  				},
   526  				Required: []string{"queueName"},
   527  			},
   528  		},
   529  		Dependencies: []string{
   530  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
   531  	}
   532  }
   533  
   534  func schema_pkg_apis_eventsource_v1alpha1_AzureServiceBusEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
   535  	return common.OpenAPIDefinition{
   536  		Schema: spec.Schema{
   537  			SchemaProps: spec.SchemaProps{
   538  				Description: "AzureServiceBusEventSource describes the event source for azure service bus More info at https://docs.microsoft.com/en-us/azure/service-bus-messaging/",
   539  				Type:        []string{"object"},
   540  				Properties: map[string]spec.Schema{
   541  					"connectionString": {
   542  						SchemaProps: spec.SchemaProps{
   543  							Description: "ConnectionString is the connection string for the Azure Service Bus. If this fields is not provided it will try to access via Azure AD with DefaultAzureCredential and FullyQualifiedNamespace.",
   544  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   545  						},
   546  					},
   547  					"queueName": {
   548  						SchemaProps: spec.SchemaProps{
   549  							Description: "QueueName is the name of the Azure Service Bus Queue",
   550  							Default:     "",
   551  							Type:        []string{"string"},
   552  							Format:      "",
   553  						},
   554  					},
   555  					"topicName": {
   556  						SchemaProps: spec.SchemaProps{
   557  							Description: "TopicName is the name of the Azure Service Bus Topic",
   558  							Default:     "",
   559  							Type:        []string{"string"},
   560  							Format:      "",
   561  						},
   562  					},
   563  					"subscriptionName": {
   564  						SchemaProps: spec.SchemaProps{
   565  							Description: "SubscriptionName is the name of the Azure Service Bus Topic Subscription",
   566  							Default:     "",
   567  							Type:        []string{"string"},
   568  							Format:      "",
   569  						},
   570  					},
   571  					"tls": {
   572  						SchemaProps: spec.SchemaProps{
   573  							Description: "TLS configuration for the service bus client",
   574  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
   575  						},
   576  					},
   577  					"jsonBody": {
   578  						SchemaProps: spec.SchemaProps{
   579  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
   580  							Type:        []string{"boolean"},
   581  							Format:      "",
   582  						},
   583  					},
   584  					"metadata": {
   585  						SchemaProps: spec.SchemaProps{
   586  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
   587  							Type:        []string{"object"},
   588  							AdditionalProperties: &spec.SchemaOrBool{
   589  								Allows: true,
   590  								Schema: &spec.Schema{
   591  									SchemaProps: spec.SchemaProps{
   592  										Default: "",
   593  										Type:    []string{"string"},
   594  										Format:  "",
   595  									},
   596  								},
   597  							},
   598  						},
   599  					},
   600  					"filter": {
   601  						SchemaProps: spec.SchemaProps{
   602  							Description: "Filter",
   603  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
   604  						},
   605  					},
   606  					"fullyQualifiedNamespace": {
   607  						SchemaProps: spec.SchemaProps{
   608  							Description: "FullyQualifiedNamespace is the Service Bus namespace name (ex: myservicebus.servicebus.windows.net). This field is necessary to access via Azure AD (managed identity) and it is ignored if ConnectionString is set.",
   609  							Type:        []string{"string"},
   610  							Format:      "",
   611  						},
   612  					},
   613  				},
   614  				Required: []string{"queueName", "topicName", "subscriptionName"},
   615  			},
   616  		},
   617  		Dependencies: []string{
   618  			"github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
   619  	}
   620  }
   621  
   622  func schema_pkg_apis_eventsource_v1alpha1_BitbucketAuth(ref common.ReferenceCallback) common.OpenAPIDefinition {
   623  	return common.OpenAPIDefinition{
   624  		Schema: spec.Schema{
   625  			SchemaProps: spec.SchemaProps{
   626  				Description: "BitbucketAuth holds the different auth strategies for connecting to Bitbucket",
   627  				Type:        []string{"object"},
   628  				Properties: map[string]spec.Schema{
   629  					"basic": {
   630  						SchemaProps: spec.SchemaProps{
   631  							Description: "Basic is BasicAuth auth strategy.",
   632  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketBasicAuth"),
   633  						},
   634  					},
   635  					"oauthToken": {
   636  						SchemaProps: spec.SchemaProps{
   637  							Description: "OAuthToken refers to the K8s secret that holds the OAuth Bearer token.",
   638  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   639  						},
   640  					},
   641  				},
   642  			},
   643  		},
   644  		Dependencies: []string{
   645  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketBasicAuth", "k8s.io/api/core/v1.SecretKeySelector"},
   646  	}
   647  }
   648  
   649  func schema_pkg_apis_eventsource_v1alpha1_BitbucketBasicAuth(ref common.ReferenceCallback) common.OpenAPIDefinition {
   650  	return common.OpenAPIDefinition{
   651  		Schema: spec.Schema{
   652  			SchemaProps: spec.SchemaProps{
   653  				Description: "BasicAuth holds the information required to authenticate user via basic auth mechanism",
   654  				Type:        []string{"object"},
   655  				Properties: map[string]spec.Schema{
   656  					"username": {
   657  						SchemaProps: spec.SchemaProps{
   658  							Description: "Username refers to the K8s secret that holds the username.",
   659  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   660  						},
   661  					},
   662  					"password": {
   663  						SchemaProps: spec.SchemaProps{
   664  							Description: "Password refers to the K8s secret that holds the password.",
   665  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   666  						},
   667  					},
   668  				},
   669  				Required: []string{"username", "password"},
   670  			},
   671  		},
   672  		Dependencies: []string{
   673  			"k8s.io/api/core/v1.SecretKeySelector"},
   674  	}
   675  }
   676  
   677  func schema_pkg_apis_eventsource_v1alpha1_BitbucketEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
   678  	return common.OpenAPIDefinition{
   679  		Schema: spec.Schema{
   680  			SchemaProps: spec.SchemaProps{
   681  				Description: "BitbucketEventSource describes the event source for Bitbucket",
   682  				Type:        []string{"object"},
   683  				Properties: map[string]spec.Schema{
   684  					"deleteHookOnFinish": {
   685  						SchemaProps: spec.SchemaProps{
   686  							Description: "DeleteHookOnFinish determines whether to delete the defined Bitbucket hook once the event source is stopped.",
   687  							Type:        []string{"boolean"},
   688  							Format:      "",
   689  						},
   690  					},
   691  					"metadata": {
   692  						SchemaProps: spec.SchemaProps{
   693  							Description: "Metadata holds the user defined metadata which will be passed along the event payload.",
   694  							Type:        []string{"object"},
   695  							AdditionalProperties: &spec.SchemaOrBool{
   696  								Allows: true,
   697  								Schema: &spec.Schema{
   698  									SchemaProps: spec.SchemaProps{
   699  										Default: "",
   700  										Type:    []string{"string"},
   701  										Format:  "",
   702  									},
   703  								},
   704  							},
   705  						},
   706  					},
   707  					"webhook": {
   708  						SchemaProps: spec.SchemaProps{
   709  							Description: "Webhook refers to the configuration required to run an http server",
   710  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
   711  						},
   712  					},
   713  					"auth": {
   714  						SchemaProps: spec.SchemaProps{
   715  							Description: "Auth information required to connect to Bitbucket.",
   716  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketAuth"),
   717  						},
   718  					},
   719  					"events": {
   720  						SchemaProps: spec.SchemaProps{
   721  							Description: "Events this webhook is subscribed to.",
   722  							Type:        []string{"array"},
   723  							Items: &spec.SchemaOrArray{
   724  								Schema: &spec.Schema{
   725  									SchemaProps: spec.SchemaProps{
   726  										Default: "",
   727  										Type:    []string{"string"},
   728  										Format:  "",
   729  									},
   730  								},
   731  							},
   732  						},
   733  					},
   734  					"owner": {
   735  						SchemaProps: spec.SchemaProps{
   736  							Description: "DeprecatedOwner is the owner of the repository. Deprecated: use Repositories instead. Will be unsupported in v1.9",
   737  							Type:        []string{"string"},
   738  							Format:      "",
   739  						},
   740  					},
   741  					"projectKey": {
   742  						SchemaProps: spec.SchemaProps{
   743  							Description: "DeprecatedProjectKey is the key of the project to which the repository relates Deprecated: use Repositories instead. Will be unsupported in v1.9",
   744  							Type:        []string{"string"},
   745  							Format:      "",
   746  						},
   747  					},
   748  					"repositorySlug": {
   749  						SchemaProps: spec.SchemaProps{
   750  							Description: "DeprecatedRepositorySlug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL Deprecated: use Repositories instead. Will be unsupported in v1.9",
   751  							Type:        []string{"string"},
   752  							Format:      "",
   753  						},
   754  					},
   755  					"repositories": {
   756  						SchemaProps: spec.SchemaProps{
   757  							Description: "Repositories holds a list of repositories for which integration needs to set up",
   758  							Type:        []string{"array"},
   759  							Items: &spec.SchemaOrArray{
   760  								Schema: &spec.Schema{
   761  									SchemaProps: spec.SchemaProps{
   762  										Default: map[string]interface{}{},
   763  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketRepository"),
   764  									},
   765  								},
   766  							},
   767  						},
   768  					},
   769  					"filter": {
   770  						SchemaProps: spec.SchemaProps{
   771  							Description: "Filter",
   772  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
   773  						},
   774  					},
   775  				},
   776  				Required: []string{"webhook", "auth", "events"},
   777  			},
   778  		},
   779  		Dependencies: []string{
   780  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketAuth", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketRepository", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"},
   781  	}
   782  }
   783  
   784  func schema_pkg_apis_eventsource_v1alpha1_BitbucketRepository(ref common.ReferenceCallback) common.OpenAPIDefinition {
   785  	return common.OpenAPIDefinition{
   786  		Schema: spec.Schema{
   787  			SchemaProps: spec.SchemaProps{
   788  				Type: []string{"object"},
   789  				Properties: map[string]spec.Schema{
   790  					"owner": {
   791  						SchemaProps: spec.SchemaProps{
   792  							Description: "Owner is the owner of the repository",
   793  							Default:     "",
   794  							Type:        []string{"string"},
   795  							Format:      "",
   796  						},
   797  					},
   798  					"repositorySlug": {
   799  						SchemaProps: spec.SchemaProps{
   800  							Description: "RepositorySlug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL",
   801  							Default:     "",
   802  							Type:        []string{"string"},
   803  							Format:      "",
   804  						},
   805  					},
   806  				},
   807  				Required: []string{"owner", "repositorySlug"},
   808  			},
   809  		},
   810  	}
   811  }
   812  
   813  func schema_pkg_apis_eventsource_v1alpha1_BitbucketServerEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
   814  	return common.OpenAPIDefinition{
   815  		Schema: spec.Schema{
   816  			SchemaProps: spec.SchemaProps{
   817  				Description: "BitbucketServerEventSource refers to event-source related to Bitbucket Server events",
   818  				Type:        []string{"object"},
   819  				Properties: map[string]spec.Schema{
   820  					"webhook": {
   821  						SchemaProps: spec.SchemaProps{
   822  							Description: "Webhook holds configuration to run a http server",
   823  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
   824  						},
   825  					},
   826  					"projectKey": {
   827  						SchemaProps: spec.SchemaProps{
   828  							Description: "DeprecatedProjectKey is the key of project for which integration needs to set up Deprecated: use Repositories instead. Will be unsupported in v1.8",
   829  							Type:        []string{"string"},
   830  							Format:      "",
   831  						},
   832  					},
   833  					"repositorySlug": {
   834  						SchemaProps: spec.SchemaProps{
   835  							Description: "DeprecatedRepositorySlug is the slug of the repository for which integration needs to set up Deprecated: use Repositories instead. Will be unsupported in v1.8",
   836  							Type:        []string{"string"},
   837  							Format:      "",
   838  						},
   839  					},
   840  					"repositories": {
   841  						SchemaProps: spec.SchemaProps{
   842  							Description: "Repositories holds a list of repositories for which integration needs to set up",
   843  							Type:        []string{"array"},
   844  							Items: &spec.SchemaOrArray{
   845  								Schema: &spec.Schema{
   846  									SchemaProps: spec.SchemaProps{
   847  										Default: map[string]interface{}{},
   848  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketServerRepository"),
   849  									},
   850  								},
   851  							},
   852  						},
   853  					},
   854  					"events": {
   855  						SchemaProps: spec.SchemaProps{
   856  							Description: "Events are bitbucket event to listen to. Refer https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html",
   857  							Type:        []string{"array"},
   858  							Items: &spec.SchemaOrArray{
   859  								Schema: &spec.Schema{
   860  									SchemaProps: spec.SchemaProps{
   861  										Default: "",
   862  										Type:    []string{"string"},
   863  										Format:  "",
   864  									},
   865  								},
   866  							},
   867  						},
   868  					},
   869  					"accessToken": {
   870  						SchemaProps: spec.SchemaProps{
   871  							Description: "AccessToken is reference to K8s secret which holds the bitbucket api access information",
   872  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   873  						},
   874  					},
   875  					"webhookSecret": {
   876  						SchemaProps: spec.SchemaProps{
   877  							Description: "WebhookSecret is reference to K8s secret which holds the bitbucket webhook secret (for HMAC validation)",
   878  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
   879  						},
   880  					},
   881  					"bitbucketserverBaseURL": {
   882  						SchemaProps: spec.SchemaProps{
   883  							Description: "BitbucketServerBaseURL is the base URL for API requests to a custom endpoint",
   884  							Default:     "",
   885  							Type:        []string{"string"},
   886  							Format:      "",
   887  						},
   888  					},
   889  					"deleteHookOnFinish": {
   890  						SchemaProps: spec.SchemaProps{
   891  							Description: "DeleteHookOnFinish determines whether to delete the Bitbucket Server hook for the project once the event source is stopped.",
   892  							Type:        []string{"boolean"},
   893  							Format:      "",
   894  						},
   895  					},
   896  					"metadata": {
   897  						SchemaProps: spec.SchemaProps{
   898  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
   899  							Type:        []string{"object"},
   900  							AdditionalProperties: &spec.SchemaOrBool{
   901  								Allows: true,
   902  								Schema: &spec.Schema{
   903  									SchemaProps: spec.SchemaProps{
   904  										Default: "",
   905  										Type:    []string{"string"},
   906  										Format:  "",
   907  									},
   908  								},
   909  							},
   910  						},
   911  					},
   912  					"filter": {
   913  						SchemaProps: spec.SchemaProps{
   914  							Description: "Filter",
   915  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
   916  						},
   917  					},
   918  					"tls": {
   919  						SchemaProps: spec.SchemaProps{
   920  							Description: "TLS configuration for the bitbucketserver client.",
   921  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
   922  						},
   923  					},
   924  				},
   925  				Required: []string{"events", "bitbucketserverBaseURL"},
   926  			},
   927  		},
   928  		Dependencies: []string{
   929  			"github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketServerRepository", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
   930  	}
   931  }
   932  
   933  func schema_pkg_apis_eventsource_v1alpha1_BitbucketServerRepository(ref common.ReferenceCallback) common.OpenAPIDefinition {
   934  	return common.OpenAPIDefinition{
   935  		Schema: spec.Schema{
   936  			SchemaProps: spec.SchemaProps{
   937  				Type: []string{"object"},
   938  				Properties: map[string]spec.Schema{
   939  					"projectKey": {
   940  						SchemaProps: spec.SchemaProps{
   941  							Description: "ProjectKey is the key of project for which integration needs to set up",
   942  							Default:     "",
   943  							Type:        []string{"string"},
   944  							Format:      "",
   945  						},
   946  					},
   947  					"repositorySlug": {
   948  						SchemaProps: spec.SchemaProps{
   949  							Description: "RepositorySlug is the slug of the repository for which integration needs to set up",
   950  							Default:     "",
   951  							Type:        []string{"string"},
   952  							Format:      "",
   953  						},
   954  					},
   955  				},
   956  				Required: []string{"projectKey", "repositorySlug"},
   957  			},
   958  		},
   959  	}
   960  }
   961  
   962  func schema_pkg_apis_eventsource_v1alpha1_CalendarEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
   963  	return common.OpenAPIDefinition{
   964  		Schema: spec.Schema{
   965  			SchemaProps: spec.SchemaProps{
   966  				Description: "CalendarEventSource describes a time based dependency. One of the fields (schedule, interval, or recurrence) must be passed. Schedule takes precedence over interval; interval takes precedence over recurrence",
   967  				Type:        []string{"object"},
   968  				Properties: map[string]spec.Schema{
   969  					"schedule": {
   970  						SchemaProps: spec.SchemaProps{
   971  							Description: "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron",
   972  							Default:     "",
   973  							Type:        []string{"string"},
   974  							Format:      "",
   975  						},
   976  					},
   977  					"interval": {
   978  						SchemaProps: spec.SchemaProps{
   979  							Description: "Interval is a string that describes an interval duration, e.g. 1s, 30m, 2h...",
   980  							Default:     "",
   981  							Type:        []string{"string"},
   982  							Format:      "",
   983  						},
   984  					},
   985  					"exclusionDates": {
   986  						SchemaProps: spec.SchemaProps{
   987  							Description: "ExclusionDates defines the list of DATE-TIME exceptions for recurring events.",
   988  							Type:        []string{"array"},
   989  							Items: &spec.SchemaOrArray{
   990  								Schema: &spec.Schema{
   991  									SchemaProps: spec.SchemaProps{
   992  										Default: "",
   993  										Type:    []string{"string"},
   994  										Format:  "",
   995  									},
   996  								},
   997  							},
   998  						},
   999  					},
  1000  					"timezone": {
  1001  						SchemaProps: spec.SchemaProps{
  1002  							Description: "Timezone in which to run the schedule",
  1003  							Type:        []string{"string"},
  1004  							Format:      "",
  1005  						},
  1006  					},
  1007  					"metadata": {
  1008  						SchemaProps: spec.SchemaProps{
  1009  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  1010  							Type:        []string{"object"},
  1011  							AdditionalProperties: &spec.SchemaOrBool{
  1012  								Allows: true,
  1013  								Schema: &spec.Schema{
  1014  									SchemaProps: spec.SchemaProps{
  1015  										Default: "",
  1016  										Type:    []string{"string"},
  1017  										Format:  "",
  1018  									},
  1019  								},
  1020  							},
  1021  						},
  1022  					},
  1023  					"persistence": {
  1024  						SchemaProps: spec.SchemaProps{
  1025  							Description: "Persistence hold the configuration for event persistence",
  1026  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventPersistence"),
  1027  						},
  1028  					},
  1029  					"filter": {
  1030  						SchemaProps: spec.SchemaProps{
  1031  							Description: "Filter",
  1032  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  1033  						},
  1034  					},
  1035  				},
  1036  			},
  1037  		},
  1038  		Dependencies: []string{
  1039  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventPersistence", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"},
  1040  	}
  1041  }
  1042  
  1043  func schema_pkg_apis_eventsource_v1alpha1_CatchupConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1044  	return common.OpenAPIDefinition{
  1045  		Schema: spec.Schema{
  1046  			SchemaProps: spec.SchemaProps{
  1047  				Type: []string{"object"},
  1048  				Properties: map[string]spec.Schema{
  1049  					"enabled": {
  1050  						SchemaProps: spec.SchemaProps{
  1051  							Description: "Enabled enables to triggered the missed schedule when eventsource restarts",
  1052  							Type:        []string{"boolean"},
  1053  							Format:      "",
  1054  						},
  1055  					},
  1056  					"maxDuration": {
  1057  						SchemaProps: spec.SchemaProps{
  1058  							Description: "MaxDuration holds max catchup duration",
  1059  							Type:        []string{"string"},
  1060  							Format:      "",
  1061  						},
  1062  					},
  1063  				},
  1064  			},
  1065  		},
  1066  	}
  1067  }
  1068  
  1069  func schema_pkg_apis_eventsource_v1alpha1_ConfigMapPersistence(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1070  	return common.OpenAPIDefinition{
  1071  		Schema: spec.Schema{
  1072  			SchemaProps: spec.SchemaProps{
  1073  				Type: []string{"object"},
  1074  				Properties: map[string]spec.Schema{
  1075  					"name": {
  1076  						SchemaProps: spec.SchemaProps{
  1077  							Description: "Name of the configmap",
  1078  							Type:        []string{"string"},
  1079  							Format:      "",
  1080  						},
  1081  					},
  1082  					"createIfNotExist": {
  1083  						SchemaProps: spec.SchemaProps{
  1084  							Description: "CreateIfNotExist will create configmap if it doesn't exists",
  1085  							Type:        []string{"boolean"},
  1086  							Format:      "",
  1087  						},
  1088  					},
  1089  				},
  1090  			},
  1091  		},
  1092  	}
  1093  }
  1094  
  1095  func schema_pkg_apis_eventsource_v1alpha1_EmitterEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1096  	return common.OpenAPIDefinition{
  1097  		Schema: spec.Schema{
  1098  			SchemaProps: spec.SchemaProps{
  1099  				Description: "EmitterEventSource describes the event source for emitter More info at https://emitter.io/develop/getting-started/",
  1100  				Type:        []string{"object"},
  1101  				Properties: map[string]spec.Schema{
  1102  					"broker": {
  1103  						SchemaProps: spec.SchemaProps{
  1104  							Description: "Broker URI to connect to.",
  1105  							Default:     "",
  1106  							Type:        []string{"string"},
  1107  							Format:      "",
  1108  						},
  1109  					},
  1110  					"channelKey": {
  1111  						SchemaProps: spec.SchemaProps{
  1112  							Description: "ChannelKey refers to the channel key",
  1113  							Default:     "",
  1114  							Type:        []string{"string"},
  1115  							Format:      "",
  1116  						},
  1117  					},
  1118  					"channelName": {
  1119  						SchemaProps: spec.SchemaProps{
  1120  							Description: "ChannelName refers to the channel name",
  1121  							Default:     "",
  1122  							Type:        []string{"string"},
  1123  							Format:      "",
  1124  						},
  1125  					},
  1126  					"username": {
  1127  						SchemaProps: spec.SchemaProps{
  1128  							Description: "Username to use to connect to broker",
  1129  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  1130  						},
  1131  					},
  1132  					"password": {
  1133  						SchemaProps: spec.SchemaProps{
  1134  							Description: "Password to use to connect to broker",
  1135  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  1136  						},
  1137  					},
  1138  					"connectionBackoff": {
  1139  						SchemaProps: spec.SchemaProps{
  1140  							Description: "Backoff holds parameters applied to connection.",
  1141  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
  1142  						},
  1143  					},
  1144  					"jsonBody": {
  1145  						SchemaProps: spec.SchemaProps{
  1146  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  1147  							Type:        []string{"boolean"},
  1148  							Format:      "",
  1149  						},
  1150  					},
  1151  					"tls": {
  1152  						SchemaProps: spec.SchemaProps{
  1153  							Description: "TLS configuration for the emitter client.",
  1154  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  1155  						},
  1156  					},
  1157  					"metadata": {
  1158  						SchemaProps: spec.SchemaProps{
  1159  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  1160  							Type:        []string{"object"},
  1161  							AdditionalProperties: &spec.SchemaOrBool{
  1162  								Allows: true,
  1163  								Schema: &spec.Schema{
  1164  									SchemaProps: spec.SchemaProps{
  1165  										Default: "",
  1166  										Type:    []string{"string"},
  1167  										Format:  "",
  1168  									},
  1169  								},
  1170  							},
  1171  						},
  1172  					},
  1173  					"filter": {
  1174  						SchemaProps: spec.SchemaProps{
  1175  							Description: "Filter",
  1176  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  1177  						},
  1178  					},
  1179  				},
  1180  				Required: []string{"broker", "channelKey", "channelName"},
  1181  			},
  1182  		},
  1183  		Dependencies: []string{
  1184  			"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  1185  	}
  1186  }
  1187  
  1188  func schema_pkg_apis_eventsource_v1alpha1_EventPersistence(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1189  	return common.OpenAPIDefinition{
  1190  		Schema: spec.Schema{
  1191  			SchemaProps: spec.SchemaProps{
  1192  				Type: []string{"object"},
  1193  				Properties: map[string]spec.Schema{
  1194  					"catchup": {
  1195  						SchemaProps: spec.SchemaProps{
  1196  							Description: "Catchup enables to triggered the missed schedule when eventsource restarts",
  1197  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CatchupConfiguration"),
  1198  						},
  1199  					},
  1200  					"configMap": {
  1201  						SchemaProps: spec.SchemaProps{
  1202  							Description: "ConfigMap holds configmap details for persistence",
  1203  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ConfigMapPersistence"),
  1204  						},
  1205  					},
  1206  				},
  1207  			},
  1208  		},
  1209  		Dependencies: []string{
  1210  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CatchupConfiguration", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ConfigMapPersistence"},
  1211  	}
  1212  }
  1213  
  1214  func schema_pkg_apis_eventsource_v1alpha1_EventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1215  	return common.OpenAPIDefinition{
  1216  		Schema: spec.Schema{
  1217  			SchemaProps: spec.SchemaProps{
  1218  				Description: "EventSource is the definition of a eventsource resource",
  1219  				Type:        []string{"object"},
  1220  				Properties: map[string]spec.Schema{
  1221  					"kind": {
  1222  						SchemaProps: spec.SchemaProps{
  1223  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
  1224  							Type:        []string{"string"},
  1225  							Format:      "",
  1226  						},
  1227  					},
  1228  					"apiVersion": {
  1229  						SchemaProps: spec.SchemaProps{
  1230  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
  1231  							Type:        []string{"string"},
  1232  							Format:      "",
  1233  						},
  1234  					},
  1235  					"metadata": {
  1236  						SchemaProps: spec.SchemaProps{
  1237  							Default: map[string]interface{}{},
  1238  							Ref:     ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
  1239  						},
  1240  					},
  1241  					"spec": {
  1242  						SchemaProps: spec.SchemaProps{
  1243  							Default: map[string]interface{}{},
  1244  							Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceSpec"),
  1245  						},
  1246  					},
  1247  					"status": {
  1248  						SchemaProps: spec.SchemaProps{
  1249  							Default: map[string]interface{}{},
  1250  							Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceStatus"),
  1251  						},
  1252  					},
  1253  				},
  1254  				Required: []string{"metadata", "spec"},
  1255  			},
  1256  		},
  1257  		Dependencies: []string{
  1258  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceSpec", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
  1259  	}
  1260  }
  1261  
  1262  func schema_pkg_apis_eventsource_v1alpha1_EventSourceFilter(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1263  	return common.OpenAPIDefinition{
  1264  		Schema: spec.Schema{
  1265  			SchemaProps: spec.SchemaProps{
  1266  				Type: []string{"object"},
  1267  				Properties: map[string]spec.Schema{
  1268  					"expression": {
  1269  						SchemaProps: spec.SchemaProps{
  1270  							Type:   []string{"string"},
  1271  							Format: "",
  1272  						},
  1273  					},
  1274  				},
  1275  			},
  1276  		},
  1277  	}
  1278  }
  1279  
  1280  func schema_pkg_apis_eventsource_v1alpha1_EventSourceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1281  	return common.OpenAPIDefinition{
  1282  		Schema: spec.Schema{
  1283  			SchemaProps: spec.SchemaProps{
  1284  				Description: "EventSourceList is the list of eventsource resources",
  1285  				Type:        []string{"object"},
  1286  				Properties: map[string]spec.Schema{
  1287  					"kind": {
  1288  						SchemaProps: spec.SchemaProps{
  1289  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
  1290  							Type:        []string{"string"},
  1291  							Format:      "",
  1292  						},
  1293  					},
  1294  					"apiVersion": {
  1295  						SchemaProps: spec.SchemaProps{
  1296  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
  1297  							Type:        []string{"string"},
  1298  							Format:      "",
  1299  						},
  1300  					},
  1301  					"metadata": {
  1302  						SchemaProps: spec.SchemaProps{
  1303  							Default: map[string]interface{}{},
  1304  							Ref:     ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
  1305  						},
  1306  					},
  1307  					"items": {
  1308  						SchemaProps: spec.SchemaProps{
  1309  							Type: []string{"array"},
  1310  							Items: &spec.SchemaOrArray{
  1311  								Schema: &spec.Schema{
  1312  									SchemaProps: spec.SchemaProps{
  1313  										Default: map[string]interface{}{},
  1314  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSource"),
  1315  									},
  1316  								},
  1317  							},
  1318  						},
  1319  					},
  1320  				},
  1321  				Required: []string{"metadata", "items"},
  1322  			},
  1323  		},
  1324  		Dependencies: []string{
  1325  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
  1326  	}
  1327  }
  1328  
  1329  func schema_pkg_apis_eventsource_v1alpha1_EventSourceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1330  	return common.OpenAPIDefinition{
  1331  		Schema: spec.Schema{
  1332  			SchemaProps: spec.SchemaProps{
  1333  				Description: "EventSourceSpec refers to specification of event-source resource",
  1334  				Type:        []string{"object"},
  1335  				Properties: map[string]spec.Schema{
  1336  					"eventBusName": {
  1337  						SchemaProps: spec.SchemaProps{
  1338  							Description: "EventBusName references to a EventBus name. By default the value is \"default\"",
  1339  							Type:        []string{"string"},
  1340  							Format:      "",
  1341  						},
  1342  					},
  1343  					"template": {
  1344  						SchemaProps: spec.SchemaProps{
  1345  							Description: "Template is the pod specification for the event source",
  1346  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Template"),
  1347  						},
  1348  					},
  1349  					"service": {
  1350  						SchemaProps: spec.SchemaProps{
  1351  							Description: "Service is the specifications of the service to expose the event source",
  1352  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Service"),
  1353  						},
  1354  					},
  1355  					"minio": {
  1356  						SchemaProps: spec.SchemaProps{
  1357  							Description: "Minio event sources",
  1358  							Type:        []string{"object"},
  1359  							AdditionalProperties: &spec.SchemaOrBool{
  1360  								Allows: true,
  1361  								Schema: &spec.Schema{
  1362  									SchemaProps: spec.SchemaProps{
  1363  										Default: map[string]interface{}{},
  1364  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/common.S3Artifact"),
  1365  									},
  1366  								},
  1367  							},
  1368  						},
  1369  					},
  1370  					"calendar": {
  1371  						SchemaProps: spec.SchemaProps{
  1372  							Description: "Calendar event sources",
  1373  							Type:        []string{"object"},
  1374  							AdditionalProperties: &spec.SchemaOrBool{
  1375  								Allows: true,
  1376  								Schema: &spec.Schema{
  1377  									SchemaProps: spec.SchemaProps{
  1378  										Default: map[string]interface{}{},
  1379  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CalendarEventSource"),
  1380  									},
  1381  								},
  1382  							},
  1383  						},
  1384  					},
  1385  					"file": {
  1386  						SchemaProps: spec.SchemaProps{
  1387  							Description: "File event sources",
  1388  							Type:        []string{"object"},
  1389  							AdditionalProperties: &spec.SchemaOrBool{
  1390  								Allows: true,
  1391  								Schema: &spec.Schema{
  1392  									SchemaProps: spec.SchemaProps{
  1393  										Default: map[string]interface{}{},
  1394  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.FileEventSource"),
  1395  									},
  1396  								},
  1397  							},
  1398  						},
  1399  					},
  1400  					"resource": {
  1401  						SchemaProps: spec.SchemaProps{
  1402  							Description: "Resource event sources",
  1403  							Type:        []string{"object"},
  1404  							AdditionalProperties: &spec.SchemaOrBool{
  1405  								Allows: true,
  1406  								Schema: &spec.Schema{
  1407  									SchemaProps: spec.SchemaProps{
  1408  										Default: map[string]interface{}{},
  1409  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceEventSource"),
  1410  									},
  1411  								},
  1412  							},
  1413  						},
  1414  					},
  1415  					"webhook": {
  1416  						SchemaProps: spec.SchemaProps{
  1417  							Description: "Webhook event sources",
  1418  							Type:        []string{"object"},
  1419  							AdditionalProperties: &spec.SchemaOrBool{
  1420  								Allows: true,
  1421  								Schema: &spec.Schema{
  1422  									SchemaProps: spec.SchemaProps{
  1423  										Default: map[string]interface{}{},
  1424  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookEventSource"),
  1425  									},
  1426  								},
  1427  							},
  1428  						},
  1429  					},
  1430  					"amqp": {
  1431  						SchemaProps: spec.SchemaProps{
  1432  							Description: "AMQP event sources",
  1433  							Type:        []string{"object"},
  1434  							AdditionalProperties: &spec.SchemaOrBool{
  1435  								Allows: true,
  1436  								Schema: &spec.Schema{
  1437  									SchemaProps: spec.SchemaProps{
  1438  										Default: map[string]interface{}{},
  1439  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPEventSource"),
  1440  									},
  1441  								},
  1442  							},
  1443  						},
  1444  					},
  1445  					"kafka": {
  1446  						SchemaProps: spec.SchemaProps{
  1447  							Description: "Kafka event sources",
  1448  							Type:        []string{"object"},
  1449  							AdditionalProperties: &spec.SchemaOrBool{
  1450  								Allows: true,
  1451  								Schema: &spec.Schema{
  1452  									SchemaProps: spec.SchemaProps{
  1453  										Default: map[string]interface{}{},
  1454  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaEventSource"),
  1455  									},
  1456  								},
  1457  							},
  1458  						},
  1459  					},
  1460  					"mqtt": {
  1461  						SchemaProps: spec.SchemaProps{
  1462  							Description: "MQTT event sources",
  1463  							Type:        []string{"object"},
  1464  							AdditionalProperties: &spec.SchemaOrBool{
  1465  								Allows: true,
  1466  								Schema: &spec.Schema{
  1467  									SchemaProps: spec.SchemaProps{
  1468  										Default: map[string]interface{}{},
  1469  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.MQTTEventSource"),
  1470  									},
  1471  								},
  1472  							},
  1473  						},
  1474  					},
  1475  					"nats": {
  1476  						SchemaProps: spec.SchemaProps{
  1477  							Description: "NATS event sources",
  1478  							Type:        []string{"object"},
  1479  							AdditionalProperties: &spec.SchemaOrBool{
  1480  								Allows: true,
  1481  								Schema: &spec.Schema{
  1482  									SchemaProps: spec.SchemaProps{
  1483  										Default: map[string]interface{}{},
  1484  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSEventsSource"),
  1485  									},
  1486  								},
  1487  							},
  1488  						},
  1489  					},
  1490  					"sns": {
  1491  						SchemaProps: spec.SchemaProps{
  1492  							Description: "SNS event sources",
  1493  							Type:        []string{"object"},
  1494  							AdditionalProperties: &spec.SchemaOrBool{
  1495  								Allows: true,
  1496  								Schema: &spec.Schema{
  1497  									SchemaProps: spec.SchemaProps{
  1498  										Default: map[string]interface{}{},
  1499  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SNSEventSource"),
  1500  									},
  1501  								},
  1502  							},
  1503  						},
  1504  					},
  1505  					"sqs": {
  1506  						SchemaProps: spec.SchemaProps{
  1507  							Description: "SQS event sources",
  1508  							Type:        []string{"object"},
  1509  							AdditionalProperties: &spec.SchemaOrBool{
  1510  								Allows: true,
  1511  								Schema: &spec.Schema{
  1512  									SchemaProps: spec.SchemaProps{
  1513  										Default: map[string]interface{}{},
  1514  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SQSEventSource"),
  1515  									},
  1516  								},
  1517  							},
  1518  						},
  1519  					},
  1520  					"pubSub": {
  1521  						SchemaProps: spec.SchemaProps{
  1522  							Description: "PubSub event sources",
  1523  							Type:        []string{"object"},
  1524  							AdditionalProperties: &spec.SchemaOrBool{
  1525  								Allows: true,
  1526  								Schema: &spec.Schema{
  1527  									SchemaProps: spec.SchemaProps{
  1528  										Default: map[string]interface{}{},
  1529  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PubSubEventSource"),
  1530  									},
  1531  								},
  1532  							},
  1533  						},
  1534  					},
  1535  					"github": {
  1536  						SchemaProps: spec.SchemaProps{
  1537  							Description: "Github event sources",
  1538  							Type:        []string{"object"},
  1539  							AdditionalProperties: &spec.SchemaOrBool{
  1540  								Allows: true,
  1541  								Schema: &spec.Schema{
  1542  									SchemaProps: spec.SchemaProps{
  1543  										Default: map[string]interface{}{},
  1544  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubEventSource"),
  1545  									},
  1546  								},
  1547  							},
  1548  						},
  1549  					},
  1550  					"gitlab": {
  1551  						SchemaProps: spec.SchemaProps{
  1552  							Description: "Gitlab event sources",
  1553  							Type:        []string{"object"},
  1554  							AdditionalProperties: &spec.SchemaOrBool{
  1555  								Allows: true,
  1556  								Schema: &spec.Schema{
  1557  									SchemaProps: spec.SchemaProps{
  1558  										Default: map[string]interface{}{},
  1559  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GitlabEventSource"),
  1560  									},
  1561  								},
  1562  							},
  1563  						},
  1564  					},
  1565  					"hdfs": {
  1566  						SchemaProps: spec.SchemaProps{
  1567  							Description: "HDFS event sources",
  1568  							Type:        []string{"object"},
  1569  							AdditionalProperties: &spec.SchemaOrBool{
  1570  								Allows: true,
  1571  								Schema: &spec.Schema{
  1572  									SchemaProps: spec.SchemaProps{
  1573  										Default: map[string]interface{}{},
  1574  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.HDFSEventSource"),
  1575  									},
  1576  								},
  1577  							},
  1578  						},
  1579  					},
  1580  					"slack": {
  1581  						SchemaProps: spec.SchemaProps{
  1582  							Description: "Slack event sources",
  1583  							Type:        []string{"object"},
  1584  							AdditionalProperties: &spec.SchemaOrBool{
  1585  								Allows: true,
  1586  								Schema: &spec.Schema{
  1587  									SchemaProps: spec.SchemaProps{
  1588  										Default: map[string]interface{}{},
  1589  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SlackEventSource"),
  1590  									},
  1591  								},
  1592  							},
  1593  						},
  1594  					},
  1595  					"storageGrid": {
  1596  						SchemaProps: spec.SchemaProps{
  1597  							Description: "StorageGrid event sources",
  1598  							Type:        []string{"object"},
  1599  							AdditionalProperties: &spec.SchemaOrBool{
  1600  								Allows: true,
  1601  								Schema: &spec.Schema{
  1602  									SchemaProps: spec.SchemaProps{
  1603  										Default: map[string]interface{}{},
  1604  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridEventSource"),
  1605  									},
  1606  								},
  1607  							},
  1608  						},
  1609  					},
  1610  					"azureEventsHub": {
  1611  						SchemaProps: spec.SchemaProps{
  1612  							Description: "AzureEventsHub event sources",
  1613  							Type:        []string{"object"},
  1614  							AdditionalProperties: &spec.SchemaOrBool{
  1615  								Allows: true,
  1616  								Schema: &spec.Schema{
  1617  									SchemaProps: spec.SchemaProps{
  1618  										Default: map[string]interface{}{},
  1619  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureEventsHubEventSource"),
  1620  									},
  1621  								},
  1622  							},
  1623  						},
  1624  					},
  1625  					"stripe": {
  1626  						SchemaProps: spec.SchemaProps{
  1627  							Description: "Stripe event sources",
  1628  							Type:        []string{"object"},
  1629  							AdditionalProperties: &spec.SchemaOrBool{
  1630  								Allows: true,
  1631  								Schema: &spec.Schema{
  1632  									SchemaProps: spec.SchemaProps{
  1633  										Default: map[string]interface{}{},
  1634  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StripeEventSource"),
  1635  									},
  1636  								},
  1637  							},
  1638  						},
  1639  					},
  1640  					"emitter": {
  1641  						SchemaProps: spec.SchemaProps{
  1642  							Description: "Emitter event source",
  1643  							Type:        []string{"object"},
  1644  							AdditionalProperties: &spec.SchemaOrBool{
  1645  								Allows: true,
  1646  								Schema: &spec.Schema{
  1647  									SchemaProps: spec.SchemaProps{
  1648  										Default: map[string]interface{}{},
  1649  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EmitterEventSource"),
  1650  									},
  1651  								},
  1652  							},
  1653  						},
  1654  					},
  1655  					"redis": {
  1656  						SchemaProps: spec.SchemaProps{
  1657  							Description: "Redis event source",
  1658  							Type:        []string{"object"},
  1659  							AdditionalProperties: &spec.SchemaOrBool{
  1660  								Allows: true,
  1661  								Schema: &spec.Schema{
  1662  									SchemaProps: spec.SchemaProps{
  1663  										Default: map[string]interface{}{},
  1664  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisEventSource"),
  1665  									},
  1666  								},
  1667  							},
  1668  						},
  1669  					},
  1670  					"nsq": {
  1671  						SchemaProps: spec.SchemaProps{
  1672  							Description: "NSQ event source",
  1673  							Type:        []string{"object"},
  1674  							AdditionalProperties: &spec.SchemaOrBool{
  1675  								Allows: true,
  1676  								Schema: &spec.Schema{
  1677  									SchemaProps: spec.SchemaProps{
  1678  										Default: map[string]interface{}{},
  1679  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NSQEventSource"),
  1680  									},
  1681  								},
  1682  							},
  1683  						},
  1684  					},
  1685  					"pulsar": {
  1686  						SchemaProps: spec.SchemaProps{
  1687  							Description: "Pulsar event source",
  1688  							Type:        []string{"object"},
  1689  							AdditionalProperties: &spec.SchemaOrBool{
  1690  								Allows: true,
  1691  								Schema: &spec.Schema{
  1692  									SchemaProps: spec.SchemaProps{
  1693  										Default: map[string]interface{}{},
  1694  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PulsarEventSource"),
  1695  									},
  1696  								},
  1697  							},
  1698  						},
  1699  					},
  1700  					"generic": {
  1701  						SchemaProps: spec.SchemaProps{
  1702  							Description: "Generic event source",
  1703  							Type:        []string{"object"},
  1704  							AdditionalProperties: &spec.SchemaOrBool{
  1705  								Allows: true,
  1706  								Schema: &spec.Schema{
  1707  									SchemaProps: spec.SchemaProps{
  1708  										Default: map[string]interface{}{},
  1709  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GenericEventSource"),
  1710  									},
  1711  								},
  1712  							},
  1713  						},
  1714  					},
  1715  					"replicas": {
  1716  						SchemaProps: spec.SchemaProps{
  1717  							Description: "Replicas is the event source deployment replicas",
  1718  							Type:        []string{"integer"},
  1719  							Format:      "int32",
  1720  						},
  1721  					},
  1722  					"bitbucketserver": {
  1723  						SchemaProps: spec.SchemaProps{
  1724  							Description: "Bitbucket Server event sources",
  1725  							Type:        []string{"object"},
  1726  							AdditionalProperties: &spec.SchemaOrBool{
  1727  								Allows: true,
  1728  								Schema: &spec.Schema{
  1729  									SchemaProps: spec.SchemaProps{
  1730  										Default: map[string]interface{}{},
  1731  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketServerEventSource"),
  1732  									},
  1733  								},
  1734  							},
  1735  						},
  1736  					},
  1737  					"bitbucket": {
  1738  						SchemaProps: spec.SchemaProps{
  1739  							Description: "Bitbucket event sources",
  1740  							Type:        []string{"object"},
  1741  							AdditionalProperties: &spec.SchemaOrBool{
  1742  								Allows: true,
  1743  								Schema: &spec.Schema{
  1744  									SchemaProps: spec.SchemaProps{
  1745  										Default: map[string]interface{}{},
  1746  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketEventSource"),
  1747  									},
  1748  								},
  1749  							},
  1750  						},
  1751  					},
  1752  					"redisStream": {
  1753  						SchemaProps: spec.SchemaProps{
  1754  							Description: "Redis stream source",
  1755  							Type:        []string{"object"},
  1756  							AdditionalProperties: &spec.SchemaOrBool{
  1757  								Allows: true,
  1758  								Schema: &spec.Schema{
  1759  									SchemaProps: spec.SchemaProps{
  1760  										Default: map[string]interface{}{},
  1761  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisStreamEventSource"),
  1762  									},
  1763  								},
  1764  							},
  1765  						},
  1766  					},
  1767  					"azureServiceBus": {
  1768  						SchemaProps: spec.SchemaProps{
  1769  							Description: "Azure Service Bus event source",
  1770  							Type:        []string{"object"},
  1771  							AdditionalProperties: &spec.SchemaOrBool{
  1772  								Allows: true,
  1773  								Schema: &spec.Schema{
  1774  									SchemaProps: spec.SchemaProps{
  1775  										Default: map[string]interface{}{},
  1776  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureServiceBusEventSource"),
  1777  									},
  1778  								},
  1779  							},
  1780  						},
  1781  					},
  1782  					"azureQueueStorage": {
  1783  						SchemaProps: spec.SchemaProps{
  1784  							Description: "AzureQueueStorage event source",
  1785  							Type:        []string{"object"},
  1786  							AdditionalProperties: &spec.SchemaOrBool{
  1787  								Allows: true,
  1788  								Schema: &spec.Schema{
  1789  									SchemaProps: spec.SchemaProps{
  1790  										Default: map[string]interface{}{},
  1791  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureQueueStorageEventSource"),
  1792  									},
  1793  								},
  1794  							},
  1795  						},
  1796  					},
  1797  					"sftp": {
  1798  						SchemaProps: spec.SchemaProps{
  1799  							Description: "SFTP event sources",
  1800  							Type:        []string{"object"},
  1801  							AdditionalProperties: &spec.SchemaOrBool{
  1802  								Allows: true,
  1803  								Schema: &spec.Schema{
  1804  									SchemaProps: spec.SchemaProps{
  1805  										Default: map[string]interface{}{},
  1806  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SFTPEventSource"),
  1807  									},
  1808  								},
  1809  							},
  1810  						},
  1811  					},
  1812  					"gerrit": {
  1813  						SchemaProps: spec.SchemaProps{
  1814  							Description: "Gerrit event source",
  1815  							Type:        []string{"object"},
  1816  							AdditionalProperties: &spec.SchemaOrBool{
  1817  								Allows: true,
  1818  								Schema: &spec.Schema{
  1819  									SchemaProps: spec.SchemaProps{
  1820  										Default: map[string]interface{}{},
  1821  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GerritEventSource"),
  1822  									},
  1823  								},
  1824  							},
  1825  						},
  1826  					},
  1827  				},
  1828  			},
  1829  		},
  1830  		Dependencies: []string{
  1831  			"github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureEventsHubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureQueueStorageEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureServiceBusEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.BitbucketServerEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CalendarEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EmitterEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.FileEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GenericEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GerritEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GitlabEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.HDFSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.MQTTEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSEventsSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NSQEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PubSubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PulsarEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisStreamEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SFTPEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SNSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SQSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Service", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SlackEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StripeEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Template", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookEventSource"},
  1832  	}
  1833  }
  1834  
  1835  func schema_pkg_apis_eventsource_v1alpha1_EventSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1836  	return common.OpenAPIDefinition{
  1837  		Schema: spec.Schema{
  1838  			SchemaProps: spec.SchemaProps{
  1839  				Description: "EventSourceStatus holds the status of the event-source resource",
  1840  				Type:        []string{"object"},
  1841  				Properties: map[string]spec.Schema{
  1842  					"conditions": {
  1843  						VendorExtensible: spec.VendorExtensible{
  1844  							Extensions: spec.Extensions{
  1845  								"x-kubernetes-patch-merge-key": "type",
  1846  								"x-kubernetes-patch-strategy":  "merge",
  1847  							},
  1848  						},
  1849  						SchemaProps: spec.SchemaProps{
  1850  							Description: "Conditions are the latest available observations of a resource's current state.",
  1851  							Type:        []string{"array"},
  1852  							Items: &spec.SchemaOrArray{
  1853  								Schema: &spec.Schema{
  1854  									SchemaProps: spec.SchemaProps{
  1855  										Default: map[string]interface{}{},
  1856  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/common.Condition"),
  1857  									},
  1858  								},
  1859  							},
  1860  						},
  1861  					},
  1862  				},
  1863  			},
  1864  		},
  1865  		Dependencies: []string{
  1866  			"github.com/argoproj/argo-events/pkg/apis/common.Condition"},
  1867  	}
  1868  }
  1869  
  1870  func schema_pkg_apis_eventsource_v1alpha1_FileEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1871  	return common.OpenAPIDefinition{
  1872  		Schema: spec.Schema{
  1873  			SchemaProps: spec.SchemaProps{
  1874  				Description: "FileEventSource describes an event-source for file related events.",
  1875  				Type:        []string{"object"},
  1876  				Properties: map[string]spec.Schema{
  1877  					"eventType": {
  1878  						SchemaProps: spec.SchemaProps{
  1879  							Description: "Type of file operations to watch Refer https://github.com/fsnotify/fsnotify/blob/master/fsnotify.go for more information",
  1880  							Default:     "",
  1881  							Type:        []string{"string"},
  1882  							Format:      "",
  1883  						},
  1884  					},
  1885  					"watchPathConfig": {
  1886  						SchemaProps: spec.SchemaProps{
  1887  							Description: "WatchPathConfig contains configuration about the file path to watch",
  1888  							Default:     map[string]interface{}{},
  1889  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig"),
  1890  						},
  1891  					},
  1892  					"polling": {
  1893  						SchemaProps: spec.SchemaProps{
  1894  							Description: "Use polling instead of inotify",
  1895  							Type:        []string{"boolean"},
  1896  							Format:      "",
  1897  						},
  1898  					},
  1899  					"metadata": {
  1900  						SchemaProps: spec.SchemaProps{
  1901  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  1902  							Type:        []string{"object"},
  1903  							AdditionalProperties: &spec.SchemaOrBool{
  1904  								Allows: true,
  1905  								Schema: &spec.Schema{
  1906  									SchemaProps: spec.SchemaProps{
  1907  										Default: "",
  1908  										Type:    []string{"string"},
  1909  										Format:  "",
  1910  									},
  1911  								},
  1912  							},
  1913  						},
  1914  					},
  1915  					"filter": {
  1916  						SchemaProps: spec.SchemaProps{
  1917  							Description: "Filter",
  1918  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  1919  						},
  1920  					},
  1921  				},
  1922  				Required: []string{"eventType", "watchPathConfig"},
  1923  			},
  1924  		},
  1925  		Dependencies: []string{
  1926  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig"},
  1927  	}
  1928  }
  1929  
  1930  func schema_pkg_apis_eventsource_v1alpha1_GenericEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1931  	return common.OpenAPIDefinition{
  1932  		Schema: spec.Schema{
  1933  			SchemaProps: spec.SchemaProps{
  1934  				Description: "GenericEventSource refers to a generic event source. It can be used to implement a custom event source.",
  1935  				Type:        []string{"object"},
  1936  				Properties: map[string]spec.Schema{
  1937  					"url": {
  1938  						SchemaProps: spec.SchemaProps{
  1939  							Description: "URL of the gRPC server that implements the event source.",
  1940  							Default:     "",
  1941  							Type:        []string{"string"},
  1942  							Format:      "",
  1943  						},
  1944  					},
  1945  					"config": {
  1946  						SchemaProps: spec.SchemaProps{
  1947  							Description: "Config is the event source configuration",
  1948  							Default:     "",
  1949  							Type:        []string{"string"},
  1950  							Format:      "",
  1951  						},
  1952  					},
  1953  					"insecure": {
  1954  						SchemaProps: spec.SchemaProps{
  1955  							Description: "Insecure determines the type of connection.",
  1956  							Type:        []string{"boolean"},
  1957  							Format:      "",
  1958  						},
  1959  					},
  1960  					"jsonBody": {
  1961  						SchemaProps: spec.SchemaProps{
  1962  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  1963  							Type:        []string{"boolean"},
  1964  							Format:      "",
  1965  						},
  1966  					},
  1967  					"metadata": {
  1968  						SchemaProps: spec.SchemaProps{
  1969  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  1970  							Type:        []string{"object"},
  1971  							AdditionalProperties: &spec.SchemaOrBool{
  1972  								Allows: true,
  1973  								Schema: &spec.Schema{
  1974  									SchemaProps: spec.SchemaProps{
  1975  										Default: "",
  1976  										Type:    []string{"string"},
  1977  										Format:  "",
  1978  									},
  1979  								},
  1980  							},
  1981  						},
  1982  					},
  1983  					"authSecret": {
  1984  						SchemaProps: spec.SchemaProps{
  1985  							Description: "AuthSecret holds a secret selector that contains a bearer token for authentication",
  1986  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  1987  						},
  1988  					},
  1989  					"filter": {
  1990  						SchemaProps: spec.SchemaProps{
  1991  							Description: "Filter",
  1992  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  1993  						},
  1994  					},
  1995  				},
  1996  				Required: []string{"url", "config"},
  1997  			},
  1998  		},
  1999  		Dependencies: []string{
  2000  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  2001  	}
  2002  }
  2003  
  2004  func schema_pkg_apis_eventsource_v1alpha1_GerritEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2005  	return common.OpenAPIDefinition{
  2006  		Schema: spec.Schema{
  2007  			SchemaProps: spec.SchemaProps{
  2008  				Description: "GerritEventSource refers to event-source related to gerrit events",
  2009  				Type:        []string{"object"},
  2010  				Properties: map[string]spec.Schema{
  2011  					"webhook": {
  2012  						SchemaProps: spec.SchemaProps{
  2013  							Description: "Webhook holds configuration to run a http server",
  2014  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
  2015  						},
  2016  					},
  2017  					"hookName": {
  2018  						SchemaProps: spec.SchemaProps{
  2019  							Description: "HookName is the name of the webhook",
  2020  							Default:     "",
  2021  							Type:        []string{"string"},
  2022  							Format:      "",
  2023  						},
  2024  					},
  2025  					"events": {
  2026  						SchemaProps: spec.SchemaProps{
  2027  							Description: "Events are gerrit event to listen to. Refer https://gerrit-review.googlesource.com/Documentation/cmd-stream-events.html#events",
  2028  							Type:        []string{"array"},
  2029  							Items: &spec.SchemaOrArray{
  2030  								Schema: &spec.Schema{
  2031  									SchemaProps: spec.SchemaProps{
  2032  										Default: "",
  2033  										Type:    []string{"string"},
  2034  										Format:  "",
  2035  									},
  2036  								},
  2037  							},
  2038  						},
  2039  					},
  2040  					"auth": {
  2041  						SchemaProps: spec.SchemaProps{
  2042  							Description: "Auth hosts secret selectors for username and password",
  2043  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.BasicAuth"),
  2044  						},
  2045  					},
  2046  					"gerritBaseURL": {
  2047  						SchemaProps: spec.SchemaProps{
  2048  							Description: "GerritBaseURL is the base URL for API requests to a custom endpoint",
  2049  							Default:     "",
  2050  							Type:        []string{"string"},
  2051  							Format:      "",
  2052  						},
  2053  					},
  2054  					"deleteHookOnFinish": {
  2055  						SchemaProps: spec.SchemaProps{
  2056  							Description: "DeleteHookOnFinish determines whether to delete the Gerrit hook for the project once the event source is stopped.",
  2057  							Type:        []string{"boolean"},
  2058  							Format:      "",
  2059  						},
  2060  					},
  2061  					"metadata": {
  2062  						SchemaProps: spec.SchemaProps{
  2063  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2064  							Type:        []string{"object"},
  2065  							AdditionalProperties: &spec.SchemaOrBool{
  2066  								Allows: true,
  2067  								Schema: &spec.Schema{
  2068  									SchemaProps: spec.SchemaProps{
  2069  										Default: "",
  2070  										Type:    []string{"string"},
  2071  										Format:  "",
  2072  									},
  2073  								},
  2074  							},
  2075  						},
  2076  					},
  2077  					"projects": {
  2078  						SchemaProps: spec.SchemaProps{
  2079  							Description: "List of project namespace paths like \"whynowy/test\".",
  2080  							Type:        []string{"array"},
  2081  							Items: &spec.SchemaOrArray{
  2082  								Schema: &spec.Schema{
  2083  									SchemaProps: spec.SchemaProps{
  2084  										Default: "",
  2085  										Type:    []string{"string"},
  2086  										Format:  "",
  2087  									},
  2088  								},
  2089  							},
  2090  						},
  2091  					},
  2092  					"sslVerify": {
  2093  						SchemaProps: spec.SchemaProps{
  2094  							Description: "SslVerify to enable ssl verification",
  2095  							Type:        []string{"boolean"},
  2096  							Format:      "",
  2097  						},
  2098  					},
  2099  					"filter": {
  2100  						SchemaProps: spec.SchemaProps{
  2101  							Description: "Filter",
  2102  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  2103  						},
  2104  					},
  2105  				},
  2106  				Required: []string{"hookName", "events", "gerritBaseURL"},
  2107  			},
  2108  		},
  2109  		Dependencies: []string{
  2110  			"github.com/argoproj/argo-events/pkg/apis/common.BasicAuth", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"},
  2111  	}
  2112  }
  2113  
  2114  func schema_pkg_apis_eventsource_v1alpha1_GithubAppCreds(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2115  	return common.OpenAPIDefinition{
  2116  		Schema: spec.Schema{
  2117  			SchemaProps: spec.SchemaProps{
  2118  				Type: []string{"object"},
  2119  				Properties: map[string]spec.Schema{
  2120  					"privateKey": {
  2121  						SchemaProps: spec.SchemaProps{
  2122  							Description: "PrivateKey refers to a K8s secret containing the GitHub app private key",
  2123  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2124  						},
  2125  					},
  2126  					"appID": {
  2127  						SchemaProps: spec.SchemaProps{
  2128  							Description: "AppID refers to the GitHub App ID for the application you created",
  2129  							Default:     0,
  2130  							Type:        []string{"integer"},
  2131  							Format:      "int64",
  2132  						},
  2133  					},
  2134  					"installationID": {
  2135  						SchemaProps: spec.SchemaProps{
  2136  							Description: "InstallationID refers to the Installation ID of the GitHub app you created and installed",
  2137  							Default:     0,
  2138  							Type:        []string{"integer"},
  2139  							Format:      "int64",
  2140  						},
  2141  					},
  2142  				},
  2143  				Required: []string{"privateKey", "appID", "installationID"},
  2144  			},
  2145  		},
  2146  		Dependencies: []string{
  2147  			"k8s.io/api/core/v1.SecretKeySelector"},
  2148  	}
  2149  }
  2150  
  2151  func schema_pkg_apis_eventsource_v1alpha1_GithubEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2152  	return common.OpenAPIDefinition{
  2153  		Schema: spec.Schema{
  2154  			SchemaProps: spec.SchemaProps{
  2155  				Description: "GithubEventSource refers to event-source for github related events",
  2156  				Type:        []string{"object"},
  2157  				Properties: map[string]spec.Schema{
  2158  					"id": {
  2159  						SchemaProps: spec.SchemaProps{
  2160  							Description: "Id is the webhook's id Deprecated: This is not used at all, will be removed in v1.6",
  2161  							Default:     0,
  2162  							Type:        []string{"integer"},
  2163  							Format:      "int64",
  2164  						},
  2165  					},
  2166  					"webhook": {
  2167  						SchemaProps: spec.SchemaProps{
  2168  							Description: "Webhook refers to the configuration required to run a http server",
  2169  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
  2170  						},
  2171  					},
  2172  					"owner": {
  2173  						SchemaProps: spec.SchemaProps{
  2174  							Description: "DeprecatedOwner refers to GitHub owner name i.e. argoproj Deprecated: use Repositories instead. Will be unsupported in v 1.6",
  2175  							Default:     "",
  2176  							Type:        []string{"string"},
  2177  							Format:      "",
  2178  						},
  2179  					},
  2180  					"repository": {
  2181  						SchemaProps: spec.SchemaProps{
  2182  							Description: "DeprecatedRepository refers to GitHub repo name i.e. argo-events Deprecated: use Repositories instead. Will be unsupported in v 1.6",
  2183  							Default:     "",
  2184  							Type:        []string{"string"},
  2185  							Format:      "",
  2186  						},
  2187  					},
  2188  					"events": {
  2189  						SchemaProps: spec.SchemaProps{
  2190  							Description: "Events refer to Github events to which the event source will subscribe",
  2191  							Type:        []string{"array"},
  2192  							Items: &spec.SchemaOrArray{
  2193  								Schema: &spec.Schema{
  2194  									SchemaProps: spec.SchemaProps{
  2195  										Default: "",
  2196  										Type:    []string{"string"},
  2197  										Format:  "",
  2198  									},
  2199  								},
  2200  							},
  2201  						},
  2202  					},
  2203  					"apiToken": {
  2204  						SchemaProps: spec.SchemaProps{
  2205  							Description: "APIToken refers to a K8s secret containing github api token",
  2206  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2207  						},
  2208  					},
  2209  					"webhookSecret": {
  2210  						SchemaProps: spec.SchemaProps{
  2211  							Description: "WebhookSecret refers to K8s secret containing GitHub webhook secret https://developer.github.com/webhooks/securing/",
  2212  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2213  						},
  2214  					},
  2215  					"insecure": {
  2216  						SchemaProps: spec.SchemaProps{
  2217  							Description: "Insecure tls verification",
  2218  							Type:        []string{"boolean"},
  2219  							Format:      "",
  2220  						},
  2221  					},
  2222  					"active": {
  2223  						SchemaProps: spec.SchemaProps{
  2224  							Description: "Active refers to status of the webhook for event deliveries. https://developer.github.com/webhooks/creating/#active",
  2225  							Type:        []string{"boolean"},
  2226  							Format:      "",
  2227  						},
  2228  					},
  2229  					"contentType": {
  2230  						SchemaProps: spec.SchemaProps{
  2231  							Description: "ContentType of the event delivery",
  2232  							Type:        []string{"string"},
  2233  							Format:      "",
  2234  						},
  2235  					},
  2236  					"githubBaseURL": {
  2237  						SchemaProps: spec.SchemaProps{
  2238  							Description: "GitHub base URL (for GitHub Enterprise)",
  2239  							Type:        []string{"string"},
  2240  							Format:      "",
  2241  						},
  2242  					},
  2243  					"githubUploadURL": {
  2244  						SchemaProps: spec.SchemaProps{
  2245  							Description: "GitHub upload URL (for GitHub Enterprise)",
  2246  							Type:        []string{"string"},
  2247  							Format:      "",
  2248  						},
  2249  					},
  2250  					"deleteHookOnFinish": {
  2251  						SchemaProps: spec.SchemaProps{
  2252  							Description: "DeleteHookOnFinish determines whether to delete the GitHub hook for the repository once the event source is stopped.",
  2253  							Type:        []string{"boolean"},
  2254  							Format:      "",
  2255  						},
  2256  					},
  2257  					"metadata": {
  2258  						SchemaProps: spec.SchemaProps{
  2259  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2260  							Type:        []string{"object"},
  2261  							AdditionalProperties: &spec.SchemaOrBool{
  2262  								Allows: true,
  2263  								Schema: &spec.Schema{
  2264  									SchemaProps: spec.SchemaProps{
  2265  										Default: "",
  2266  										Type:    []string{"string"},
  2267  										Format:  "",
  2268  									},
  2269  								},
  2270  							},
  2271  						},
  2272  					},
  2273  					"repositories": {
  2274  						SchemaProps: spec.SchemaProps{
  2275  							Description: "Repositories holds the information of repositories, which uses repo owner as the key, and list of repo names as the value. Not required if Organizations is set.",
  2276  							Type:        []string{"array"},
  2277  							Items: &spec.SchemaOrArray{
  2278  								Schema: &spec.Schema{
  2279  									SchemaProps: spec.SchemaProps{
  2280  										Default: map[string]interface{}{},
  2281  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.OwnedRepositories"),
  2282  									},
  2283  								},
  2284  							},
  2285  						},
  2286  					},
  2287  					"organizations": {
  2288  						SchemaProps: spec.SchemaProps{
  2289  							Description: "Organizations holds the names of organizations (used for organization level webhooks). Not required if Repositories is set.",
  2290  							Type:        []string{"array"},
  2291  							Items: &spec.SchemaOrArray{
  2292  								Schema: &spec.Schema{
  2293  									SchemaProps: spec.SchemaProps{
  2294  										Default: "",
  2295  										Type:    []string{"string"},
  2296  										Format:  "",
  2297  									},
  2298  								},
  2299  							},
  2300  						},
  2301  					},
  2302  					"githubApp": {
  2303  						SchemaProps: spec.SchemaProps{
  2304  							Description: "GitHubApp holds the GitHub app credentials",
  2305  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubAppCreds"),
  2306  						},
  2307  					},
  2308  					"filter": {
  2309  						SchemaProps: spec.SchemaProps{
  2310  							Description: "Filter",
  2311  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  2312  						},
  2313  					},
  2314  				},
  2315  				Required: []string{"events"},
  2316  			},
  2317  		},
  2318  		Dependencies: []string{
  2319  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubAppCreds", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.OwnedRepositories", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
  2320  	}
  2321  }
  2322  
  2323  func schema_pkg_apis_eventsource_v1alpha1_GitlabEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2324  	return common.OpenAPIDefinition{
  2325  		Schema: spec.Schema{
  2326  			SchemaProps: spec.SchemaProps{
  2327  				Description: "GitlabEventSource refers to event-source related to Gitlab events",
  2328  				Type:        []string{"object"},
  2329  				Properties: map[string]spec.Schema{
  2330  					"webhook": {
  2331  						SchemaProps: spec.SchemaProps{
  2332  							Description: "Webhook holds configuration to run a http server",
  2333  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
  2334  						},
  2335  					},
  2336  					"projectID": {
  2337  						SchemaProps: spec.SchemaProps{
  2338  							Description: "DeprecatedProjectID is the id of project for which integration needs to setup Deprecated: use Projects instead. Will be unsupported in v 1.7",
  2339  							Type:        []string{"string"},
  2340  							Format:      "",
  2341  						},
  2342  					},
  2343  					"events": {
  2344  						SchemaProps: spec.SchemaProps{
  2345  							Description: "Events are gitlab event to listen to. Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794.",
  2346  							Type:        []string{"array"},
  2347  							Items: &spec.SchemaOrArray{
  2348  								Schema: &spec.Schema{
  2349  									SchemaProps: spec.SchemaProps{
  2350  										Default: "",
  2351  										Type:    []string{"string"},
  2352  										Format:  "",
  2353  									},
  2354  								},
  2355  							},
  2356  						},
  2357  					},
  2358  					"accessToken": {
  2359  						SchemaProps: spec.SchemaProps{
  2360  							Description: "AccessToken references to k8 secret which holds the gitlab api access information",
  2361  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2362  						},
  2363  					},
  2364  					"enableSSLVerification": {
  2365  						SchemaProps: spec.SchemaProps{
  2366  							Description: "EnableSSLVerification to enable ssl verification",
  2367  							Type:        []string{"boolean"},
  2368  							Format:      "",
  2369  						},
  2370  					},
  2371  					"gitlabBaseURL": {
  2372  						SchemaProps: spec.SchemaProps{
  2373  							Description: "GitlabBaseURL is the base URL for API requests to a custom endpoint",
  2374  							Default:     "",
  2375  							Type:        []string{"string"},
  2376  							Format:      "",
  2377  						},
  2378  					},
  2379  					"deleteHookOnFinish": {
  2380  						SchemaProps: spec.SchemaProps{
  2381  							Description: "DeleteHookOnFinish determines whether to delete the GitLab hook for the project once the event source is stopped.",
  2382  							Type:        []string{"boolean"},
  2383  							Format:      "",
  2384  						},
  2385  					},
  2386  					"metadata": {
  2387  						SchemaProps: spec.SchemaProps{
  2388  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2389  							Type:        []string{"object"},
  2390  							AdditionalProperties: &spec.SchemaOrBool{
  2391  								Allows: true,
  2392  								Schema: &spec.Schema{
  2393  									SchemaProps: spec.SchemaProps{
  2394  										Default: "",
  2395  										Type:    []string{"string"},
  2396  										Format:  "",
  2397  									},
  2398  								},
  2399  							},
  2400  						},
  2401  					},
  2402  					"projects": {
  2403  						SchemaProps: spec.SchemaProps{
  2404  							Description: "List of project IDs or project namespace paths like \"whynowy/test\". Projects and groups cannot be empty at the same time.",
  2405  							Type:        []string{"array"},
  2406  							Items: &spec.SchemaOrArray{
  2407  								Schema: &spec.Schema{
  2408  									SchemaProps: spec.SchemaProps{
  2409  										Default: "",
  2410  										Type:    []string{"string"},
  2411  										Format:  "",
  2412  									},
  2413  								},
  2414  							},
  2415  						},
  2416  					},
  2417  					"secretToken": {
  2418  						SchemaProps: spec.SchemaProps{
  2419  							Description: "SecretToken references to k8 secret which holds the Secret Token used by webhook config",
  2420  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2421  						},
  2422  					},
  2423  					"filter": {
  2424  						SchemaProps: spec.SchemaProps{
  2425  							Description: "Filter",
  2426  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  2427  						},
  2428  					},
  2429  					"groups": {
  2430  						SchemaProps: spec.SchemaProps{
  2431  							Description: "List of group IDs or group name like \"test\". Group level hook available in Premium and Ultimate Gitlab.",
  2432  							Type:        []string{"array"},
  2433  							Items: &spec.SchemaOrArray{
  2434  								Schema: &spec.Schema{
  2435  									SchemaProps: spec.SchemaProps{
  2436  										Default: "",
  2437  										Type:    []string{"string"},
  2438  										Format:  "",
  2439  									},
  2440  								},
  2441  							},
  2442  						},
  2443  					},
  2444  				},
  2445  				Required: []string{"events", "gitlabBaseURL"},
  2446  			},
  2447  		},
  2448  		Dependencies: []string{
  2449  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
  2450  	}
  2451  }
  2452  
  2453  func schema_pkg_apis_eventsource_v1alpha1_HDFSEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2454  	return common.OpenAPIDefinition{
  2455  		Schema: spec.Schema{
  2456  			SchemaProps: spec.SchemaProps{
  2457  				Description: "HDFSEventSource refers to event-source for HDFS related events",
  2458  				Type:        []string{"object"},
  2459  				Properties: map[string]spec.Schema{
  2460  					"directory": {
  2461  						SchemaProps: spec.SchemaProps{
  2462  							Description: "Directory to watch for events",
  2463  							Default:     "",
  2464  							Type:        []string{"string"},
  2465  							Format:      "",
  2466  						},
  2467  					},
  2468  					"path": {
  2469  						SchemaProps: spec.SchemaProps{
  2470  							Description: "Path is relative path of object to watch with respect to the directory",
  2471  							Type:        []string{"string"},
  2472  							Format:      "",
  2473  						},
  2474  					},
  2475  					"pathRegexp": {
  2476  						SchemaProps: spec.SchemaProps{
  2477  							Description: "PathRegexp is regexp of relative path of object to watch with respect to the directory",
  2478  							Type:        []string{"string"},
  2479  							Format:      "",
  2480  						},
  2481  					},
  2482  					"type": {
  2483  						SchemaProps: spec.SchemaProps{
  2484  							Description: "Type of file operations to watch",
  2485  							Default:     "",
  2486  							Type:        []string{"string"},
  2487  							Format:      "",
  2488  						},
  2489  					},
  2490  					"checkInterval": {
  2491  						SchemaProps: spec.SchemaProps{
  2492  							Description: "CheckInterval is a string that describes an interval duration to check the directory state, e.g. 1s, 30m, 2h... (defaults to 1m)",
  2493  							Type:        []string{"string"},
  2494  							Format:      "",
  2495  						},
  2496  					},
  2497  					"addresses": {
  2498  						SchemaProps: spec.SchemaProps{
  2499  							Type: []string{"array"},
  2500  							Items: &spec.SchemaOrArray{
  2501  								Schema: &spec.Schema{
  2502  									SchemaProps: spec.SchemaProps{
  2503  										Default: "",
  2504  										Type:    []string{"string"},
  2505  										Format:  "",
  2506  									},
  2507  								},
  2508  							},
  2509  						},
  2510  					},
  2511  					"hdfsUser": {
  2512  						SchemaProps: spec.SchemaProps{
  2513  							Description: "HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used.",
  2514  							Type:        []string{"string"},
  2515  							Format:      "",
  2516  						},
  2517  					},
  2518  					"krbCCacheSecret": {
  2519  						SchemaProps: spec.SchemaProps{
  2520  							Description: "KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos.",
  2521  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2522  						},
  2523  					},
  2524  					"krbKeytabSecret": {
  2525  						SchemaProps: spec.SchemaProps{
  2526  							Description: "KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos.",
  2527  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2528  						},
  2529  					},
  2530  					"krbUsername": {
  2531  						SchemaProps: spec.SchemaProps{
  2532  							Description: "KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used.",
  2533  							Type:        []string{"string"},
  2534  							Format:      "",
  2535  						},
  2536  					},
  2537  					"krbRealm": {
  2538  						SchemaProps: spec.SchemaProps{
  2539  							Description: "KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used.",
  2540  							Type:        []string{"string"},
  2541  							Format:      "",
  2542  						},
  2543  					},
  2544  					"krbConfigConfigMap": {
  2545  						SchemaProps: spec.SchemaProps{
  2546  							Description: "KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used.",
  2547  							Ref:         ref("k8s.io/api/core/v1.ConfigMapKeySelector"),
  2548  						},
  2549  					},
  2550  					"krbServicePrincipalName": {
  2551  						SchemaProps: spec.SchemaProps{
  2552  							Description: "KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used.",
  2553  							Type:        []string{"string"},
  2554  							Format:      "",
  2555  						},
  2556  					},
  2557  					"metadata": {
  2558  						SchemaProps: spec.SchemaProps{
  2559  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2560  							Type:        []string{"object"},
  2561  							AdditionalProperties: &spec.SchemaOrBool{
  2562  								Allows: true,
  2563  								Schema: &spec.Schema{
  2564  									SchemaProps: spec.SchemaProps{
  2565  										Default: "",
  2566  										Type:    []string{"string"},
  2567  										Format:  "",
  2568  									},
  2569  								},
  2570  							},
  2571  						},
  2572  					},
  2573  					"filter": {
  2574  						SchemaProps: spec.SchemaProps{
  2575  							Description: "Filter",
  2576  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  2577  						},
  2578  					},
  2579  				},
  2580  				Required: []string{"directory", "type", "addresses"},
  2581  			},
  2582  		},
  2583  		Dependencies: []string{
  2584  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.SecretKeySelector"},
  2585  	}
  2586  }
  2587  
  2588  func schema_pkg_apis_eventsource_v1alpha1_KafkaConsumerGroup(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2589  	return common.OpenAPIDefinition{
  2590  		Schema: spec.Schema{
  2591  			SchemaProps: spec.SchemaProps{
  2592  				Type: []string{"object"},
  2593  				Properties: map[string]spec.Schema{
  2594  					"groupName": {
  2595  						SchemaProps: spec.SchemaProps{
  2596  							Description: "The name for the consumer group to use",
  2597  							Default:     "",
  2598  							Type:        []string{"string"},
  2599  							Format:      "",
  2600  						},
  2601  					},
  2602  					"oldest": {
  2603  						SchemaProps: spec.SchemaProps{
  2604  							Description: "When starting up a new group do we want to start from the oldest event (true) or the newest event (false), defaults to false",
  2605  							Type:        []string{"boolean"},
  2606  							Format:      "",
  2607  						},
  2608  					},
  2609  					"rebalanceStrategy": {
  2610  						SchemaProps: spec.SchemaProps{
  2611  							Description: "Rebalance strategy can be one of: sticky, roundrobin, range. Range is the default.",
  2612  							Default:     "",
  2613  							Type:        []string{"string"},
  2614  							Format:      "",
  2615  						},
  2616  					},
  2617  				},
  2618  				Required: []string{"groupName"},
  2619  			},
  2620  		},
  2621  	}
  2622  }
  2623  
  2624  func schema_pkg_apis_eventsource_v1alpha1_KafkaEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2625  	return common.OpenAPIDefinition{
  2626  		Schema: spec.Schema{
  2627  			SchemaProps: spec.SchemaProps{
  2628  				Description: "KafkaEventSource refers to event-source for Kafka related events",
  2629  				Type:        []string{"object"},
  2630  				Properties: map[string]spec.Schema{
  2631  					"url": {
  2632  						SchemaProps: spec.SchemaProps{
  2633  							Description: "URL to kafka cluster, multiple URLs separated by comma",
  2634  							Default:     "",
  2635  							Type:        []string{"string"},
  2636  							Format:      "",
  2637  						},
  2638  					},
  2639  					"partition": {
  2640  						SchemaProps: spec.SchemaProps{
  2641  							Description: "Partition name",
  2642  							Default:     "",
  2643  							Type:        []string{"string"},
  2644  							Format:      "",
  2645  						},
  2646  					},
  2647  					"topic": {
  2648  						SchemaProps: spec.SchemaProps{
  2649  							Description: "Topic name",
  2650  							Default:     "",
  2651  							Type:        []string{"string"},
  2652  							Format:      "",
  2653  						},
  2654  					},
  2655  					"connectionBackoff": {
  2656  						SchemaProps: spec.SchemaProps{
  2657  							Description: "Backoff holds parameters applied to connection.",
  2658  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
  2659  						},
  2660  					},
  2661  					"tls": {
  2662  						SchemaProps: spec.SchemaProps{
  2663  							Description: "TLS configuration for the kafka client.",
  2664  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  2665  						},
  2666  					},
  2667  					"jsonBody": {
  2668  						SchemaProps: spec.SchemaProps{
  2669  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  2670  							Type:        []string{"boolean"},
  2671  							Format:      "",
  2672  						},
  2673  					},
  2674  					"metadata": {
  2675  						SchemaProps: spec.SchemaProps{
  2676  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2677  							Type:        []string{"object"},
  2678  							AdditionalProperties: &spec.SchemaOrBool{
  2679  								Allows: true,
  2680  								Schema: &spec.Schema{
  2681  									SchemaProps: spec.SchemaProps{
  2682  										Default: "",
  2683  										Type:    []string{"string"},
  2684  										Format:  "",
  2685  									},
  2686  								},
  2687  							},
  2688  						},
  2689  					},
  2690  					"consumerGroup": {
  2691  						SchemaProps: spec.SchemaProps{
  2692  							Description: "Consumer group for kafka client",
  2693  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaConsumerGroup"),
  2694  						},
  2695  					},
  2696  					"limitEventsPerSecond": {
  2697  						SchemaProps: spec.SchemaProps{
  2698  							Description: "Sets a limit on how many events get read from kafka per second.",
  2699  							Type:        []string{"integer"},
  2700  							Format:      "int64",
  2701  						},
  2702  					},
  2703  					"version": {
  2704  						SchemaProps: spec.SchemaProps{
  2705  							Description: "Specify what kafka version is being connected to enables certain features in sarama, defaults to 1.0.0",
  2706  							Default:     "",
  2707  							Type:        []string{"string"},
  2708  							Format:      "",
  2709  						},
  2710  					},
  2711  					"sasl": {
  2712  						SchemaProps: spec.SchemaProps{
  2713  							Description: "SASL configuration for the kafka client",
  2714  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.SASLConfig"),
  2715  						},
  2716  					},
  2717  					"filter": {
  2718  						SchemaProps: spec.SchemaProps{
  2719  							Description: "Filter",
  2720  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  2721  						},
  2722  					},
  2723  					"config": {
  2724  						SchemaProps: spec.SchemaProps{
  2725  							Description: "Yaml format Sarama config for Kafka connection. It follows the struct of sarama.Config. See https://github.com/IBM/sarama/blob/main/config.go e.g.\n\nconsumer:\n  fetch:\n    min: 1\nnet:\n  MaxOpenRequests: 5",
  2726  							Type:        []string{"string"},
  2727  							Format:      "",
  2728  						},
  2729  					},
  2730  				},
  2731  				Required: []string{"url", "topic"},
  2732  			},
  2733  		},
  2734  		Dependencies: []string{
  2735  			"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.SASLConfig", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaConsumerGroup"},
  2736  	}
  2737  }
  2738  
  2739  func schema_pkg_apis_eventsource_v1alpha1_MQTTEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2740  	return common.OpenAPIDefinition{
  2741  		Schema: spec.Schema{
  2742  			SchemaProps: spec.SchemaProps{
  2743  				Description: "MQTTEventSource refers to event-source for MQTT related events",
  2744  				Type:        []string{"object"},
  2745  				Properties: map[string]spec.Schema{
  2746  					"url": {
  2747  						SchemaProps: spec.SchemaProps{
  2748  							Description: "URL to connect to broker",
  2749  							Default:     "",
  2750  							Type:        []string{"string"},
  2751  							Format:      "",
  2752  						},
  2753  					},
  2754  					"topic": {
  2755  						SchemaProps: spec.SchemaProps{
  2756  							Description: "Topic name",
  2757  							Default:     "",
  2758  							Type:        []string{"string"},
  2759  							Format:      "",
  2760  						},
  2761  					},
  2762  					"clientId": {
  2763  						SchemaProps: spec.SchemaProps{
  2764  							Description: "ClientID is the id of the client",
  2765  							Default:     "",
  2766  							Type:        []string{"string"},
  2767  							Format:      "",
  2768  						},
  2769  					},
  2770  					"connectionBackoff": {
  2771  						SchemaProps: spec.SchemaProps{
  2772  							Description: "ConnectionBackoff holds backoff applied to connection.",
  2773  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
  2774  						},
  2775  					},
  2776  					"jsonBody": {
  2777  						SchemaProps: spec.SchemaProps{
  2778  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  2779  							Type:        []string{"boolean"},
  2780  							Format:      "",
  2781  						},
  2782  					},
  2783  					"tls": {
  2784  						SchemaProps: spec.SchemaProps{
  2785  							Description: "TLS configuration for the mqtt client.",
  2786  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  2787  						},
  2788  					},
  2789  					"metadata": {
  2790  						SchemaProps: spec.SchemaProps{
  2791  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2792  							Type:        []string{"object"},
  2793  							AdditionalProperties: &spec.SchemaOrBool{
  2794  								Allows: true,
  2795  								Schema: &spec.Schema{
  2796  									SchemaProps: spec.SchemaProps{
  2797  										Default: "",
  2798  										Type:    []string{"string"},
  2799  										Format:  "",
  2800  									},
  2801  								},
  2802  							},
  2803  						},
  2804  					},
  2805  					"filter": {
  2806  						SchemaProps: spec.SchemaProps{
  2807  							Description: "Filter",
  2808  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  2809  						},
  2810  					},
  2811  					"auth": {
  2812  						SchemaProps: spec.SchemaProps{
  2813  							Description: "Auth hosts secret selectors for username and password",
  2814  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.BasicAuth"),
  2815  						},
  2816  					},
  2817  				},
  2818  				Required: []string{"url", "topic", "clientId"},
  2819  			},
  2820  		},
  2821  		Dependencies: []string{
  2822  			"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.BasicAuth", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"},
  2823  	}
  2824  }
  2825  
  2826  func schema_pkg_apis_eventsource_v1alpha1_NATSAuth(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2827  	return common.OpenAPIDefinition{
  2828  		Schema: spec.Schema{
  2829  			SchemaProps: spec.SchemaProps{
  2830  				Description: "NATSAuth refers to the auth info for NATS EventSource",
  2831  				Type:        []string{"object"},
  2832  				Properties: map[string]spec.Schema{
  2833  					"basic": {
  2834  						SchemaProps: spec.SchemaProps{
  2835  							Description: "Baisc auth with username and password",
  2836  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.BasicAuth"),
  2837  						},
  2838  					},
  2839  					"token": {
  2840  						SchemaProps: spec.SchemaProps{
  2841  							Description: "Token used to connect",
  2842  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2843  						},
  2844  					},
  2845  					"nkey": {
  2846  						SchemaProps: spec.SchemaProps{
  2847  							Description: "NKey used to connect",
  2848  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2849  						},
  2850  					},
  2851  					"credential": {
  2852  						SchemaProps: spec.SchemaProps{
  2853  							Description: "credential used to connect",
  2854  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  2855  						},
  2856  					},
  2857  				},
  2858  			},
  2859  		},
  2860  		Dependencies: []string{
  2861  			"github.com/argoproj/argo-events/pkg/apis/common.BasicAuth", "k8s.io/api/core/v1.SecretKeySelector"},
  2862  	}
  2863  }
  2864  
  2865  func schema_pkg_apis_eventsource_v1alpha1_NATSEventsSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2866  	return common.OpenAPIDefinition{
  2867  		Schema: spec.Schema{
  2868  			SchemaProps: spec.SchemaProps{
  2869  				Description: "NATSEventsSource refers to event-source for NATS related events",
  2870  				Type:        []string{"object"},
  2871  				Properties: map[string]spec.Schema{
  2872  					"url": {
  2873  						SchemaProps: spec.SchemaProps{
  2874  							Description: "URL to connect to NATS cluster",
  2875  							Default:     "",
  2876  							Type:        []string{"string"},
  2877  							Format:      "",
  2878  						},
  2879  					},
  2880  					"subject": {
  2881  						SchemaProps: spec.SchemaProps{
  2882  							Description: "Subject holds the name of the subject onto which messages are published",
  2883  							Default:     "",
  2884  							Type:        []string{"string"},
  2885  							Format:      "",
  2886  						},
  2887  					},
  2888  					"connectionBackoff": {
  2889  						SchemaProps: spec.SchemaProps{
  2890  							Description: "ConnectionBackoff holds backoff applied to connection.",
  2891  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
  2892  						},
  2893  					},
  2894  					"jsonBody": {
  2895  						SchemaProps: spec.SchemaProps{
  2896  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  2897  							Type:        []string{"boolean"},
  2898  							Format:      "",
  2899  						},
  2900  					},
  2901  					"tls": {
  2902  						SchemaProps: spec.SchemaProps{
  2903  							Description: "TLS configuration for the nats client.",
  2904  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  2905  						},
  2906  					},
  2907  					"metadata": {
  2908  						SchemaProps: spec.SchemaProps{
  2909  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2910  							Type:        []string{"object"},
  2911  							AdditionalProperties: &spec.SchemaOrBool{
  2912  								Allows: true,
  2913  								Schema: &spec.Schema{
  2914  									SchemaProps: spec.SchemaProps{
  2915  										Default: "",
  2916  										Type:    []string{"string"},
  2917  										Format:  "",
  2918  									},
  2919  								},
  2920  							},
  2921  						},
  2922  					},
  2923  					"auth": {
  2924  						SchemaProps: spec.SchemaProps{
  2925  							Description: "Auth information",
  2926  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSAuth"),
  2927  						},
  2928  					},
  2929  					"filter": {
  2930  						SchemaProps: spec.SchemaProps{
  2931  							Description: "Filter",
  2932  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  2933  						},
  2934  					},
  2935  				},
  2936  				Required: []string{"url", "subject"},
  2937  			},
  2938  		},
  2939  		Dependencies: []string{
  2940  			"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSAuth"},
  2941  	}
  2942  }
  2943  
  2944  func schema_pkg_apis_eventsource_v1alpha1_NSQEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  2945  	return common.OpenAPIDefinition{
  2946  		Schema: spec.Schema{
  2947  			SchemaProps: spec.SchemaProps{
  2948  				Description: "NSQEventSource describes the event source for NSQ PubSub More info at https://godoc.org/github.com/nsqio/go-nsq",
  2949  				Type:        []string{"object"},
  2950  				Properties: map[string]spec.Schema{
  2951  					"hostAddress": {
  2952  						SchemaProps: spec.SchemaProps{
  2953  							Description: "HostAddress is the address of the host for NSQ lookup",
  2954  							Default:     "",
  2955  							Type:        []string{"string"},
  2956  							Format:      "",
  2957  						},
  2958  					},
  2959  					"topic": {
  2960  						SchemaProps: spec.SchemaProps{
  2961  							Description: "Topic to subscribe to.",
  2962  							Default:     "",
  2963  							Type:        []string{"string"},
  2964  							Format:      "",
  2965  						},
  2966  					},
  2967  					"channel": {
  2968  						SchemaProps: spec.SchemaProps{
  2969  							Description: "Channel used for subscription",
  2970  							Default:     "",
  2971  							Type:        []string{"string"},
  2972  							Format:      "",
  2973  						},
  2974  					},
  2975  					"connectionBackoff": {
  2976  						SchemaProps: spec.SchemaProps{
  2977  							Description: "Backoff holds parameters applied to connection.",
  2978  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
  2979  						},
  2980  					},
  2981  					"jsonBody": {
  2982  						SchemaProps: spec.SchemaProps{
  2983  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  2984  							Type:        []string{"boolean"},
  2985  							Format:      "",
  2986  						},
  2987  					},
  2988  					"tls": {
  2989  						SchemaProps: spec.SchemaProps{
  2990  							Description: "TLS configuration for the nsq client.",
  2991  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  2992  						},
  2993  					},
  2994  					"metadata": {
  2995  						SchemaProps: spec.SchemaProps{
  2996  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  2997  							Type:        []string{"object"},
  2998  							AdditionalProperties: &spec.SchemaOrBool{
  2999  								Allows: true,
  3000  								Schema: &spec.Schema{
  3001  									SchemaProps: spec.SchemaProps{
  3002  										Default: "",
  3003  										Type:    []string{"string"},
  3004  										Format:  "",
  3005  									},
  3006  								},
  3007  							},
  3008  						},
  3009  					},
  3010  					"filter": {
  3011  						SchemaProps: spec.SchemaProps{
  3012  							Description: "Filter",
  3013  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3014  						},
  3015  					},
  3016  				},
  3017  				Required: []string{"hostAddress", "topic", "channel"},
  3018  			},
  3019  		},
  3020  		Dependencies: []string{
  3021  			"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"},
  3022  	}
  3023  }
  3024  
  3025  func schema_pkg_apis_eventsource_v1alpha1_OwnedRepositories(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3026  	return common.OpenAPIDefinition{
  3027  		Schema: spec.Schema{
  3028  			SchemaProps: spec.SchemaProps{
  3029  				Type: []string{"object"},
  3030  				Properties: map[string]spec.Schema{
  3031  					"owner": {
  3032  						SchemaProps: spec.SchemaProps{
  3033  							Description: "Organization or user name",
  3034  							Type:        []string{"string"},
  3035  							Format:      "",
  3036  						},
  3037  					},
  3038  					"names": {
  3039  						SchemaProps: spec.SchemaProps{
  3040  							Description: "Repository names",
  3041  							Type:        []string{"array"},
  3042  							Items: &spec.SchemaOrArray{
  3043  								Schema: &spec.Schema{
  3044  									SchemaProps: spec.SchemaProps{
  3045  										Default: "",
  3046  										Type:    []string{"string"},
  3047  										Format:  "",
  3048  									},
  3049  								},
  3050  							},
  3051  						},
  3052  					},
  3053  				},
  3054  			},
  3055  		},
  3056  	}
  3057  }
  3058  
  3059  func schema_pkg_apis_eventsource_v1alpha1_PubSubEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3060  	return common.OpenAPIDefinition{
  3061  		Schema: spec.Schema{
  3062  			SchemaProps: spec.SchemaProps{
  3063  				Description: "PubSubEventSource refers to event-source for GCP PubSub related events.",
  3064  				Type:        []string{"object"},
  3065  				Properties: map[string]spec.Schema{
  3066  					"projectID": {
  3067  						SchemaProps: spec.SchemaProps{
  3068  							Description: "ProjectID is GCP project ID for the subscription. Required if you run Argo Events outside of GKE/GCE. (otherwise, the default value is its project)",
  3069  							Default:     "",
  3070  							Type:        []string{"string"},
  3071  							Format:      "",
  3072  						},
  3073  					},
  3074  					"topicProjectID": {
  3075  						SchemaProps: spec.SchemaProps{
  3076  							Description: "TopicProjectID is GCP project ID for the topic. By default, it is same as ProjectID.",
  3077  							Default:     "",
  3078  							Type:        []string{"string"},
  3079  							Format:      "",
  3080  						},
  3081  					},
  3082  					"topic": {
  3083  						SchemaProps: spec.SchemaProps{
  3084  							Description: "Topic to which the subscription should belongs. Required if you want the eventsource to create a new subscription. If you specify this field along with an existing subscription, it will be verified whether it actually belongs to the specified topic.",
  3085  							Default:     "",
  3086  							Type:        []string{"string"},
  3087  							Format:      "",
  3088  						},
  3089  					},
  3090  					"subscriptionID": {
  3091  						SchemaProps: spec.SchemaProps{
  3092  							Description: "SubscriptionID is ID of subscription. Required if you use existing subscription. The default value will be auto generated hash based on this eventsource setting, so the subscription might be recreated every time you update the setting, which has a possibility of event loss.",
  3093  							Default:     "",
  3094  							Type:        []string{"string"},
  3095  							Format:      "",
  3096  						},
  3097  					},
  3098  					"credentialSecret": {
  3099  						SchemaProps: spec.SchemaProps{
  3100  							Description: "CredentialSecret references to the secret that contains JSON credentials to access GCP. If it is missing, it implicitly uses Workload Identity to access. https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity",
  3101  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3102  						},
  3103  					},
  3104  					"deleteSubscriptionOnFinish": {
  3105  						SchemaProps: spec.SchemaProps{
  3106  							Description: "DeleteSubscriptionOnFinish determines whether to delete the GCP PubSub subscription once the event source is stopped.",
  3107  							Type:        []string{"boolean"},
  3108  							Format:      "",
  3109  						},
  3110  					},
  3111  					"jsonBody": {
  3112  						SchemaProps: spec.SchemaProps{
  3113  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  3114  							Type:        []string{"boolean"},
  3115  							Format:      "",
  3116  						},
  3117  					},
  3118  					"metadata": {
  3119  						SchemaProps: spec.SchemaProps{
  3120  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3121  							Type:        []string{"object"},
  3122  							AdditionalProperties: &spec.SchemaOrBool{
  3123  								Allows: true,
  3124  								Schema: &spec.Schema{
  3125  									SchemaProps: spec.SchemaProps{
  3126  										Default: "",
  3127  										Type:    []string{"string"},
  3128  										Format:  "",
  3129  									},
  3130  								},
  3131  							},
  3132  						},
  3133  					},
  3134  					"filter": {
  3135  						SchemaProps: spec.SchemaProps{
  3136  							Description: "Filter",
  3137  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3138  						},
  3139  					},
  3140  				},
  3141  			},
  3142  		},
  3143  		Dependencies: []string{
  3144  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  3145  	}
  3146  }
  3147  
  3148  func schema_pkg_apis_eventsource_v1alpha1_PulsarEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3149  	return common.OpenAPIDefinition{
  3150  		Schema: spec.Schema{
  3151  			SchemaProps: spec.SchemaProps{
  3152  				Description: "PulsarEventSource describes the event source for Apache Pulsar",
  3153  				Type:        []string{"object"},
  3154  				Properties: map[string]spec.Schema{
  3155  					"topics": {
  3156  						SchemaProps: spec.SchemaProps{
  3157  							Description: "Name of the topics to subscribe to.",
  3158  							Type:        []string{"array"},
  3159  							Items: &spec.SchemaOrArray{
  3160  								Schema: &spec.Schema{
  3161  									SchemaProps: spec.SchemaProps{
  3162  										Default: "",
  3163  										Type:    []string{"string"},
  3164  										Format:  "",
  3165  									},
  3166  								},
  3167  							},
  3168  						},
  3169  					},
  3170  					"type": {
  3171  						SchemaProps: spec.SchemaProps{
  3172  							Description: "Type of the subscription. Only \"exclusive\" and \"shared\" is supported. Defaults to exclusive.",
  3173  							Type:        []string{"string"},
  3174  							Format:      "",
  3175  						},
  3176  					},
  3177  					"url": {
  3178  						SchemaProps: spec.SchemaProps{
  3179  							Description: "Configure the service URL for the Pulsar service.",
  3180  							Default:     "",
  3181  							Type:        []string{"string"},
  3182  							Format:      "",
  3183  						},
  3184  					},
  3185  					"tlsTrustCertsSecret": {
  3186  						SchemaProps: spec.SchemaProps{
  3187  							Description: "Trusted TLS certificate secret.",
  3188  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3189  						},
  3190  					},
  3191  					"tlsAllowInsecureConnection": {
  3192  						SchemaProps: spec.SchemaProps{
  3193  							Description: "Whether the Pulsar client accept untrusted TLS certificate from broker.",
  3194  							Type:        []string{"boolean"},
  3195  							Format:      "",
  3196  						},
  3197  					},
  3198  					"tlsValidateHostname": {
  3199  						SchemaProps: spec.SchemaProps{
  3200  							Description: "Whether the Pulsar client verify the validity of the host name from broker.",
  3201  							Type:        []string{"boolean"},
  3202  							Format:      "",
  3203  						},
  3204  					},
  3205  					"tls": {
  3206  						SchemaProps: spec.SchemaProps{
  3207  							Description: "TLS configuration for the pulsar client.",
  3208  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  3209  						},
  3210  					},
  3211  					"connectionBackoff": {
  3212  						SchemaProps: spec.SchemaProps{
  3213  							Description: "Backoff holds parameters applied to connection.",
  3214  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
  3215  						},
  3216  					},
  3217  					"jsonBody": {
  3218  						SchemaProps: spec.SchemaProps{
  3219  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  3220  							Type:        []string{"boolean"},
  3221  							Format:      "",
  3222  						},
  3223  					},
  3224  					"metadata": {
  3225  						SchemaProps: spec.SchemaProps{
  3226  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3227  							Type:        []string{"object"},
  3228  							AdditionalProperties: &spec.SchemaOrBool{
  3229  								Allows: true,
  3230  								Schema: &spec.Schema{
  3231  									SchemaProps: spec.SchemaProps{
  3232  										Default: "",
  3233  										Type:    []string{"string"},
  3234  										Format:  "",
  3235  									},
  3236  								},
  3237  							},
  3238  						},
  3239  					},
  3240  					"authTokenSecret": {
  3241  						SchemaProps: spec.SchemaProps{
  3242  							Description: "Authentication token for the pulsar client. Either token or athenz can be set to use auth.",
  3243  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3244  						},
  3245  					},
  3246  					"filter": {
  3247  						SchemaProps: spec.SchemaProps{
  3248  							Description: "Filter",
  3249  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3250  						},
  3251  					},
  3252  					"authAthenzParams": {
  3253  						SchemaProps: spec.SchemaProps{
  3254  							Description: "Authentication athenz parameters for the pulsar client. Refer https://github.com/apache/pulsar-client-go/blob/master/pulsar/auth/athenz.go Either token or athenz can be set to use auth.",
  3255  							Type:        []string{"object"},
  3256  							AdditionalProperties: &spec.SchemaOrBool{
  3257  								Allows: true,
  3258  								Schema: &spec.Schema{
  3259  									SchemaProps: spec.SchemaProps{
  3260  										Default: "",
  3261  										Type:    []string{"string"},
  3262  										Format:  "",
  3263  									},
  3264  								},
  3265  							},
  3266  						},
  3267  					},
  3268  					"authAthenzSecret": {
  3269  						SchemaProps: spec.SchemaProps{
  3270  							Description: "Authentication athenz privateKey secret for the pulsar client. AuthAthenzSecret must be set if AuthAthenzParams is used.",
  3271  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3272  						},
  3273  					},
  3274  				},
  3275  				Required: []string{"topics", "url"},
  3276  			},
  3277  		},
  3278  		Dependencies: []string{
  3279  			"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  3280  	}
  3281  }
  3282  
  3283  func schema_pkg_apis_eventsource_v1alpha1_RedisEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3284  	return common.OpenAPIDefinition{
  3285  		Schema: spec.Schema{
  3286  			SchemaProps: spec.SchemaProps{
  3287  				Description: "RedisEventSource describes an event source for the Redis PubSub. More info at https://godoc.org/github.com/go-redis/redis#example-PubSub",
  3288  				Type:        []string{"object"},
  3289  				Properties: map[string]spec.Schema{
  3290  					"hostAddress": {
  3291  						SchemaProps: spec.SchemaProps{
  3292  							Description: "HostAddress refers to the address of the Redis host/server",
  3293  							Default:     "",
  3294  							Type:        []string{"string"},
  3295  							Format:      "",
  3296  						},
  3297  					},
  3298  					"password": {
  3299  						SchemaProps: spec.SchemaProps{
  3300  							Description: "Password required for authentication if any.",
  3301  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3302  						},
  3303  					},
  3304  					"namespace": {
  3305  						SchemaProps: spec.SchemaProps{
  3306  							Description: "Namespace to use to retrieve the password from. It should only be specified if password is declared",
  3307  							Type:        []string{"string"},
  3308  							Format:      "",
  3309  						},
  3310  					},
  3311  					"db": {
  3312  						SchemaProps: spec.SchemaProps{
  3313  							Description: "DB to use. If not specified, default DB 0 will be used.",
  3314  							Type:        []string{"integer"},
  3315  							Format:      "int32",
  3316  						},
  3317  					},
  3318  					"channels": {
  3319  						SchemaProps: spec.SchemaProps{
  3320  							Type: []string{"array"},
  3321  							Items: &spec.SchemaOrArray{
  3322  								Schema: &spec.Schema{
  3323  									SchemaProps: spec.SchemaProps{
  3324  										Default: "",
  3325  										Type:    []string{"string"},
  3326  										Format:  "",
  3327  									},
  3328  								},
  3329  							},
  3330  						},
  3331  					},
  3332  					"tls": {
  3333  						SchemaProps: spec.SchemaProps{
  3334  							Description: "TLS configuration for the redis client.",
  3335  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  3336  						},
  3337  					},
  3338  					"metadata": {
  3339  						SchemaProps: spec.SchemaProps{
  3340  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3341  							Type:        []string{"object"},
  3342  							AdditionalProperties: &spec.SchemaOrBool{
  3343  								Allows: true,
  3344  								Schema: &spec.Schema{
  3345  									SchemaProps: spec.SchemaProps{
  3346  										Default: "",
  3347  										Type:    []string{"string"},
  3348  										Format:  "",
  3349  									},
  3350  								},
  3351  							},
  3352  						},
  3353  					},
  3354  					"filter": {
  3355  						SchemaProps: spec.SchemaProps{
  3356  							Description: "Filter",
  3357  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3358  						},
  3359  					},
  3360  					"jsonBody": {
  3361  						SchemaProps: spec.SchemaProps{
  3362  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  3363  							Type:        []string{"boolean"},
  3364  							Format:      "",
  3365  						},
  3366  					},
  3367  					"username": {
  3368  						SchemaProps: spec.SchemaProps{
  3369  							Description: "Username required for ACL style authentication if any.",
  3370  							Type:        []string{"string"},
  3371  							Format:      "",
  3372  						},
  3373  					},
  3374  				},
  3375  				Required: []string{"hostAddress", "channels"},
  3376  			},
  3377  		},
  3378  		Dependencies: []string{
  3379  			"github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  3380  	}
  3381  }
  3382  
  3383  func schema_pkg_apis_eventsource_v1alpha1_RedisStreamEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3384  	return common.OpenAPIDefinition{
  3385  		Schema: spec.Schema{
  3386  			SchemaProps: spec.SchemaProps{
  3387  				Description: "RedisStreamEventSource describes an event source for Redis streams (https://redis.io/topics/streams-intro)",
  3388  				Type:        []string{"object"},
  3389  				Properties: map[string]spec.Schema{
  3390  					"hostAddress": {
  3391  						SchemaProps: spec.SchemaProps{
  3392  							Description: "HostAddress refers to the address of the Redis host/server (master instance)",
  3393  							Default:     "",
  3394  							Type:        []string{"string"},
  3395  							Format:      "",
  3396  						},
  3397  					},
  3398  					"password": {
  3399  						SchemaProps: spec.SchemaProps{
  3400  							Description: "Password required for authentication if any.",
  3401  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3402  						},
  3403  					},
  3404  					"db": {
  3405  						SchemaProps: spec.SchemaProps{
  3406  							Description: "DB to use. If not specified, default DB 0 will be used.",
  3407  							Type:        []string{"integer"},
  3408  							Format:      "int32",
  3409  						},
  3410  					},
  3411  					"streams": {
  3412  						SchemaProps: spec.SchemaProps{
  3413  							Description: "Streams to look for entries. XREADGROUP is used on all streams using a single consumer group.",
  3414  							Type:        []string{"array"},
  3415  							Items: &spec.SchemaOrArray{
  3416  								Schema: &spec.Schema{
  3417  									SchemaProps: spec.SchemaProps{
  3418  										Default: "",
  3419  										Type:    []string{"string"},
  3420  										Format:  "",
  3421  									},
  3422  								},
  3423  							},
  3424  						},
  3425  					},
  3426  					"maxMsgCountPerRead": {
  3427  						SchemaProps: spec.SchemaProps{
  3428  							Description: "MaxMsgCountPerRead holds the maximum number of messages per stream that will be read in each XREADGROUP of all streams Example: if there are 2 streams and MaxMsgCountPerRead=10, then each XREADGROUP may read upto a total of 20 messages. Same as COUNT option in XREADGROUP(https://redis.io/topics/streams-intro). Defaults to 10",
  3429  							Type:        []string{"integer"},
  3430  							Format:      "int32",
  3431  						},
  3432  					},
  3433  					"consumerGroup": {
  3434  						SchemaProps: spec.SchemaProps{
  3435  							Description: "ConsumerGroup refers to the Redis stream consumer group that will be created on all redis streams. Messages are read through this group. Defaults to 'argo-events-cg'",
  3436  							Type:        []string{"string"},
  3437  							Format:      "",
  3438  						},
  3439  					},
  3440  					"tls": {
  3441  						SchemaProps: spec.SchemaProps{
  3442  							Description: "TLS configuration for the redis client.",
  3443  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
  3444  						},
  3445  					},
  3446  					"metadata": {
  3447  						SchemaProps: spec.SchemaProps{
  3448  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3449  							Type:        []string{"object"},
  3450  							AdditionalProperties: &spec.SchemaOrBool{
  3451  								Allows: true,
  3452  								Schema: &spec.Schema{
  3453  									SchemaProps: spec.SchemaProps{
  3454  										Default: "",
  3455  										Type:    []string{"string"},
  3456  										Format:  "",
  3457  									},
  3458  								},
  3459  							},
  3460  						},
  3461  					},
  3462  					"filter": {
  3463  						SchemaProps: spec.SchemaProps{
  3464  							Description: "Filter",
  3465  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3466  						},
  3467  					},
  3468  					"username": {
  3469  						SchemaProps: spec.SchemaProps{
  3470  							Description: "Username required for ACL style authentication if any.",
  3471  							Type:        []string{"string"},
  3472  							Format:      "",
  3473  						},
  3474  					},
  3475  				},
  3476  				Required: []string{"hostAddress", "streams"},
  3477  			},
  3478  		},
  3479  		Dependencies: []string{
  3480  			"github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  3481  	}
  3482  }
  3483  
  3484  func schema_pkg_apis_eventsource_v1alpha1_ResourceEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3485  	return common.OpenAPIDefinition{
  3486  		Schema: spec.Schema{
  3487  			SchemaProps: spec.SchemaProps{
  3488  				Description: "ResourceEventSource refers to a event-source for K8s resource related events.",
  3489  				Type:        []string{"object"},
  3490  				Properties: map[string]spec.Schema{
  3491  					"namespace": {
  3492  						SchemaProps: spec.SchemaProps{
  3493  							Description: "Namespace where resource is deployed",
  3494  							Default:     "",
  3495  							Type:        []string{"string"},
  3496  							Format:      "",
  3497  						},
  3498  					},
  3499  					"filter": {
  3500  						SchemaProps: spec.SchemaProps{
  3501  							Description: "Filter is applied on the metadata of the resource If you apply filter, then the internal event informer will only monitor objects that pass the filter.",
  3502  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceFilter"),
  3503  						},
  3504  					},
  3505  					"group": {
  3506  						SchemaProps: spec.SchemaProps{
  3507  							Default: "",
  3508  							Type:    []string{"string"},
  3509  							Format:  "",
  3510  						},
  3511  					},
  3512  					"version": {
  3513  						SchemaProps: spec.SchemaProps{
  3514  							Default: "",
  3515  							Type:    []string{"string"},
  3516  							Format:  "",
  3517  						},
  3518  					},
  3519  					"resource": {
  3520  						SchemaProps: spec.SchemaProps{
  3521  							Default: "",
  3522  							Type:    []string{"string"},
  3523  							Format:  "",
  3524  						},
  3525  					},
  3526  					"eventTypes": {
  3527  						SchemaProps: spec.SchemaProps{
  3528  							Description: "EventTypes is the list of event type to watch. Possible values are - ADD, UPDATE and DELETE.",
  3529  							Type:        []string{"array"},
  3530  							Items: &spec.SchemaOrArray{
  3531  								Schema: &spec.Schema{
  3532  									SchemaProps: spec.SchemaProps{
  3533  										Default: "",
  3534  										Type:    []string{"string"},
  3535  										Format:  "",
  3536  									},
  3537  								},
  3538  							},
  3539  						},
  3540  					},
  3541  					"metadata": {
  3542  						SchemaProps: spec.SchemaProps{
  3543  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3544  							Type:        []string{"object"},
  3545  							AdditionalProperties: &spec.SchemaOrBool{
  3546  								Allows: true,
  3547  								Schema: &spec.Schema{
  3548  									SchemaProps: spec.SchemaProps{
  3549  										Default: "",
  3550  										Type:    []string{"string"},
  3551  										Format:  "",
  3552  									},
  3553  								},
  3554  							},
  3555  						},
  3556  					},
  3557  				},
  3558  				Required: []string{"namespace", "group", "version", "resource", "eventTypes"},
  3559  			},
  3560  		},
  3561  		Dependencies: []string{
  3562  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceFilter"},
  3563  	}
  3564  }
  3565  
  3566  func schema_pkg_apis_eventsource_v1alpha1_ResourceFilter(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3567  	return common.OpenAPIDefinition{
  3568  		Schema: spec.Schema{
  3569  			SchemaProps: spec.SchemaProps{
  3570  				Description: "ResourceFilter contains K8s ObjectMeta information to further filter resource event objects",
  3571  				Type:        []string{"object"},
  3572  				Properties: map[string]spec.Schema{
  3573  					"prefix": {
  3574  						SchemaProps: spec.SchemaProps{
  3575  							Description: "Prefix filter is applied on the resource name.",
  3576  							Type:        []string{"string"},
  3577  							Format:      "",
  3578  						},
  3579  					},
  3580  					"labels": {
  3581  						SchemaProps: spec.SchemaProps{
  3582  							Description: "Labels provide listing options to K8s API to watch resource/s. Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/label-selectors/ for more info. Unlike K8s field selector, multiple values are passed as comma separated values instead of list of values. Eg: value: value1,value2. Same as K8s label selector, operator \"=\", \"==\", \"!=\", \"exists\", \"!\", \"notin\", \"in\", \"gt\" and \"lt\" are supported",
  3583  							Type:        []string{"array"},
  3584  							Items: &spec.SchemaOrArray{
  3585  								Schema: &spec.Schema{
  3586  									SchemaProps: spec.SchemaProps{
  3587  										Default: map[string]interface{}{},
  3588  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Selector"),
  3589  									},
  3590  								},
  3591  							},
  3592  						},
  3593  					},
  3594  					"fields": {
  3595  						SchemaProps: spec.SchemaProps{
  3596  							Description: "Fields provide field filters similar to K8s field selector (see https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/). Unlike K8s field selector, it supports arbitrary fileds like \"spec.serviceAccountName\", and the value could be a string or a regex. Same as K8s field selector, operator \"=\", \"==\" and \"!=\" are supported.",
  3597  							Type:        []string{"array"},
  3598  							Items: &spec.SchemaOrArray{
  3599  								Schema: &spec.Schema{
  3600  									SchemaProps: spec.SchemaProps{
  3601  										Default: map[string]interface{}{},
  3602  										Ref:     ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Selector"),
  3603  									},
  3604  								},
  3605  							},
  3606  						},
  3607  					},
  3608  					"createdBy": {
  3609  						SchemaProps: spec.SchemaProps{
  3610  							Description: "If resource is created before the specified time then the event is treated as valid.",
  3611  							Default:     map[string]interface{}{},
  3612  							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
  3613  						},
  3614  					},
  3615  					"afterStart": {
  3616  						SchemaProps: spec.SchemaProps{
  3617  							Description: "If the resource is created after the start time then the event is treated as valid.",
  3618  							Type:        []string{"boolean"},
  3619  							Format:      "",
  3620  						},
  3621  					},
  3622  				},
  3623  			},
  3624  		},
  3625  		Dependencies: []string{
  3626  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Selector", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
  3627  	}
  3628  }
  3629  
  3630  func schema_pkg_apis_eventsource_v1alpha1_SFTPEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3631  	return common.OpenAPIDefinition{
  3632  		Schema: spec.Schema{
  3633  			SchemaProps: spec.SchemaProps{
  3634  				Description: "SFTPEventSource describes an event-source for sftp related events.",
  3635  				Type:        []string{"object"},
  3636  				Properties: map[string]spec.Schema{
  3637  					"eventType": {
  3638  						SchemaProps: spec.SchemaProps{
  3639  							Description: "Type of file operations to watch Refer https://github.com/fsnotify/fsnotify/blob/master/fsnotify.go for more information",
  3640  							Default:     "",
  3641  							Type:        []string{"string"},
  3642  							Format:      "",
  3643  						},
  3644  					},
  3645  					"watchPathConfig": {
  3646  						SchemaProps: spec.SchemaProps{
  3647  							Description: "WatchPathConfig contains configuration about the file path to watch",
  3648  							Default:     map[string]interface{}{},
  3649  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig"),
  3650  						},
  3651  					},
  3652  					"username": {
  3653  						SchemaProps: spec.SchemaProps{
  3654  							Description: "Username required for authentication if any.",
  3655  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3656  						},
  3657  					},
  3658  					"password": {
  3659  						SchemaProps: spec.SchemaProps{
  3660  							Description: "Password required for authentication if any.",
  3661  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3662  						},
  3663  					},
  3664  					"sshKeySecret": {
  3665  						SchemaProps: spec.SchemaProps{
  3666  							Description: "SSHKeySecret refers to the secret that contains SSH key",
  3667  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3668  						},
  3669  					},
  3670  					"address": {
  3671  						SchemaProps: spec.SchemaProps{
  3672  							Description: "Address sftp address.",
  3673  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3674  						},
  3675  					},
  3676  					"metadata": {
  3677  						SchemaProps: spec.SchemaProps{
  3678  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3679  							Type:        []string{"object"},
  3680  							AdditionalProperties: &spec.SchemaOrBool{
  3681  								Allows: true,
  3682  								Schema: &spec.Schema{
  3683  									SchemaProps: spec.SchemaProps{
  3684  										Default: "",
  3685  										Type:    []string{"string"},
  3686  										Format:  "",
  3687  									},
  3688  								},
  3689  							},
  3690  						},
  3691  					},
  3692  					"filter": {
  3693  						SchemaProps: spec.SchemaProps{
  3694  							Description: "Filter",
  3695  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3696  						},
  3697  					},
  3698  					"pollIntervalDuration": {
  3699  						SchemaProps: spec.SchemaProps{
  3700  							Description: "PollIntervalDuration the interval at which to poll the SFTP server defaults to 10 seconds",
  3701  							Default:     "",
  3702  							Type:        []string{"string"},
  3703  							Format:      "",
  3704  						},
  3705  					},
  3706  				},
  3707  				Required: []string{"eventType", "watchPathConfig"},
  3708  			},
  3709  		},
  3710  		Dependencies: []string{
  3711  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig", "k8s.io/api/core/v1.SecretKeySelector"},
  3712  	}
  3713  }
  3714  
  3715  func schema_pkg_apis_eventsource_v1alpha1_SNSEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3716  	return common.OpenAPIDefinition{
  3717  		Schema: spec.Schema{
  3718  			SchemaProps: spec.SchemaProps{
  3719  				Description: "SNSEventSource refers to event-source for AWS SNS related events",
  3720  				Type:        []string{"object"},
  3721  				Properties: map[string]spec.Schema{
  3722  					"webhook": {
  3723  						SchemaProps: spec.SchemaProps{
  3724  							Description: "Webhook configuration for http server",
  3725  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
  3726  						},
  3727  					},
  3728  					"topicArn": {
  3729  						SchemaProps: spec.SchemaProps{
  3730  							Description: "TopicArn",
  3731  							Default:     "",
  3732  							Type:        []string{"string"},
  3733  							Format:      "",
  3734  						},
  3735  					},
  3736  					"accessKey": {
  3737  						SchemaProps: spec.SchemaProps{
  3738  							Description: "AccessKey refers K8s secret containing aws access key",
  3739  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3740  						},
  3741  					},
  3742  					"secretKey": {
  3743  						SchemaProps: spec.SchemaProps{
  3744  							Description: "SecretKey refers K8s secret containing aws secret key",
  3745  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3746  						},
  3747  					},
  3748  					"region": {
  3749  						SchemaProps: spec.SchemaProps{
  3750  							Description: "Region is AWS region",
  3751  							Default:     "",
  3752  							Type:        []string{"string"},
  3753  							Format:      "",
  3754  						},
  3755  					},
  3756  					"roleARN": {
  3757  						SchemaProps: spec.SchemaProps{
  3758  							Description: "RoleARN is the Amazon Resource Name (ARN) of the role to assume.",
  3759  							Type:        []string{"string"},
  3760  							Format:      "",
  3761  						},
  3762  					},
  3763  					"metadata": {
  3764  						SchemaProps: spec.SchemaProps{
  3765  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3766  							Type:        []string{"object"},
  3767  							AdditionalProperties: &spec.SchemaOrBool{
  3768  								Allows: true,
  3769  								Schema: &spec.Schema{
  3770  									SchemaProps: spec.SchemaProps{
  3771  										Default: "",
  3772  										Type:    []string{"string"},
  3773  										Format:  "",
  3774  									},
  3775  								},
  3776  							},
  3777  						},
  3778  					},
  3779  					"validateSignature": {
  3780  						SchemaProps: spec.SchemaProps{
  3781  							Description: "ValidateSignature is boolean that can be set to true for SNS signature verification",
  3782  							Type:        []string{"boolean"},
  3783  							Format:      "",
  3784  						},
  3785  					},
  3786  					"filter": {
  3787  						SchemaProps: spec.SchemaProps{
  3788  							Description: "Filter",
  3789  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3790  						},
  3791  					},
  3792  					"endpoint": {
  3793  						SchemaProps: spec.SchemaProps{
  3794  							Description: "Endpoint configures connection to a specific SNS endpoint instead of Amazons servers",
  3795  							Default:     "",
  3796  							Type:        []string{"string"},
  3797  							Format:      "",
  3798  						},
  3799  					},
  3800  				},
  3801  				Required: []string{"topicArn", "region"},
  3802  			},
  3803  		},
  3804  		Dependencies: []string{
  3805  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
  3806  	}
  3807  }
  3808  
  3809  func schema_pkg_apis_eventsource_v1alpha1_SQSEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3810  	return common.OpenAPIDefinition{
  3811  		Schema: spec.Schema{
  3812  			SchemaProps: spec.SchemaProps{
  3813  				Description: "SQSEventSource refers to event-source for AWS SQS related events",
  3814  				Type:        []string{"object"},
  3815  				Properties: map[string]spec.Schema{
  3816  					"accessKey": {
  3817  						SchemaProps: spec.SchemaProps{
  3818  							Description: "AccessKey refers K8s secret containing aws access key",
  3819  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3820  						},
  3821  					},
  3822  					"secretKey": {
  3823  						SchemaProps: spec.SchemaProps{
  3824  							Description: "SecretKey refers K8s secret containing aws secret key",
  3825  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3826  						},
  3827  					},
  3828  					"region": {
  3829  						SchemaProps: spec.SchemaProps{
  3830  							Description: "Region is AWS region",
  3831  							Default:     "",
  3832  							Type:        []string{"string"},
  3833  							Format:      "",
  3834  						},
  3835  					},
  3836  					"queue": {
  3837  						SchemaProps: spec.SchemaProps{
  3838  							Description: "Queue is AWS SQS queue to listen to for messages",
  3839  							Default:     "",
  3840  							Type:        []string{"string"},
  3841  							Format:      "",
  3842  						},
  3843  					},
  3844  					"waitTimeSeconds": {
  3845  						SchemaProps: spec.SchemaProps{
  3846  							Description: "WaitTimeSeconds is The duration (in seconds) for which the call waits for a message to arrive in the queue before returning.",
  3847  							Default:     0,
  3848  							Type:        []string{"integer"},
  3849  							Format:      "int64",
  3850  						},
  3851  					},
  3852  					"roleARN": {
  3853  						SchemaProps: spec.SchemaProps{
  3854  							Description: "RoleARN is the Amazon Resource Name (ARN) of the role to assume.",
  3855  							Type:        []string{"string"},
  3856  							Format:      "",
  3857  						},
  3858  					},
  3859  					"jsonBody": {
  3860  						SchemaProps: spec.SchemaProps{
  3861  							Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
  3862  							Type:        []string{"boolean"},
  3863  							Format:      "",
  3864  						},
  3865  					},
  3866  					"queueAccountId": {
  3867  						SchemaProps: spec.SchemaProps{
  3868  							Description: "QueueAccountID is the ID of the account that created the queue to monitor",
  3869  							Type:        []string{"string"},
  3870  							Format:      "",
  3871  						},
  3872  					},
  3873  					"metadata": {
  3874  						SchemaProps: spec.SchemaProps{
  3875  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  3876  							Type:        []string{"object"},
  3877  							AdditionalProperties: &spec.SchemaOrBool{
  3878  								Allows: true,
  3879  								Schema: &spec.Schema{
  3880  									SchemaProps: spec.SchemaProps{
  3881  										Default: "",
  3882  										Type:    []string{"string"},
  3883  										Format:  "",
  3884  									},
  3885  								},
  3886  							},
  3887  						},
  3888  					},
  3889  					"dlq": {
  3890  						SchemaProps: spec.SchemaProps{
  3891  							Description: "DLQ specifies if a dead-letter queue is configured for messages that can't be processed successfully. If set to true, messages with invalid payload won't be acknowledged to allow to forward them farther to the dead-letter queue. The default value is false.",
  3892  							Type:        []string{"boolean"},
  3893  							Format:      "",
  3894  						},
  3895  					},
  3896  					"filter": {
  3897  						SchemaProps: spec.SchemaProps{
  3898  							Description: "Filter",
  3899  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  3900  						},
  3901  					},
  3902  					"endpoint": {
  3903  						SchemaProps: spec.SchemaProps{
  3904  							Description: "Endpoint configures connection to a specific SQS endpoint instead of Amazons servers",
  3905  							Default:     "",
  3906  							Type:        []string{"string"},
  3907  							Format:      "",
  3908  						},
  3909  					},
  3910  					"sessionToken": {
  3911  						SchemaProps: spec.SchemaProps{
  3912  							Description: "SessionToken refers to K8s secret containing AWS temporary credentials(STS) session token",
  3913  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  3914  						},
  3915  					},
  3916  				},
  3917  				Required: []string{"region", "queue", "waitTimeSeconds"},
  3918  			},
  3919  		},
  3920  		Dependencies: []string{
  3921  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  3922  	}
  3923  }
  3924  
  3925  func schema_pkg_apis_eventsource_v1alpha1_Selector(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3926  	return common.OpenAPIDefinition{
  3927  		Schema: spec.Schema{
  3928  			SchemaProps: spec.SchemaProps{
  3929  				Description: "Selector represents conditional operation to select K8s objects.",
  3930  				Type:        []string{"object"},
  3931  				Properties: map[string]spec.Schema{
  3932  					"key": {
  3933  						SchemaProps: spec.SchemaProps{
  3934  							Description: "Key name",
  3935  							Default:     "",
  3936  							Type:        []string{"string"},
  3937  							Format:      "",
  3938  						},
  3939  					},
  3940  					"operation": {
  3941  						SchemaProps: spec.SchemaProps{
  3942  							Description: "Supported operations like ==, != etc. Defaults to ==. Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors for more info.",
  3943  							Type:        []string{"string"},
  3944  							Format:      "",
  3945  						},
  3946  					},
  3947  					"value": {
  3948  						SchemaProps: spec.SchemaProps{
  3949  							Description: "Value",
  3950  							Default:     "",
  3951  							Type:        []string{"string"},
  3952  							Format:      "",
  3953  						},
  3954  					},
  3955  				},
  3956  				Required: []string{"key", "value"},
  3957  			},
  3958  		},
  3959  	}
  3960  }
  3961  
  3962  func schema_pkg_apis_eventsource_v1alpha1_Service(ref common.ReferenceCallback) common.OpenAPIDefinition {
  3963  	return common.OpenAPIDefinition{
  3964  		Schema: spec.Schema{
  3965  			SchemaProps: spec.SchemaProps{
  3966  				Description: "Service holds the service information eventsource exposes",
  3967  				Type:        []string{"object"},
  3968  				Properties: map[string]spec.Schema{
  3969  					"ports": {
  3970  						VendorExtensible: spec.VendorExtensible{
  3971  							Extensions: spec.Extensions{
  3972  								"x-kubernetes-list-map-keys": []interface{}{
  3973  									"port",
  3974  									"protocol",
  3975  								},
  3976  								"x-kubernetes-list-type":       "map",
  3977  								"x-kubernetes-patch-merge-key": "port",
  3978  								"x-kubernetes-patch-strategy":  "merge",
  3979  							},
  3980  						},
  3981  						SchemaProps: spec.SchemaProps{
  3982  							Description: "The list of ports that are exposed by this ClusterIP service.",
  3983  							Type:        []string{"array"},
  3984  							Items: &spec.SchemaOrArray{
  3985  								Schema: &spec.Schema{
  3986  									SchemaProps: spec.SchemaProps{
  3987  										Default: map[string]interface{}{},
  3988  										Ref:     ref("k8s.io/api/core/v1.ServicePort"),
  3989  									},
  3990  								},
  3991  							},
  3992  						},
  3993  					},
  3994  					"clusterIP": {
  3995  						SchemaProps: spec.SchemaProps{
  3996  							Description: "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
  3997  							Type:        []string{"string"},
  3998  							Format:      "",
  3999  						},
  4000  					},
  4001  				},
  4002  			},
  4003  		},
  4004  		Dependencies: []string{
  4005  			"k8s.io/api/core/v1.ServicePort"},
  4006  	}
  4007  }
  4008  
  4009  func schema_pkg_apis_eventsource_v1alpha1_SlackEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4010  	return common.OpenAPIDefinition{
  4011  		Schema: spec.Schema{
  4012  			SchemaProps: spec.SchemaProps{
  4013  				Description: "SlackEventSource refers to event-source for Slack related events",
  4014  				Type:        []string{"object"},
  4015  				Properties: map[string]spec.Schema{
  4016  					"signingSecret": {
  4017  						SchemaProps: spec.SchemaProps{
  4018  							Description: "Slack App signing secret",
  4019  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4020  						},
  4021  					},
  4022  					"token": {
  4023  						SchemaProps: spec.SchemaProps{
  4024  							Description: "Token for URL verification handshake",
  4025  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4026  						},
  4027  					},
  4028  					"webhook": {
  4029  						SchemaProps: spec.SchemaProps{
  4030  							Description: "Webhook holds configuration for a REST endpoint",
  4031  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
  4032  						},
  4033  					},
  4034  					"metadata": {
  4035  						SchemaProps: spec.SchemaProps{
  4036  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  4037  							Type:        []string{"object"},
  4038  							AdditionalProperties: &spec.SchemaOrBool{
  4039  								Allows: true,
  4040  								Schema: &spec.Schema{
  4041  									SchemaProps: spec.SchemaProps{
  4042  										Default: "",
  4043  										Type:    []string{"string"},
  4044  										Format:  "",
  4045  									},
  4046  								},
  4047  							},
  4048  						},
  4049  					},
  4050  					"filter": {
  4051  						SchemaProps: spec.SchemaProps{
  4052  							Description: "Filter",
  4053  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  4054  						},
  4055  					},
  4056  				},
  4057  			},
  4058  		},
  4059  		Dependencies: []string{
  4060  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
  4061  	}
  4062  }
  4063  
  4064  func schema_pkg_apis_eventsource_v1alpha1_StorageGridEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4065  	return common.OpenAPIDefinition{
  4066  		Schema: spec.Schema{
  4067  			SchemaProps: spec.SchemaProps{
  4068  				Description: "StorageGridEventSource refers to event-source for StorageGrid related events",
  4069  				Type:        []string{"object"},
  4070  				Properties: map[string]spec.Schema{
  4071  					"webhook": {
  4072  						SchemaProps: spec.SchemaProps{
  4073  							Description: "Webhook holds configuration for a REST endpoint",
  4074  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
  4075  						},
  4076  					},
  4077  					"events": {
  4078  						SchemaProps: spec.SchemaProps{
  4079  							Type: []string{"array"},
  4080  							Items: &spec.SchemaOrArray{
  4081  								Schema: &spec.Schema{
  4082  									SchemaProps: spec.SchemaProps{
  4083  										Default: "",
  4084  										Type:    []string{"string"},
  4085  										Format:  "",
  4086  									},
  4087  								},
  4088  							},
  4089  						},
  4090  					},
  4091  					"filter": {
  4092  						SchemaProps: spec.SchemaProps{
  4093  							Description: "Filter on object key which caused the notification.",
  4094  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridFilter"),
  4095  						},
  4096  					},
  4097  					"topicArn": {
  4098  						SchemaProps: spec.SchemaProps{
  4099  							Description: "TopicArn",
  4100  							Default:     "",
  4101  							Type:        []string{"string"},
  4102  							Format:      "",
  4103  						},
  4104  					},
  4105  					"bucket": {
  4106  						SchemaProps: spec.SchemaProps{
  4107  							Description: "Name of the bucket to register notifications for.",
  4108  							Default:     "",
  4109  							Type:        []string{"string"},
  4110  							Format:      "",
  4111  						},
  4112  					},
  4113  					"region": {
  4114  						SchemaProps: spec.SchemaProps{
  4115  							Description: "S3 region. Defaults to us-east-1",
  4116  							Type:        []string{"string"},
  4117  							Format:      "",
  4118  						},
  4119  					},
  4120  					"authToken": {
  4121  						SchemaProps: spec.SchemaProps{
  4122  							Description: "Auth token for storagegrid api",
  4123  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4124  						},
  4125  					},
  4126  					"apiURL": {
  4127  						SchemaProps: spec.SchemaProps{
  4128  							Description: "APIURL is the url of the storagegrid api.",
  4129  							Default:     "",
  4130  							Type:        []string{"string"},
  4131  							Format:      "",
  4132  						},
  4133  					},
  4134  					"metadata": {
  4135  						SchemaProps: spec.SchemaProps{
  4136  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  4137  							Type:        []string{"object"},
  4138  							AdditionalProperties: &spec.SchemaOrBool{
  4139  								Allows: true,
  4140  								Schema: &spec.Schema{
  4141  									SchemaProps: spec.SchemaProps{
  4142  										Default: "",
  4143  										Type:    []string{"string"},
  4144  										Format:  "",
  4145  									},
  4146  								},
  4147  							},
  4148  						},
  4149  					},
  4150  				},
  4151  				Required: []string{"topicArn", "bucket", "authToken", "apiURL"},
  4152  			},
  4153  		},
  4154  		Dependencies: []string{
  4155  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
  4156  	}
  4157  }
  4158  
  4159  func schema_pkg_apis_eventsource_v1alpha1_StorageGridFilter(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4160  	return common.OpenAPIDefinition{
  4161  		Schema: spec.Schema{
  4162  			SchemaProps: spec.SchemaProps{
  4163  				Description: "StorageGridFilter represents filters to apply to bucket notifications for specifying constraints on objects",
  4164  				Type:        []string{"object"},
  4165  				Properties: map[string]spec.Schema{
  4166  					"prefix": {
  4167  						SchemaProps: spec.SchemaProps{
  4168  							Default: "",
  4169  							Type:    []string{"string"},
  4170  							Format:  "",
  4171  						},
  4172  					},
  4173  					"suffix": {
  4174  						SchemaProps: spec.SchemaProps{
  4175  							Default: "",
  4176  							Type:    []string{"string"},
  4177  							Format:  "",
  4178  						},
  4179  					},
  4180  				},
  4181  				Required: []string{"prefix", "suffix"},
  4182  			},
  4183  		},
  4184  	}
  4185  }
  4186  
  4187  func schema_pkg_apis_eventsource_v1alpha1_StripeEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4188  	return common.OpenAPIDefinition{
  4189  		Schema: spec.Schema{
  4190  			SchemaProps: spec.SchemaProps{
  4191  				Description: "StripeEventSource describes the event source for stripe webhook notifications More info at https://stripe.com/docs/webhooks",
  4192  				Type:        []string{"object"},
  4193  				Properties: map[string]spec.Schema{
  4194  					"webhook": {
  4195  						SchemaProps: spec.SchemaProps{
  4196  							Description: "Webhook holds configuration for a REST endpoint",
  4197  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
  4198  						},
  4199  					},
  4200  					"createWebhook": {
  4201  						SchemaProps: spec.SchemaProps{
  4202  							Description: "CreateWebhook if specified creates a new webhook programmatically.",
  4203  							Type:        []string{"boolean"},
  4204  							Format:      "",
  4205  						},
  4206  					},
  4207  					"apiKey": {
  4208  						SchemaProps: spec.SchemaProps{
  4209  							Description: "APIKey refers to K8s secret that holds Stripe API key. Used only if CreateWebhook is enabled.",
  4210  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4211  						},
  4212  					},
  4213  					"eventFilter": {
  4214  						SchemaProps: spec.SchemaProps{
  4215  							Description: "EventFilter describes the type of events to listen to. If not specified, all types of events will be processed. More info at https://stripe.com/docs/api/events/list",
  4216  							Type:        []string{"array"},
  4217  							Items: &spec.SchemaOrArray{
  4218  								Schema: &spec.Schema{
  4219  									SchemaProps: spec.SchemaProps{
  4220  										Default: "",
  4221  										Type:    []string{"string"},
  4222  										Format:  "",
  4223  									},
  4224  								},
  4225  							},
  4226  						},
  4227  					},
  4228  					"metadata": {
  4229  						SchemaProps: spec.SchemaProps{
  4230  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  4231  							Type:        []string{"object"},
  4232  							AdditionalProperties: &spec.SchemaOrBool{
  4233  								Allows: true,
  4234  								Schema: &spec.Schema{
  4235  									SchemaProps: spec.SchemaProps{
  4236  										Default: "",
  4237  										Type:    []string{"string"},
  4238  										Format:  "",
  4239  									},
  4240  								},
  4241  							},
  4242  						},
  4243  					},
  4244  				},
  4245  			},
  4246  		},
  4247  		Dependencies: []string{
  4248  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
  4249  	}
  4250  }
  4251  
  4252  func schema_pkg_apis_eventsource_v1alpha1_Template(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4253  	return common.OpenAPIDefinition{
  4254  		Schema: spec.Schema{
  4255  			SchemaProps: spec.SchemaProps{
  4256  				Description: "Template holds the information of an EventSource deployment template",
  4257  				Type:        []string{"object"},
  4258  				Properties: map[string]spec.Schema{
  4259  					"metadata": {
  4260  						SchemaProps: spec.SchemaProps{
  4261  							Description: "Metadata sets the pods's metadata, i.e. annotations and labels",
  4262  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/common.Metadata"),
  4263  						},
  4264  					},
  4265  					"serviceAccountName": {
  4266  						SchemaProps: spec.SchemaProps{
  4267  							Description: "ServiceAccountName is the name of the ServiceAccount to use to run event source pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/",
  4268  							Type:        []string{"string"},
  4269  							Format:      "",
  4270  						},
  4271  					},
  4272  					"container": {
  4273  						SchemaProps: spec.SchemaProps{
  4274  							Description: "Container is the main container image to run in the event source pod",
  4275  							Ref:         ref("k8s.io/api/core/v1.Container"),
  4276  						},
  4277  					},
  4278  					"volumes": {
  4279  						VendorExtensible: spec.VendorExtensible{
  4280  							Extensions: spec.Extensions{
  4281  								"x-kubernetes-patch-merge-key": "name",
  4282  								"x-kubernetes-patch-strategy":  "merge",
  4283  							},
  4284  						},
  4285  						SchemaProps: spec.SchemaProps{
  4286  							Description: "Volumes is a list of volumes that can be mounted by containers in an eventsource.",
  4287  							Type:        []string{"array"},
  4288  							Items: &spec.SchemaOrArray{
  4289  								Schema: &spec.Schema{
  4290  									SchemaProps: spec.SchemaProps{
  4291  										Default: map[string]interface{}{},
  4292  										Ref:     ref("k8s.io/api/core/v1.Volume"),
  4293  									},
  4294  								},
  4295  							},
  4296  						},
  4297  					},
  4298  					"securityContext": {
  4299  						SchemaProps: spec.SchemaProps{
  4300  							Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty.  See type description for default values of each field.",
  4301  							Ref:         ref("k8s.io/api/core/v1.PodSecurityContext"),
  4302  						},
  4303  					},
  4304  					"affinity": {
  4305  						SchemaProps: spec.SchemaProps{
  4306  							Description: "If specified, the pod's scheduling constraints",
  4307  							Ref:         ref("k8s.io/api/core/v1.Affinity"),
  4308  						},
  4309  					},
  4310  					"tolerations": {
  4311  						SchemaProps: spec.SchemaProps{
  4312  							Description: "If specified, the pod's tolerations.",
  4313  							Type:        []string{"array"},
  4314  							Items: &spec.SchemaOrArray{
  4315  								Schema: &spec.Schema{
  4316  									SchemaProps: spec.SchemaProps{
  4317  										Default: map[string]interface{}{},
  4318  										Ref:     ref("k8s.io/api/core/v1.Toleration"),
  4319  									},
  4320  								},
  4321  							},
  4322  						},
  4323  					},
  4324  					"nodeSelector": {
  4325  						SchemaProps: spec.SchemaProps{
  4326  							Description: "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/",
  4327  							Type:        []string{"object"},
  4328  							AdditionalProperties: &spec.SchemaOrBool{
  4329  								Allows: true,
  4330  								Schema: &spec.Schema{
  4331  									SchemaProps: spec.SchemaProps{
  4332  										Default: "",
  4333  										Type:    []string{"string"},
  4334  										Format:  "",
  4335  									},
  4336  								},
  4337  							},
  4338  						},
  4339  					},
  4340  					"imagePullSecrets": {
  4341  						VendorExtensible: spec.VendorExtensible{
  4342  							Extensions: spec.Extensions{
  4343  								"x-kubernetes-patch-merge-key": "name",
  4344  								"x-kubernetes-patch-strategy":  "merge",
  4345  							},
  4346  						},
  4347  						SchemaProps: spec.SchemaProps{
  4348  							Description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod",
  4349  							Type:        []string{"array"},
  4350  							Items: &spec.SchemaOrArray{
  4351  								Schema: &spec.Schema{
  4352  									SchemaProps: spec.SchemaProps{
  4353  										Default: map[string]interface{}{},
  4354  										Ref:     ref("k8s.io/api/core/v1.LocalObjectReference"),
  4355  									},
  4356  								},
  4357  							},
  4358  						},
  4359  					},
  4360  					"priorityClassName": {
  4361  						SchemaProps: spec.SchemaProps{
  4362  							Description: "If specified, indicates the EventSource pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/",
  4363  							Type:        []string{"string"},
  4364  							Format:      "",
  4365  						},
  4366  					},
  4367  					"priority": {
  4368  						SchemaProps: spec.SchemaProps{
  4369  							Description: "The priority value. Various system components use this field to find the priority of the EventSource pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. More info: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/",
  4370  							Type:        []string{"integer"},
  4371  							Format:      "int32",
  4372  						},
  4373  					},
  4374  				},
  4375  			},
  4376  		},
  4377  		Dependencies: []string{
  4378  			"github.com/argoproj/argo-events/pkg/apis/common.Metadata", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.Volume"},
  4379  	}
  4380  }
  4381  
  4382  func schema_pkg_apis_eventsource_v1alpha1_WatchPathConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4383  	return common.OpenAPIDefinition{
  4384  		Schema: spec.Schema{
  4385  			SchemaProps: spec.SchemaProps{
  4386  				Type: []string{"object"},
  4387  				Properties: map[string]spec.Schema{
  4388  					"directory": {
  4389  						SchemaProps: spec.SchemaProps{
  4390  							Description: "Directory to watch for events",
  4391  							Default:     "",
  4392  							Type:        []string{"string"},
  4393  							Format:      "",
  4394  						},
  4395  					},
  4396  					"path": {
  4397  						SchemaProps: spec.SchemaProps{
  4398  							Description: "Path is relative path of object to watch with respect to the directory",
  4399  							Type:        []string{"string"},
  4400  							Format:      "",
  4401  						},
  4402  					},
  4403  					"pathRegexp": {
  4404  						SchemaProps: spec.SchemaProps{
  4405  							Description: "PathRegexp is regexp of relative path of object to watch with respect to the directory",
  4406  							Type:        []string{"string"},
  4407  							Format:      "",
  4408  						},
  4409  					},
  4410  				},
  4411  				Required: []string{"directory"},
  4412  			},
  4413  		},
  4414  	}
  4415  }
  4416  
  4417  func schema_pkg_apis_eventsource_v1alpha1_WebhookContext(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4418  	return common.OpenAPIDefinition{
  4419  		Schema: spec.Schema{
  4420  			SchemaProps: spec.SchemaProps{
  4421  				Description: "WebhookContext holds a general purpose REST API context",
  4422  				Type:        []string{"object"},
  4423  				Properties: map[string]spec.Schema{
  4424  					"endpoint": {
  4425  						SchemaProps: spec.SchemaProps{
  4426  							Description: "REST API endpoint",
  4427  							Default:     "",
  4428  							Type:        []string{"string"},
  4429  							Format:      "",
  4430  						},
  4431  					},
  4432  					"method": {
  4433  						SchemaProps: spec.SchemaProps{
  4434  							Description: "Method is HTTP request method that indicates the desired action to be performed for a given resource. See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content",
  4435  							Default:     "",
  4436  							Type:        []string{"string"},
  4437  							Format:      "",
  4438  						},
  4439  					},
  4440  					"port": {
  4441  						SchemaProps: spec.SchemaProps{
  4442  							Description: "Port on which HTTP server is listening for incoming events.",
  4443  							Default:     "",
  4444  							Type:        []string{"string"},
  4445  							Format:      "",
  4446  						},
  4447  					},
  4448  					"url": {
  4449  						SchemaProps: spec.SchemaProps{
  4450  							Description: "URL is the url of the server.",
  4451  							Default:     "",
  4452  							Type:        []string{"string"},
  4453  							Format:      "",
  4454  						},
  4455  					},
  4456  					"serverCertSecret": {
  4457  						SchemaProps: spec.SchemaProps{
  4458  							Description: "ServerCertPath refers the file that contains the cert.",
  4459  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4460  						},
  4461  					},
  4462  					"serverKeySecret": {
  4463  						SchemaProps: spec.SchemaProps{
  4464  							Description: "ServerKeyPath refers the file that contains private key",
  4465  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4466  						},
  4467  					},
  4468  					"metadata": {
  4469  						SchemaProps: spec.SchemaProps{
  4470  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  4471  							Type:        []string{"object"},
  4472  							AdditionalProperties: &spec.SchemaOrBool{
  4473  								Allows: true,
  4474  								Schema: &spec.Schema{
  4475  									SchemaProps: spec.SchemaProps{
  4476  										Default: "",
  4477  										Type:    []string{"string"},
  4478  										Format:  "",
  4479  									},
  4480  								},
  4481  							},
  4482  						},
  4483  					},
  4484  					"authSecret": {
  4485  						SchemaProps: spec.SchemaProps{
  4486  							Description: "AuthSecret holds a secret selector that contains a bearer token for authentication",
  4487  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4488  						},
  4489  					},
  4490  					"maxPayloadSize": {
  4491  						SchemaProps: spec.SchemaProps{
  4492  							Description: "MaxPayloadSize is the maximum webhook payload size that the server will accept. Requests exceeding that limit will be rejected with \"request too large\" response. Default value: 1048576 (1MB).",
  4493  							Type:        []string{"integer"},
  4494  							Format:      "int64",
  4495  						},
  4496  					},
  4497  				},
  4498  				Required: []string{"endpoint", "method", "port", "url"},
  4499  			},
  4500  		},
  4501  		Dependencies: []string{
  4502  			"k8s.io/api/core/v1.SecretKeySelector"},
  4503  	}
  4504  }
  4505  
  4506  func schema_pkg_apis_eventsource_v1alpha1_WebhookEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
  4507  	return common.OpenAPIDefinition{
  4508  		Schema: spec.Schema{
  4509  			SchemaProps: spec.SchemaProps{
  4510  				Description: "CalendarEventSource describes an HTTP based EventSource",
  4511  				Type:        []string{"object"},
  4512  				Properties: map[string]spec.Schema{
  4513  					"endpoint": {
  4514  						SchemaProps: spec.SchemaProps{
  4515  							Description: "REST API endpoint",
  4516  							Default:     "",
  4517  							Type:        []string{"string"},
  4518  							Format:      "",
  4519  						},
  4520  					},
  4521  					"method": {
  4522  						SchemaProps: spec.SchemaProps{
  4523  							Description: "Method is HTTP request method that indicates the desired action to be performed for a given resource. See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content",
  4524  							Default:     "",
  4525  							Type:        []string{"string"},
  4526  							Format:      "",
  4527  						},
  4528  					},
  4529  					"port": {
  4530  						SchemaProps: spec.SchemaProps{
  4531  							Description: "Port on which HTTP server is listening for incoming events.",
  4532  							Default:     "",
  4533  							Type:        []string{"string"},
  4534  							Format:      "",
  4535  						},
  4536  					},
  4537  					"url": {
  4538  						SchemaProps: spec.SchemaProps{
  4539  							Description: "URL is the url of the server.",
  4540  							Default:     "",
  4541  							Type:        []string{"string"},
  4542  							Format:      "",
  4543  						},
  4544  					},
  4545  					"serverCertSecret": {
  4546  						SchemaProps: spec.SchemaProps{
  4547  							Description: "ServerCertPath refers the file that contains the cert.",
  4548  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4549  						},
  4550  					},
  4551  					"serverKeySecret": {
  4552  						SchemaProps: spec.SchemaProps{
  4553  							Description: "ServerKeyPath refers the file that contains private key",
  4554  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4555  						},
  4556  					},
  4557  					"metadata": {
  4558  						SchemaProps: spec.SchemaProps{
  4559  							Description: "Metadata holds the user defined metadata which will passed along the event payload.",
  4560  							Type:        []string{"object"},
  4561  							AdditionalProperties: &spec.SchemaOrBool{
  4562  								Allows: true,
  4563  								Schema: &spec.Schema{
  4564  									SchemaProps: spec.SchemaProps{
  4565  										Default: "",
  4566  										Type:    []string{"string"},
  4567  										Format:  "",
  4568  									},
  4569  								},
  4570  							},
  4571  						},
  4572  					},
  4573  					"authSecret": {
  4574  						SchemaProps: spec.SchemaProps{
  4575  							Description: "AuthSecret holds a secret selector that contains a bearer token for authentication",
  4576  							Ref:         ref("k8s.io/api/core/v1.SecretKeySelector"),
  4577  						},
  4578  					},
  4579  					"maxPayloadSize": {
  4580  						SchemaProps: spec.SchemaProps{
  4581  							Description: "MaxPayloadSize is the maximum webhook payload size that the server will accept. Requests exceeding that limit will be rejected with \"request too large\" response. Default value: 1048576 (1MB).",
  4582  							Type:        []string{"integer"},
  4583  							Format:      "int64",
  4584  						},
  4585  					},
  4586  					"filter": {
  4587  						SchemaProps: spec.SchemaProps{
  4588  							Description: "Filter",
  4589  							Ref:         ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter"),
  4590  						},
  4591  					},
  4592  				},
  4593  				Required: []string{"endpoint", "method", "port", "url"},
  4594  			},
  4595  		},
  4596  		Dependencies: []string{
  4597  			"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceFilter", "k8s.io/api/core/v1.SecretKeySelector"},
  4598  	}
  4599  }