-
Notifications
You must be signed in to change notification settings - Fork 729
/
openapi_generated.go
3133 lines (3081 loc) · 114 KB
/
openapi_generated.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// +build !ignore_autogenerated
/*
Copyright 2020 BlackRock, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by openapi-gen. DO NOT EDIT.
// This file was autogenerated by openapi-gen. Do not edit it manually!
package v1alpha1
import (
spec "github.com/go-openapi/spec"
common "k8s.io/kube-openapi/pkg/common"
)
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
return map[string]common.OpenAPIDefinition{
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPConsumeConfig": schema_pkg_apis_eventsource_v1alpha1_AMQPConsumeConfig(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPEventSource": schema_pkg_apis_eventsource_v1alpha1_AMQPEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPExchangeDeclareConfig": schema_pkg_apis_eventsource_v1alpha1_AMQPExchangeDeclareConfig(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueBindConfig": schema_pkg_apis_eventsource_v1alpha1_AMQPQueueBindConfig(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueDeclareConfig": schema_pkg_apis_eventsource_v1alpha1_AMQPQueueDeclareConfig(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureEventsHubEventSource": schema_pkg_apis_eventsource_v1alpha1_AzureEventsHubEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CalendarEventSource": schema_pkg_apis_eventsource_v1alpha1_CalendarEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CatchupConfiguration": schema_pkg_apis_eventsource_v1alpha1_CatchupConfiguration(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ConfigMapPersistence": schema_pkg_apis_eventsource_v1alpha1_ConfigMapPersistence(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EmitterEventSource": schema_pkg_apis_eventsource_v1alpha1_EmitterEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventPersistence": schema_pkg_apis_eventsource_v1alpha1_EventPersistence(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSource": schema_pkg_apis_eventsource_v1alpha1_EventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceList": schema_pkg_apis_eventsource_v1alpha1_EventSourceList(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceSpec": schema_pkg_apis_eventsource_v1alpha1_EventSourceSpec(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceStatus": schema_pkg_apis_eventsource_v1alpha1_EventSourceStatus(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.FileEventSource": schema_pkg_apis_eventsource_v1alpha1_FileEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GenericEventSource": schema_pkg_apis_eventsource_v1alpha1_GenericEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubEventSource": schema_pkg_apis_eventsource_v1alpha1_GithubEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GitlabEventSource": schema_pkg_apis_eventsource_v1alpha1_GitlabEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.HDFSEventSource": schema_pkg_apis_eventsource_v1alpha1_HDFSEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaConsumerGroup": schema_pkg_apis_eventsource_v1alpha1_KafkaConsumerGroup(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaEventSource": schema_pkg_apis_eventsource_v1alpha1_KafkaEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.MQTTEventSource": schema_pkg_apis_eventsource_v1alpha1_MQTTEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSAuth": schema_pkg_apis_eventsource_v1alpha1_NATSAuth(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSEventsSource": schema_pkg_apis_eventsource_v1alpha1_NATSEventsSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NSQEventSource": schema_pkg_apis_eventsource_v1alpha1_NSQEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.OwnedRepositories": schema_pkg_apis_eventsource_v1alpha1_OwnedRepositories(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PubSubEventSource": schema_pkg_apis_eventsource_v1alpha1_PubSubEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PulsarEventSource": schema_pkg_apis_eventsource_v1alpha1_PulsarEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisEventSource": schema_pkg_apis_eventsource_v1alpha1_RedisEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceEventSource": schema_pkg_apis_eventsource_v1alpha1_ResourceEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceFilter": schema_pkg_apis_eventsource_v1alpha1_ResourceFilter(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SNSEventSource": schema_pkg_apis_eventsource_v1alpha1_SNSEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SQSEventSource": schema_pkg_apis_eventsource_v1alpha1_SQSEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Selector": schema_pkg_apis_eventsource_v1alpha1_Selector(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Service": schema_pkg_apis_eventsource_v1alpha1_Service(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SlackEventSource": schema_pkg_apis_eventsource_v1alpha1_SlackEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridEventSource": schema_pkg_apis_eventsource_v1alpha1_StorageGridEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridFilter": schema_pkg_apis_eventsource_v1alpha1_StorageGridFilter(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StripeEventSource": schema_pkg_apis_eventsource_v1alpha1_StripeEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Template": schema_pkg_apis_eventsource_v1alpha1_Template(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig": schema_pkg_apis_eventsource_v1alpha1_WatchPathConfig(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext": schema_pkg_apis_eventsource_v1alpha1_WebhookContext(ref),
}
}
func schema_pkg_apis_eventsource_v1alpha1_AMQPConsumeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "AMQPConsumeConfig holds the configuration to immediately starts delivering queued messages",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"consumerTag": {
SchemaProps: spec.SchemaProps{
Description: "ConsumerTag is the identity of the consumer included in every delivery",
Type: []string{"string"},
Format: "",
},
},
"autoAck": {
SchemaProps: spec.SchemaProps{
Description: "AutoAck when true, the server will acknowledge deliveries to this consumer prior to writing the delivery to the network",
Type: []string{"boolean"},
Format: "",
},
},
"exclusive": {
SchemaProps: spec.SchemaProps{
Description: "Exclusive when true, the server will ensure that this is the sole consumer from this queue",
Type: []string{"boolean"},
Format: "",
},
},
"noLocal": {
SchemaProps: spec.SchemaProps{
Description: "NoLocal flag is not supported by RabbitMQ",
Type: []string{"boolean"},
Format: "",
},
},
"noWait": {
SchemaProps: spec.SchemaProps{
Description: "NowWait when true, do not wait for the server to confirm the request and immediately begin deliveries",
Type: []string{"boolean"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_eventsource_v1alpha1_AMQPEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "AMQPEventSource refers to an event-source for AMQP stream events",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"url": {
SchemaProps: spec.SchemaProps{
Description: "URL for rabbitmq service",
Type: []string{"string"},
Format: "",
},
},
"exchangeName": {
SchemaProps: spec.SchemaProps{
Description: "ExchangeName is the exchange name For more information, visit https://www.rabbitmq.com/tutorials/amqp-concepts.html",
Type: []string{"string"},
Format: "",
},
},
"exchangeType": {
SchemaProps: spec.SchemaProps{
Description: "ExchangeType is rabbitmq exchange type",
Type: []string{"string"},
Format: "",
},
},
"routingKey": {
SchemaProps: spec.SchemaProps{
Description: "Routing key for bindings",
Type: []string{"string"},
Format: "",
},
},
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "Backoff holds parameters applied to connection.",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"jsonBody": {
SchemaProps: spec.SchemaProps{
Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
Type: []string{"boolean"},
Format: "",
},
},
"tls": {
SchemaProps: spec.SchemaProps{
Description: "TLS configuration for the amqp client.",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "Metadata holds the user defined metadata which will passed along the event payload.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"exchangeDeclare": {
SchemaProps: spec.SchemaProps{
Description: "ExchangeDeclare holds the configuration for the exchange on the server For more information, visit https://godoc.org/github.com/streadway/amqp#Channel.ExchangeDeclare",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPExchangeDeclareConfig"),
},
},
"queueDeclare": {
SchemaProps: spec.SchemaProps{
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://godoc.org/github.com/streadway/amqp#Channel.QueueDeclare",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueDeclareConfig"),
},
},
"queueBind": {
SchemaProps: spec.SchemaProps{
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://godoc.org/github.com/streadway/amqp#Channel.QueueBind",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPQueueBindConfig"),
},
},
"consume": {
SchemaProps: spec.SchemaProps{
Description: "Consume holds the configuration to immediately starts delivering queued messages For more information, visit https://godoc.org/github.com/streadway/amqp#Channel.Consume",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPConsumeConfig"),
},
},
},
Required: []string{"url", "exchangeName", "exchangeType", "routingKey"},
},
},
Dependencies: []string{
"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.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"},
}
}
func schema_pkg_apis_eventsource_v1alpha1_AMQPExchangeDeclareConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "AMQPExchangeDeclareConfig holds the configuration for the exchange on the server",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"durable": {
SchemaProps: spec.SchemaProps{
Description: "Durable keeps the exchange also after the server restarts",
Type: []string{"boolean"},
Format: "",
},
},
"autoDelete": {
SchemaProps: spec.SchemaProps{
Description: "AutoDelete removes the exchange when no bindings are active",
Type: []string{"boolean"},
Format: "",
},
},
"internal": {
SchemaProps: spec.SchemaProps{
Description: "Internal when true does not accept publishings",
Type: []string{"boolean"},
Format: "",
},
},
"noWait": {
SchemaProps: spec.SchemaProps{
Description: "NowWait when true does not wait for a confirmation from the server",
Type: []string{"boolean"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_eventsource_v1alpha1_AMQPQueueBindConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
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",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"noWait": {
SchemaProps: spec.SchemaProps{
Description: "NowWait false and the queue could not be bound, the channel will be closed with an error",
Type: []string{"boolean"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_eventsource_v1alpha1_AMQPQueueDeclareConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
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",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Description: "Name of the queue. If empty the server auto-generates a unique name for this queue",
Type: []string{"string"},
Format: "",
},
},
"durable": {
SchemaProps: spec.SchemaProps{
Description: "Durable keeps the queue also after the server restarts",
Type: []string{"boolean"},
Format: "",
},
},
"autoDelete": {
SchemaProps: spec.SchemaProps{
Description: "AutoDelete removes the queue when no consumers are active",
Type: []string{"boolean"},
Format: "",
},
},
"exclusive": {
SchemaProps: spec.SchemaProps{
Description: "Exclusive sets the queues to be accessible only by the connection that declares them and will be deleted wgen the connection closes",
Type: []string{"boolean"},
Format: "",
},
},
"noWait": {
SchemaProps: spec.SchemaProps{
Description: "NowWait when true, the queue assumes to be declared on the server",
Type: []string{"boolean"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_eventsource_v1alpha1_AzureEventsHubEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "AzureEventsHubEventSource describes the event source for azure events hub More info at https://docs.microsoft.com/en-us/azure/event-hubs/",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"fqdn": {
SchemaProps: spec.SchemaProps{
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",
Type: []string{"string"},
Format: "",
},
},
"sharedAccessKeyName": {
SchemaProps: spec.SchemaProps{
Description: "SharedAccessKeyName is the name you chose for your application's SAS keys",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"sharedAccessKey": {
SchemaProps: spec.SchemaProps{
Description: "SharedAccessKey is the generated value of the key",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"hubName": {
SchemaProps: spec.SchemaProps{
Description: "Event Hub path/name",
Type: []string{"string"},
Format: "",
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "Metadata holds the user defined metadata which will passed along the event payload.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
},
Required: []string{"fqdn", "hubName"},
},
},
Dependencies: []string{
"k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_eventsource_v1alpha1_CalendarEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
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",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"schedule": {
SchemaProps: spec.SchemaProps{
Description: "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron",
Type: []string{"string"},
Format: "",
},
},
"interval": {
SchemaProps: spec.SchemaProps{
Description: "Interval is a string that describes an interval duration, e.g. 1s, 30m, 2h...",
Type: []string{"string"},
Format: "",
},
},
"exclusionDates": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"timezone": {
SchemaProps: spec.SchemaProps{
Description: "Timezone in which to run the schedule",
Type: []string{"string"},
Format: "",
},
},
"userPayload": {
SchemaProps: spec.SchemaProps{
Description: "UserPayload will be sent to sensor as extra data once the event is triggered Deprecated: will be removed in v1.5. Please use Metadata instead.",
Type: []string{"string"},
Format: "byte",
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "Metadata holds the user defined metadata which will passed along the event payload.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"persistence": {
SchemaProps: spec.SchemaProps{
Description: "Persistence hold the configuration for event persistence",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventPersistence"),
},
},
},
Required: []string{"schedule", "interval"},
},
},
Dependencies: []string{
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventPersistence"},
}
}
func schema_pkg_apis_eventsource_v1alpha1_CatchupConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"enabled": {
SchemaProps: spec.SchemaProps{
Description: "Enabled enables to triggered the missed schedule when eventsource restarts",
Type: []string{"boolean"},
Format: "",
},
},
"maxDuration": {
SchemaProps: spec.SchemaProps{
Description: "MaxDuration holds max catchup duration",
Type: []string{"string"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_eventsource_v1alpha1_ConfigMapPersistence(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"name": {
SchemaProps: spec.SchemaProps{
Description: "Name of the configmap",
Type: []string{"string"},
Format: "",
},
},
"createIfNotExist": {
SchemaProps: spec.SchemaProps{
Description: "CreateIfNotExist will create configmap if it doesn't exists",
Type: []string{"boolean"},
Format: "",
},
},
},
},
},
}
}
func schema_pkg_apis_eventsource_v1alpha1_EmitterEventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "EmitterEventSource describes the event source for emitter More info at https://emitter.io/develop/getting-started/",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"broker": {
SchemaProps: spec.SchemaProps{
Description: "Broker URI to connect to.",
Type: []string{"string"},
Format: "",
},
},
"channelKey": {
SchemaProps: spec.SchemaProps{
Description: "ChannelKey refers to the channel key",
Type: []string{"string"},
Format: "",
},
},
"channelName": {
SchemaProps: spec.SchemaProps{
Description: "ChannelName refers to the channel name",
Type: []string{"string"},
Format: "",
},
},
"username": {
SchemaProps: spec.SchemaProps{
Description: "Username to use to connect to broker",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"password": {
SchemaProps: spec.SchemaProps{
Description: "Password to use to connect to broker",
Ref: ref("k8s.io/api/core/v1.SecretKeySelector"),
},
},
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "Backoff holds parameters applied to connection.",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"jsonBody": {
SchemaProps: spec.SchemaProps{
Description: "JSONBody specifies that all event body payload coming from this source will be JSON",
Type: []string{"boolean"},
Format: "",
},
},
"tls": {
SchemaProps: spec.SchemaProps{
Description: "TLS configuration for the emitter client.",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"),
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "Metadata holds the user defined metadata which will passed along the event payload.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
},
Required: []string{"broker", "channelKey", "channelName"},
},
},
Dependencies: []string{
"github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
func schema_pkg_apis_eventsource_v1alpha1_EventPersistence(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"catchup": {
SchemaProps: spec.SchemaProps{
Description: "Catchup enables to triggered the missed schedule when eventsource restarts",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CatchupConfiguration"),
},
},
"configMap": {
SchemaProps: spec.SchemaProps{
Description: "ConfigMap holds configmap details for persistence",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ConfigMapPersistence"),
},
},
},
},
},
Dependencies: []string{
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CatchupConfiguration", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ConfigMapPersistence"},
}
}
func schema_pkg_apis_eventsource_v1alpha1_EventSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "EventSource is the definition of a eventsource resource",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"kind": {
SchemaProps: spec.SchemaProps{
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",
Type: []string{"string"},
Format: "",
},
},
"apiVersion": {
SchemaProps: spec.SchemaProps{
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",
Type: []string{"string"},
Format: "",
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSourceStatus"),
},
},
},
Required: []string{"metadata", "spec"},
},
},
Dependencies: []string{
"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"},
}
}
func schema_pkg_apis_eventsource_v1alpha1_EventSourceList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "EventSourceList is the list of eventsource resources",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"kind": {
SchemaProps: spec.SchemaProps{
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",
Type: []string{"string"},
Format: "",
},
},
"apiVersion": {
SchemaProps: spec.SchemaProps{
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",
Type: []string{"string"},
Format: "",
},
},
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
},
},
"items": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSource"),
},
},
},
},
},
},
Required: []string{"metadata", "items"},
},
},
Dependencies: []string{
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EventSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
}
}
func schema_pkg_apis_eventsource_v1alpha1_EventSourceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "EventSourceSpec refers to specification of event-source resource",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"eventBusName": {
SchemaProps: spec.SchemaProps{
Description: "EventBusName references to a EventBus name. By default the value is \"default\"",
Type: []string{"string"},
Format: "",
},
},
"template": {
SchemaProps: spec.SchemaProps{
Description: "Template is the pod specification for the event source",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Template"),
},
},
"service": {
SchemaProps: spec.SchemaProps{
Description: "Service is the specifications of the service to expose the event source",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.Service"),
},
},
"replica": {
SchemaProps: spec.SchemaProps{
Description: "DeprecatedReplica is the event source deployment replicas Deprecated: use replicas instead, will be removed in v1.5",
Type: []string{"integer"},
Format: "int32",
},
},
"minio": {
SchemaProps: spec.SchemaProps{
Description: "Minio event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.S3Artifact"),
},
},
},
},
},
"calendar": {
SchemaProps: spec.SchemaProps{
Description: "Calendar event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CalendarEventSource"),
},
},
},
},
},
"file": {
SchemaProps: spec.SchemaProps{
Description: "File event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.FileEventSource"),
},
},
},
},
},
"resource": {
SchemaProps: spec.SchemaProps{
Description: "Resource event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceEventSource"),
},
},
},
},
},
"webhook": {
SchemaProps: spec.SchemaProps{
Description: "Webhook event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
},
},
},
"amqp": {
SchemaProps: spec.SchemaProps{
Description: "AMQP event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPEventSource"),
},
},
},
},
},
"kafka": {
SchemaProps: spec.SchemaProps{
Description: "Kafka event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaEventSource"),
},
},
},
},
},
"mqtt": {
SchemaProps: spec.SchemaProps{
Description: "MQTT event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.MQTTEventSource"),
},
},
},
},
},
"nats": {
SchemaProps: spec.SchemaProps{
Description: "NATS event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSEventsSource"),
},
},
},
},
},
"sns": {
SchemaProps: spec.SchemaProps{
Description: "SNS event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SNSEventSource"),
},
},
},
},
},
"sqs": {
SchemaProps: spec.SchemaProps{
Description: "SQS event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SQSEventSource"),
},
},
},
},
},
"pubSub": {
SchemaProps: spec.SchemaProps{
Description: "PubSub event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PubSubEventSource"),
},
},
},
},
},
"github": {
SchemaProps: spec.SchemaProps{
Description: "Github event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubEventSource"),
},
},
},
},
},
"gitlab": {
SchemaProps: spec.SchemaProps{
Description: "Gitlab event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GitlabEventSource"),
},
},
},
},
},
"hdfs": {
SchemaProps: spec.SchemaProps{
Description: "HDFS event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.HDFSEventSource"),
},
},
},
},
},
"slack": {
SchemaProps: spec.SchemaProps{
Description: "Slack event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SlackEventSource"),
},
},
},
},
},
"storageGrid": {
SchemaProps: spec.SchemaProps{
Description: "StorageGrid event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridEventSource"),
},
},
},
},
},
"azureEventsHub": {
SchemaProps: spec.SchemaProps{
Description: "AzureEventsHub event sources",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{