github.com/argoproj/argo-events@v1.9.1/pkg/apis/sensor/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/sensor/v1alpha1.AWSLambdaTrigger": schema_pkg_apis_sensor_v1alpha1_AWSLambdaTrigger(ref), 34 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger": schema_pkg_apis_sensor_v1alpha1_ArgoWorkflowTrigger(ref), 35 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation": schema_pkg_apis_sensor_v1alpha1_ArtifactLocation(ref), 36 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureEventHubsTrigger": schema_pkg_apis_sensor_v1alpha1_AzureEventHubsTrigger(ref), 37 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureServiceBusTrigger": schema_pkg_apis_sensor_v1alpha1_AzureServiceBusTrigger(ref), 38 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetByTime": schema_pkg_apis_sensor_v1alpha1_ConditionsResetByTime(ref), 39 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetCriteria": schema_pkg_apis_sensor_v1alpha1_ConditionsResetCriteria(ref), 40 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger": schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref), 41 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.DataFilter": schema_pkg_apis_sensor_v1alpha1_DataFilter(ref), 42 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EmailTrigger": schema_pkg_apis_sensor_v1alpha1_EmailTrigger(ref), 43 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Event": schema_pkg_apis_sensor_v1alpha1_Event(ref), 44 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventContext": schema_pkg_apis_sensor_v1alpha1_EventContext(ref), 45 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependency": schema_pkg_apis_sensor_v1alpha1_EventDependency(ref), 46 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependencyFilter": schema_pkg_apis_sensor_v1alpha1_EventDependencyFilter(ref), 47 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependencyTransformer": schema_pkg_apis_sensor_v1alpha1_EventDependencyTransformer(ref), 48 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ExprFilter": schema_pkg_apis_sensor_v1alpha1_ExprFilter(ref), 49 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact": schema_pkg_apis_sensor_v1alpha1_FileArtifact(ref), 50 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact": schema_pkg_apis_sensor_v1alpha1_GitArtifact(ref), 51 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitCreds": schema_pkg_apis_sensor_v1alpha1_GitCreds(ref), 52 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitRemoteConfig": schema_pkg_apis_sensor_v1alpha1_GitRemoteConfig(ref), 53 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger": schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref), 54 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy": schema_pkg_apis_sensor_v1alpha1_K8SResourcePolicy(ref), 55 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger": schema_pkg_apis_sensor_v1alpha1_KafkaTrigger(ref), 56 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.LogTrigger": schema_pkg_apis_sensor_v1alpha1_LogTrigger(ref), 57 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger": schema_pkg_apis_sensor_v1alpha1_NATSTrigger(ref), 58 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger": schema_pkg_apis_sensor_v1alpha1_OpenWhiskTrigger(ref), 59 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PayloadField": schema_pkg_apis_sensor_v1alpha1_PayloadField(ref), 60 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger": schema_pkg_apis_sensor_v1alpha1_PulsarTrigger(ref), 61 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.RateLimit": schema_pkg_apis_sensor_v1alpha1_RateLimit(ref), 62 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Sensor": schema_pkg_apis_sensor_v1alpha1_Sensor(ref), 63 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorList": schema_pkg_apis_sensor_v1alpha1_SensorList(ref), 64 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorSpec": schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref), 65 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorStatus": schema_pkg_apis_sensor_v1alpha1_SensorStatus(ref), 66 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackSender": schema_pkg_apis_sensor_v1alpha1_SlackSender(ref), 67 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackThread": schema_pkg_apis_sensor_v1alpha1_SlackThread(ref), 68 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger": schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref), 69 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger": schema_pkg_apis_sensor_v1alpha1_StandardK8STrigger(ref), 70 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy": schema_pkg_apis_sensor_v1alpha1_StatusPolicy(ref), 71 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Template": schema_pkg_apis_sensor_v1alpha1_Template(ref), 72 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TimeFilter": schema_pkg_apis_sensor_v1alpha1_TimeFilter(ref), 73 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Trigger": schema_pkg_apis_sensor_v1alpha1_Trigger(ref), 74 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter": schema_pkg_apis_sensor_v1alpha1_TriggerParameter(ref), 75 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameterSource": schema_pkg_apis_sensor_v1alpha1_TriggerParameterSource(ref), 76 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerPolicy": schema_pkg_apis_sensor_v1alpha1_TriggerPolicy(ref), 77 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerTemplate": schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref), 78 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact": schema_pkg_apis_sensor_v1alpha1_URLArtifact(ref), 79 } 80 } 81 82 func schema_pkg_apis_sensor_v1alpha1_AWSLambdaTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 83 return common.OpenAPIDefinition{ 84 Schema: spec.Schema{ 85 SchemaProps: spec.SchemaProps{ 86 Description: "AWSLambdaTrigger refers to specification of the trigger to invoke an AWS Lambda function", 87 Type: []string{"object"}, 88 Properties: map[string]spec.Schema{ 89 "functionName": { 90 SchemaProps: spec.SchemaProps{ 91 Description: "FunctionName refers to the name of the function to invoke.", 92 Default: "", 93 Type: []string{"string"}, 94 Format: "", 95 }, 96 }, 97 "accessKey": { 98 SchemaProps: spec.SchemaProps{ 99 Description: "AccessKey refers K8s secret containing aws access key", 100 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 101 }, 102 }, 103 "secretKey": { 104 SchemaProps: spec.SchemaProps{ 105 Description: "SecretKey refers K8s secret containing aws secret key", 106 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 107 }, 108 }, 109 "region": { 110 SchemaProps: spec.SchemaProps{ 111 Description: "Region is AWS region", 112 Default: "", 113 Type: []string{"string"}, 114 Format: "", 115 }, 116 }, 117 "payload": { 118 SchemaProps: spec.SchemaProps{ 119 Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.", 120 Type: []string{"array"}, 121 Items: &spec.SchemaOrArray{ 122 Schema: &spec.Schema{ 123 SchemaProps: spec.SchemaProps{ 124 Default: map[string]interface{}{}, 125 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 126 }, 127 }, 128 }, 129 }, 130 }, 131 "parameters": { 132 SchemaProps: spec.SchemaProps{ 133 Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", 134 Type: []string{"array"}, 135 Items: &spec.SchemaOrArray{ 136 Schema: &spec.Schema{ 137 SchemaProps: spec.SchemaProps{ 138 Default: map[string]interface{}{}, 139 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 140 }, 141 }, 142 }, 143 }, 144 }, 145 "invocationType": { 146 SchemaProps: spec.SchemaProps{ 147 Description: "Choose from the following options.\n\n * RequestResponse (default) - Invoke the function synchronously. Keep\n the connection open until the function returns a response or times out.\n The API response includes the function response and additional data.\n\n * Event - Invoke the function asynchronously. Send events that fail multiple\n times to the function's dead-letter queue (if it's configured). The API\n response only includes a status code.\n\n * DryRun - Validate parameter values and verify that the user or role\n has permission to invoke the function.", 148 Type: []string{"string"}, 149 Format: "", 150 }, 151 }, 152 "roleARN": { 153 SchemaProps: spec.SchemaProps{ 154 Description: "RoleARN is the Amazon Resource Name (ARN) of the role to assume.", 155 Type: []string{"string"}, 156 Format: "", 157 }, 158 }, 159 }, 160 Required: []string{"functionName", "region", "payload"}, 161 }, 162 }, 163 Dependencies: []string{ 164 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 165 } 166 } 167 168 func schema_pkg_apis_sensor_v1alpha1_ArgoWorkflowTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 169 return common.OpenAPIDefinition{ 170 Schema: spec.Schema{ 171 SchemaProps: spec.SchemaProps{ 172 Description: "ArgoWorkflowTrigger is the trigger for the Argo Workflow", 173 Type: []string{"object"}, 174 Properties: map[string]spec.Schema{ 175 "source": { 176 SchemaProps: spec.SchemaProps{ 177 Description: "Source of the K8s resource file(s)", 178 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation"), 179 }, 180 }, 181 "operation": { 182 SchemaProps: spec.SchemaProps{ 183 Description: "Operation refers to the type of operation performed on the argo workflow resource. Default value is Submit.", 184 Type: []string{"string"}, 185 Format: "", 186 }, 187 }, 188 "parameters": { 189 SchemaProps: spec.SchemaProps{ 190 Description: "Parameters is the list of parameters to pass to resolved Argo Workflow object", 191 Type: []string{"array"}, 192 Items: &spec.SchemaOrArray{ 193 Schema: &spec.Schema{ 194 SchemaProps: spec.SchemaProps{ 195 Default: map[string]interface{}{}, 196 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 197 }, 198 }, 199 }, 200 }, 201 }, 202 "args": { 203 SchemaProps: spec.SchemaProps{ 204 Description: "Args is the list of arguments to pass to the argo CLI", 205 Type: []string{"array"}, 206 Items: &spec.SchemaOrArray{ 207 Schema: &spec.Schema{ 208 SchemaProps: spec.SchemaProps{ 209 Default: "", 210 Type: []string{"string"}, 211 Format: "", 212 }, 213 }, 214 }, 215 }, 216 }, 217 }, 218 }, 219 }, 220 Dependencies: []string{ 221 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"}, 222 } 223 } 224 225 func schema_pkg_apis_sensor_v1alpha1_ArtifactLocation(ref common.ReferenceCallback) common.OpenAPIDefinition { 226 return common.OpenAPIDefinition{ 227 Schema: spec.Schema{ 228 SchemaProps: spec.SchemaProps{ 229 Description: "ArtifactLocation describes the source location for an external artifact", 230 Type: []string{"object"}, 231 Properties: map[string]spec.Schema{ 232 "s3": { 233 SchemaProps: spec.SchemaProps{ 234 Description: "S3 compliant artifact", 235 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.S3Artifact"), 236 }, 237 }, 238 "inline": { 239 SchemaProps: spec.SchemaProps{ 240 Description: "Inline artifact is embedded in sensor spec as a string", 241 Type: []string{"string"}, 242 Format: "", 243 }, 244 }, 245 "file": { 246 SchemaProps: spec.SchemaProps{ 247 Description: "File artifact is artifact stored in a file", 248 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact"), 249 }, 250 }, 251 "url": { 252 SchemaProps: spec.SchemaProps{ 253 Description: "URL to fetch the artifact from", 254 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact"), 255 }, 256 }, 257 "configmap": { 258 SchemaProps: spec.SchemaProps{ 259 Description: "Configmap that stores the artifact", 260 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 261 }, 262 }, 263 "git": { 264 SchemaProps: spec.SchemaProps{ 265 Description: "Git repository hosting the artifact", 266 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact"), 267 }, 268 }, 269 "resource": { 270 SchemaProps: spec.SchemaProps{ 271 Description: "Resource is generic template for K8s resource", 272 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Resource"), 273 }, 274 }, 275 }, 276 }, 277 }, 278 Dependencies: []string{ 279 "github.com/argoproj/argo-events/pkg/apis/common.Resource", "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact", "k8s.io/api/core/v1.ConfigMapKeySelector"}, 280 } 281 } 282 283 func schema_pkg_apis_sensor_v1alpha1_AzureEventHubsTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 284 return common.OpenAPIDefinition{ 285 Schema: spec.Schema{ 286 SchemaProps: spec.SchemaProps{ 287 Description: "AzureEventHubsTrigger refers to specification of the Azure Event Hubs Trigger", 288 Type: []string{"object"}, 289 Properties: map[string]spec.Schema{ 290 "fqdn": { 291 SchemaProps: spec.SchemaProps{ 292 Description: "FQDN refers to the namespace dns of Azure Event Hubs to be used i.e. <namespace>.servicebus.windows.net", 293 Default: "", 294 Type: []string{"string"}, 295 Format: "", 296 }, 297 }, 298 "hubName": { 299 SchemaProps: spec.SchemaProps{ 300 Description: "HubName refers to the Azure Event Hub to send events to", 301 Default: "", 302 Type: []string{"string"}, 303 Format: "", 304 }, 305 }, 306 "sharedAccessKeyName": { 307 SchemaProps: spec.SchemaProps{ 308 Description: "SharedAccessKeyName refers to the name of the Shared Access Key", 309 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 310 }, 311 }, 312 "sharedAccessKey": { 313 SchemaProps: spec.SchemaProps{ 314 Description: "SharedAccessKey refers to a K8s secret containing the primary key for the", 315 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 316 }, 317 }, 318 "payload": { 319 SchemaProps: spec.SchemaProps{ 320 Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.", 321 Type: []string{"array"}, 322 Items: &spec.SchemaOrArray{ 323 Schema: &spec.Schema{ 324 SchemaProps: spec.SchemaProps{ 325 Default: map[string]interface{}{}, 326 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 327 }, 328 }, 329 }, 330 }, 331 }, 332 "parameters": { 333 SchemaProps: spec.SchemaProps{ 334 Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", 335 Type: []string{"array"}, 336 Items: &spec.SchemaOrArray{ 337 Schema: &spec.Schema{ 338 SchemaProps: spec.SchemaProps{ 339 Default: map[string]interface{}{}, 340 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 341 }, 342 }, 343 }, 344 }, 345 }, 346 }, 347 Required: []string{"fqdn", "hubName", "sharedAccessKeyName", "payload"}, 348 }, 349 }, 350 Dependencies: []string{ 351 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 352 } 353 } 354 355 func schema_pkg_apis_sensor_v1alpha1_AzureServiceBusTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 356 return common.OpenAPIDefinition{ 357 Schema: spec.Schema{ 358 SchemaProps: spec.SchemaProps{ 359 Type: []string{"object"}, 360 Properties: map[string]spec.Schema{ 361 "connectionString": { 362 SchemaProps: spec.SchemaProps{ 363 Description: "ConnectionString is the connection string for the Azure Service Bus", 364 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 365 }, 366 }, 367 "queueName": { 368 SchemaProps: spec.SchemaProps{ 369 Description: "QueueName is the name of the Azure Service Bus Queue", 370 Default: "", 371 Type: []string{"string"}, 372 Format: "", 373 }, 374 }, 375 "topicName": { 376 SchemaProps: spec.SchemaProps{ 377 Description: "TopicName is the name of the Azure Service Bus Topic", 378 Default: "", 379 Type: []string{"string"}, 380 Format: "", 381 }, 382 }, 383 "subscriptionName": { 384 SchemaProps: spec.SchemaProps{ 385 Description: "SubscriptionName is the name of the Azure Service Bus Topic Subscription", 386 Default: "", 387 Type: []string{"string"}, 388 Format: "", 389 }, 390 }, 391 "tls": { 392 SchemaProps: spec.SchemaProps{ 393 Description: "TLS configuration for the service bus client", 394 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"), 395 }, 396 }, 397 "payload": { 398 SchemaProps: spec.SchemaProps{ 399 Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.", 400 Type: []string{"array"}, 401 Items: &spec.SchemaOrArray{ 402 Schema: &spec.Schema{ 403 SchemaProps: spec.SchemaProps{ 404 Default: map[string]interface{}{}, 405 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 406 }, 407 }, 408 }, 409 }, 410 }, 411 "parameters": { 412 SchemaProps: spec.SchemaProps{ 413 Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", 414 Type: []string{"array"}, 415 Items: &spec.SchemaOrArray{ 416 Schema: &spec.Schema{ 417 SchemaProps: spec.SchemaProps{ 418 Default: map[string]interface{}{}, 419 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 420 }, 421 }, 422 }, 423 }, 424 }, 425 }, 426 Required: []string{"queueName", "topicName", "subscriptionName", "payload"}, 427 }, 428 }, 429 Dependencies: []string{ 430 "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 431 } 432 } 433 434 func schema_pkg_apis_sensor_v1alpha1_ConditionsResetByTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 435 return common.OpenAPIDefinition{ 436 Schema: spec.Schema{ 437 SchemaProps: spec.SchemaProps{ 438 Type: []string{"object"}, 439 Properties: map[string]spec.Schema{ 440 "cron": { 441 SchemaProps: spec.SchemaProps{ 442 Description: "Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", 443 Type: []string{"string"}, 444 Format: "", 445 }, 446 }, 447 "timezone": { 448 SchemaProps: spec.SchemaProps{ 449 Type: []string{"string"}, 450 Format: "", 451 }, 452 }, 453 }, 454 }, 455 }, 456 } 457 } 458 459 func schema_pkg_apis_sensor_v1alpha1_ConditionsResetCriteria(ref common.ReferenceCallback) common.OpenAPIDefinition { 460 return common.OpenAPIDefinition{ 461 Schema: spec.Schema{ 462 SchemaProps: spec.SchemaProps{ 463 Type: []string{"object"}, 464 Properties: map[string]spec.Schema{ 465 "byTime": { 466 SchemaProps: spec.SchemaProps{ 467 Description: "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", 468 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetByTime"), 469 }, 470 }, 471 }, 472 }, 473 }, 474 Dependencies: []string{ 475 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetByTime"}, 476 } 477 } 478 479 func schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 480 return common.OpenAPIDefinition{ 481 Schema: spec.Schema{ 482 SchemaProps: spec.SchemaProps{ 483 Description: "CustomTrigger refers to the specification of the custom trigger.", 484 Type: []string{"object"}, 485 Properties: map[string]spec.Schema{ 486 "serverURL": { 487 SchemaProps: spec.SchemaProps{ 488 Description: "ServerURL is the url of the gRPC server that executes custom trigger", 489 Default: "", 490 Type: []string{"string"}, 491 Format: "", 492 }, 493 }, 494 "secure": { 495 SchemaProps: spec.SchemaProps{ 496 Description: "Secure refers to type of the connection between sensor to custom trigger gRPC", 497 Default: false, 498 Type: []string{"boolean"}, 499 Format: "", 500 }, 501 }, 502 "certSecret": { 503 SchemaProps: spec.SchemaProps{ 504 Description: "CertSecret refers to the secret that contains cert for secure connection between sensor and custom trigger gRPC server.", 505 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 506 }, 507 }, 508 "serverNameOverride": { 509 SchemaProps: spec.SchemaProps{ 510 Description: "ServerNameOverride for the secure connection between sensor and custom trigger gRPC server.", 511 Type: []string{"string"}, 512 Format: "", 513 }, 514 }, 515 "spec": { 516 SchemaProps: spec.SchemaProps{ 517 Description: "Spec is the custom trigger resource specification that custom trigger gRPC server knows how to interpret.", 518 Type: []string{"object"}, 519 AdditionalProperties: &spec.SchemaOrBool{ 520 Allows: true, 521 Schema: &spec.Schema{ 522 SchemaProps: spec.SchemaProps{ 523 Default: "", 524 Type: []string{"string"}, 525 Format: "", 526 }, 527 }, 528 }, 529 }, 530 }, 531 "parameters": { 532 SchemaProps: spec.SchemaProps{ 533 Description: "Parameters is the list of parameters that is applied to resolved custom trigger trigger object.", 534 Type: []string{"array"}, 535 Items: &spec.SchemaOrArray{ 536 Schema: &spec.Schema{ 537 SchemaProps: spec.SchemaProps{ 538 Default: map[string]interface{}{}, 539 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 540 }, 541 }, 542 }, 543 }, 544 }, 545 "payload": { 546 SchemaProps: spec.SchemaProps{ 547 Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.", 548 Type: []string{"array"}, 549 Items: &spec.SchemaOrArray{ 550 Schema: &spec.Schema{ 551 SchemaProps: spec.SchemaProps{ 552 Default: map[string]interface{}{}, 553 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 554 }, 555 }, 556 }, 557 }, 558 }, 559 }, 560 Required: []string{"serverURL", "secure", "spec", "payload"}, 561 }, 562 }, 563 Dependencies: []string{ 564 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 565 } 566 } 567 568 func schema_pkg_apis_sensor_v1alpha1_DataFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { 569 return common.OpenAPIDefinition{ 570 Schema: spec.Schema{ 571 SchemaProps: spec.SchemaProps{ 572 Description: "DataFilter describes constraints and filters for event data Regular Expressions are purposefully not a feature as they are overkill for our uses here See Rob Pike's Post: https://commandcenter.blogspot.com/2011/08/regular-expressions-in-lexing-and.html", 573 Type: []string{"object"}, 574 Properties: map[string]spec.Schema{ 575 "path": { 576 SchemaProps: spec.SchemaProps{ 577 Description: "Path is the JSONPath of the event's (JSON decoded) data key Path is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", 578 Default: "", 579 Type: []string{"string"}, 580 Format: "", 581 }, 582 }, 583 "type": { 584 SchemaProps: spec.SchemaProps{ 585 Description: "Type contains the JSON type of the data", 586 Default: "", 587 Type: []string{"string"}, 588 Format: "", 589 }, 590 }, 591 "value": { 592 SchemaProps: spec.SchemaProps{ 593 Description: "Value is the allowed string values for this key Booleans are passed using strconv.ParseBool() Numbers are parsed using as float64 using strconv.ParseFloat() Strings are taken as is Nils this value is ignored", 594 Type: []string{"array"}, 595 Items: &spec.SchemaOrArray{ 596 Schema: &spec.Schema{ 597 SchemaProps: spec.SchemaProps{ 598 Default: "", 599 Type: []string{"string"}, 600 Format: "", 601 }, 602 }, 603 }, 604 }, 605 }, 606 "comparator": { 607 SchemaProps: spec.SchemaProps{ 608 Description: "Comparator compares the event data with a user given value. Can be \">=\", \">\", \"=\", \"!=\", \"<\", or \"<=\". Is optional, and if left blank treated as equality \"=\".", 609 Type: []string{"string"}, 610 Format: "", 611 }, 612 }, 613 "template": { 614 SchemaProps: spec.SchemaProps{ 615 Description: "Template is a go-template for extracting a string from the event's data. A Template is evaluated with provided path, type and value. The templating follows the standard go-template syntax as well as sprig's extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/", 616 Type: []string{"string"}, 617 Format: "", 618 }, 619 }, 620 }, 621 Required: []string{"path", "type", "value"}, 622 }, 623 }, 624 } 625 } 626 627 func schema_pkg_apis_sensor_v1alpha1_EmailTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 628 return common.OpenAPIDefinition{ 629 Schema: spec.Schema{ 630 SchemaProps: spec.SchemaProps{ 631 Description: "EmailTrigger refers to the specification of the email notification trigger.", 632 Type: []string{"object"}, 633 Properties: map[string]spec.Schema{ 634 "parameters": { 635 SchemaProps: spec.SchemaProps{ 636 Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", 637 Type: []string{"array"}, 638 Items: &spec.SchemaOrArray{ 639 Schema: &spec.Schema{ 640 SchemaProps: spec.SchemaProps{ 641 Default: map[string]interface{}{}, 642 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 643 }, 644 }, 645 }, 646 }, 647 }, 648 "username": { 649 SchemaProps: spec.SchemaProps{ 650 Description: "Username refers to the username used to connect to the smtp server.", 651 Type: []string{"string"}, 652 Format: "", 653 }, 654 }, 655 "smtpPassword": { 656 SchemaProps: spec.SchemaProps{ 657 Description: "SMTPPassword refers to the Kubernetes secret that holds the smtp password used to connect to smtp server.", 658 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 659 }, 660 }, 661 "host": { 662 SchemaProps: spec.SchemaProps{ 663 Description: "Host refers to the smtp host url to which email is send.", 664 Type: []string{"string"}, 665 Format: "", 666 }, 667 }, 668 "port": { 669 SchemaProps: spec.SchemaProps{ 670 Description: "Port refers to the smtp server port to which email is send. Defaults to 0.", 671 Type: []string{"integer"}, 672 Format: "int32", 673 }, 674 }, 675 "to": { 676 SchemaProps: spec.SchemaProps{ 677 Description: "To refers to the email addresses to which the emails are send.", 678 Type: []string{"array"}, 679 Items: &spec.SchemaOrArray{ 680 Schema: &spec.Schema{ 681 SchemaProps: spec.SchemaProps{ 682 Default: "", 683 Type: []string{"string"}, 684 Format: "", 685 }, 686 }, 687 }, 688 }, 689 }, 690 "from": { 691 SchemaProps: spec.SchemaProps{ 692 Description: "From refers to the address from which the email is send from.", 693 Type: []string{"string"}, 694 Format: "", 695 }, 696 }, 697 "subject": { 698 SchemaProps: spec.SchemaProps{ 699 Description: "Subject refers to the subject line for the email send.", 700 Type: []string{"string"}, 701 Format: "", 702 }, 703 }, 704 "body": { 705 SchemaProps: spec.SchemaProps{ 706 Description: "Body refers to the body/content of the email send.", 707 Type: []string{"string"}, 708 Format: "", 709 }, 710 }, 711 }, 712 }, 713 }, 714 Dependencies: []string{ 715 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 716 } 717 } 718 719 func schema_pkg_apis_sensor_v1alpha1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { 720 return common.OpenAPIDefinition{ 721 Schema: spec.Schema{ 722 SchemaProps: spec.SchemaProps{ 723 Description: "Event represents the cloudevent received from an event source.", 724 Type: []string{"object"}, 725 Properties: map[string]spec.Schema{ 726 "context": { 727 SchemaProps: spec.SchemaProps{ 728 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventContext"), 729 }, 730 }, 731 "data": { 732 SchemaProps: spec.SchemaProps{ 733 Type: []string{"string"}, 734 Format: "byte", 735 }, 736 }, 737 }, 738 Required: []string{"data"}, 739 }, 740 }, 741 Dependencies: []string{ 742 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventContext"}, 743 } 744 } 745 746 func schema_pkg_apis_sensor_v1alpha1_EventContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 747 return common.OpenAPIDefinition{ 748 Schema: spec.Schema{ 749 SchemaProps: spec.SchemaProps{ 750 Description: "EventContext holds the context of the cloudevent received from an event source.", 751 Type: []string{"object"}, 752 Properties: map[string]spec.Schema{ 753 "id": { 754 SchemaProps: spec.SchemaProps{ 755 Description: "ID of the event; must be non-empty and unique within the scope of the producer.", 756 Default: "", 757 Type: []string{"string"}, 758 Format: "", 759 }, 760 }, 761 "source": { 762 SchemaProps: spec.SchemaProps{ 763 Description: "Source - A URI describing the event producer.", 764 Default: "", 765 Type: []string{"string"}, 766 Format: "", 767 }, 768 }, 769 "specversion": { 770 SchemaProps: spec.SchemaProps{ 771 Description: "SpecVersion - The version of the CloudEvents specification used by the event.", 772 Default: "", 773 Type: []string{"string"}, 774 Format: "", 775 }, 776 }, 777 "type": { 778 SchemaProps: spec.SchemaProps{ 779 Description: "Type - The type of the occurrence which has happened.", 780 Default: "", 781 Type: []string{"string"}, 782 Format: "", 783 }, 784 }, 785 "datacontenttype": { 786 SchemaProps: spec.SchemaProps{ 787 Description: "DataContentType - A MIME (RFC2046) string describing the media type of `data`.", 788 Default: "", 789 Type: []string{"string"}, 790 Format: "", 791 }, 792 }, 793 "subject": { 794 SchemaProps: spec.SchemaProps{ 795 Description: "Subject - The subject of the event in the context of the event producer", 796 Default: "", 797 Type: []string{"string"}, 798 Format: "", 799 }, 800 }, 801 "time": { 802 SchemaProps: spec.SchemaProps{ 803 Description: "Time - A Timestamp when the event happened.", 804 Default: map[string]interface{}{}, 805 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 806 }, 807 }, 808 }, 809 Required: []string{"id", "source", "specversion", "type", "datacontenttype", "subject", "time"}, 810 }, 811 }, 812 Dependencies: []string{ 813 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 814 } 815 } 816 817 func schema_pkg_apis_sensor_v1alpha1_EventDependency(ref common.ReferenceCallback) common.OpenAPIDefinition { 818 return common.OpenAPIDefinition{ 819 Schema: spec.Schema{ 820 SchemaProps: spec.SchemaProps{ 821 Description: "EventDependency describes a dependency", 822 Type: []string{"object"}, 823 Properties: map[string]spec.Schema{ 824 "name": { 825 SchemaProps: spec.SchemaProps{ 826 Description: "Name is a unique name of this dependency", 827 Default: "", 828 Type: []string{"string"}, 829 Format: "", 830 }, 831 }, 832 "eventSourceName": { 833 SchemaProps: spec.SchemaProps{ 834 Description: "EventSourceName is the name of EventSource that Sensor depends on", 835 Default: "", 836 Type: []string{"string"}, 837 Format: "", 838 }, 839 }, 840 "eventName": { 841 SchemaProps: spec.SchemaProps{ 842 Description: "EventName is the name of the event", 843 Default: "", 844 Type: []string{"string"}, 845 Format: "", 846 }, 847 }, 848 "filters": { 849 SchemaProps: spec.SchemaProps{ 850 Description: "Filters and rules governing toleration of success and constraints on the context and data of an event", 851 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependencyFilter"), 852 }, 853 }, 854 "transform": { 855 SchemaProps: spec.SchemaProps{ 856 Description: "Transform transforms the event data", 857 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependencyTransformer"), 858 }, 859 }, 860 "filtersLogicalOperator": { 861 SchemaProps: spec.SchemaProps{ 862 Description: "FiltersLogicalOperator defines how different filters are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&).", 863 Type: []string{"string"}, 864 Format: "", 865 }, 866 }, 867 }, 868 Required: []string{"name", "eventSourceName", "eventName"}, 869 }, 870 }, 871 Dependencies: []string{ 872 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependencyFilter", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependencyTransformer"}, 873 } 874 } 875 876 func schema_pkg_apis_sensor_v1alpha1_EventDependencyFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { 877 return common.OpenAPIDefinition{ 878 Schema: spec.Schema{ 879 SchemaProps: spec.SchemaProps{ 880 Description: "EventDependencyFilter defines filters and constraints for a event.", 881 Type: []string{"object"}, 882 Properties: map[string]spec.Schema{ 883 "time": { 884 SchemaProps: spec.SchemaProps{ 885 Description: "Time filter on the event with escalation", 886 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TimeFilter"), 887 }, 888 }, 889 "context": { 890 SchemaProps: spec.SchemaProps{ 891 Description: "Context filter constraints", 892 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventContext"), 893 }, 894 }, 895 "data": { 896 SchemaProps: spec.SchemaProps{ 897 Description: "Data filter constraints with escalation", 898 Type: []string{"array"}, 899 Items: &spec.SchemaOrArray{ 900 Schema: &spec.Schema{ 901 SchemaProps: spec.SchemaProps{ 902 Default: map[string]interface{}{}, 903 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.DataFilter"), 904 }, 905 }, 906 }, 907 }, 908 }, 909 "exprs": { 910 SchemaProps: spec.SchemaProps{ 911 Description: "Exprs contains the list of expressions evaluated against the event payload.", 912 Type: []string{"array"}, 913 Items: &spec.SchemaOrArray{ 914 Schema: &spec.Schema{ 915 SchemaProps: spec.SchemaProps{ 916 Default: map[string]interface{}{}, 917 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ExprFilter"), 918 }, 919 }, 920 }, 921 }, 922 }, 923 "dataLogicalOperator": { 924 SchemaProps: spec.SchemaProps{ 925 Description: "DataLogicalOperator defines how multiple Data filters (if defined) are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&).", 926 Type: []string{"string"}, 927 Format: "", 928 }, 929 }, 930 "exprLogicalOperator": { 931 SchemaProps: spec.SchemaProps{ 932 Description: "ExprLogicalOperator defines how multiple Exprs filters (if defined) are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&).", 933 Type: []string{"string"}, 934 Format: "", 935 }, 936 }, 937 "script": { 938 SchemaProps: spec.SchemaProps{ 939 Description: "Script refers to a Lua script evaluated to determine the validity of an event.", 940 Type: []string{"string"}, 941 Format: "", 942 }, 943 }, 944 }, 945 }, 946 }, 947 Dependencies: []string{ 948 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.DataFilter", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventContext", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ExprFilter", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TimeFilter"}, 949 } 950 } 951 952 func schema_pkg_apis_sensor_v1alpha1_EventDependencyTransformer(ref common.ReferenceCallback) common.OpenAPIDefinition { 953 return common.OpenAPIDefinition{ 954 Schema: spec.Schema{ 955 SchemaProps: spec.SchemaProps{ 956 Description: "EventDependencyTransformer transforms the event", 957 Type: []string{"object"}, 958 Properties: map[string]spec.Schema{ 959 "jq": { 960 SchemaProps: spec.SchemaProps{ 961 Description: "JQ holds the jq command applied for transformation", 962 Type: []string{"string"}, 963 Format: "", 964 }, 965 }, 966 "script": { 967 SchemaProps: spec.SchemaProps{ 968 Description: "Script refers to a Lua script used to transform the event", 969 Type: []string{"string"}, 970 Format: "", 971 }, 972 }, 973 }, 974 }, 975 }, 976 } 977 } 978 979 func schema_pkg_apis_sensor_v1alpha1_ExprFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { 980 return common.OpenAPIDefinition{ 981 Schema: spec.Schema{ 982 SchemaProps: spec.SchemaProps{ 983 Type: []string{"object"}, 984 Properties: map[string]spec.Schema{ 985 "expr": { 986 SchemaProps: spec.SchemaProps{ 987 Description: "Expr refers to the expression that determines the outcome of the filter.", 988 Default: "", 989 Type: []string{"string"}, 990 Format: "", 991 }, 992 }, 993 "fields": { 994 SchemaProps: spec.SchemaProps{ 995 Description: "Fields refers to set of keys that refer to the paths within event payload.", 996 Type: []string{"array"}, 997 Items: &spec.SchemaOrArray{ 998 Schema: &spec.Schema{ 999 SchemaProps: spec.SchemaProps{ 1000 Default: map[string]interface{}{}, 1001 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PayloadField"), 1002 }, 1003 }, 1004 }, 1005 }, 1006 }, 1007 }, 1008 Required: []string{"expr", "fields"}, 1009 }, 1010 }, 1011 Dependencies: []string{ 1012 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PayloadField"}, 1013 } 1014 } 1015 1016 func schema_pkg_apis_sensor_v1alpha1_FileArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition { 1017 return common.OpenAPIDefinition{ 1018 Schema: spec.Schema{ 1019 SchemaProps: spec.SchemaProps{ 1020 Description: "FileArtifact contains information about an artifact in a filesystem", 1021 Type: []string{"object"}, 1022 Properties: map[string]spec.Schema{ 1023 "path": { 1024 SchemaProps: spec.SchemaProps{ 1025 Type: []string{"string"}, 1026 Format: "", 1027 }, 1028 }, 1029 }, 1030 }, 1031 }, 1032 } 1033 } 1034 1035 func schema_pkg_apis_sensor_v1alpha1_GitArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition { 1036 return common.OpenAPIDefinition{ 1037 Schema: spec.Schema{ 1038 SchemaProps: spec.SchemaProps{ 1039 Description: "GitArtifact contains information about an artifact stored in git", 1040 Type: []string{"object"}, 1041 Properties: map[string]spec.Schema{ 1042 "url": { 1043 SchemaProps: spec.SchemaProps{ 1044 Description: "Git URL", 1045 Default: "", 1046 Type: []string{"string"}, 1047 Format: "", 1048 }, 1049 }, 1050 "cloneDirectory": { 1051 SchemaProps: spec.SchemaProps{ 1052 Description: "Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers. Hence we don't use any specific git provider client.", 1053 Default: "", 1054 Type: []string{"string"}, 1055 Format: "", 1056 }, 1057 }, 1058 "creds": { 1059 SchemaProps: spec.SchemaProps{ 1060 Description: "Creds contain reference to git username and password", 1061 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitCreds"), 1062 }, 1063 }, 1064 "sshKeySecret": { 1065 SchemaProps: spec.SchemaProps{ 1066 Description: "SSHKeySecret refers to the secret that contains SSH key", 1067 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1068 }, 1069 }, 1070 "filePath": { 1071 SchemaProps: spec.SchemaProps{ 1072 Description: "Path to file that contains trigger resource definition", 1073 Default: "", 1074 Type: []string{"string"}, 1075 Format: "", 1076 }, 1077 }, 1078 "branch": { 1079 SchemaProps: spec.SchemaProps{ 1080 Description: "Branch to use to pull trigger resource", 1081 Type: []string{"string"}, 1082 Format: "", 1083 }, 1084 }, 1085 "tag": { 1086 SchemaProps: spec.SchemaProps{ 1087 Description: "Tag to use to pull trigger resource", 1088 Type: []string{"string"}, 1089 Format: "", 1090 }, 1091 }, 1092 "ref": { 1093 SchemaProps: spec.SchemaProps{ 1094 Description: "Ref to use to pull trigger resource. Will result in a shallow clone and fetch.", 1095 Type: []string{"string"}, 1096 Format: "", 1097 }, 1098 }, 1099 "remote": { 1100 SchemaProps: spec.SchemaProps{ 1101 Description: "Remote to manage set of tracked repositories. Defaults to \"origin\". Refer https://git-scm.com/docs/git-remote", 1102 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitRemoteConfig"), 1103 }, 1104 }, 1105 "insecureIgnoreHostKey": { 1106 SchemaProps: spec.SchemaProps{ 1107 Description: "Whether to ignore host key", 1108 Type: []string{"boolean"}, 1109 Format: "", 1110 }, 1111 }, 1112 }, 1113 Required: []string{"url", "cloneDirectory", "filePath"}, 1114 }, 1115 }, 1116 Dependencies: []string{ 1117 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitCreds", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitRemoteConfig", "k8s.io/api/core/v1.SecretKeySelector"}, 1118 } 1119 } 1120 1121 func schema_pkg_apis_sensor_v1alpha1_GitCreds(ref common.ReferenceCallback) common.OpenAPIDefinition { 1122 return common.OpenAPIDefinition{ 1123 Schema: spec.Schema{ 1124 SchemaProps: spec.SchemaProps{ 1125 Description: "GitCreds contain reference to git username and password", 1126 Type: []string{"object"}, 1127 Properties: map[string]spec.Schema{ 1128 "username": { 1129 SchemaProps: spec.SchemaProps{ 1130 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1131 }, 1132 }, 1133 "password": { 1134 SchemaProps: spec.SchemaProps{ 1135 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1136 }, 1137 }, 1138 }, 1139 }, 1140 }, 1141 Dependencies: []string{ 1142 "k8s.io/api/core/v1.SecretKeySelector"}, 1143 } 1144 } 1145 1146 func schema_pkg_apis_sensor_v1alpha1_GitRemoteConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 1147 return common.OpenAPIDefinition{ 1148 Schema: spec.Schema{ 1149 SchemaProps: spec.SchemaProps{ 1150 Description: "GitRemoteConfig contains the configuration of a Git remote", 1151 Type: []string{"object"}, 1152 Properties: map[string]spec.Schema{ 1153 "name": { 1154 SchemaProps: spec.SchemaProps{ 1155 Description: "Name of the remote to fetch from.", 1156 Default: "", 1157 Type: []string{"string"}, 1158 Format: "", 1159 }, 1160 }, 1161 "urls": { 1162 SchemaProps: spec.SchemaProps{ 1163 Description: "URLs the URLs of a remote repository. It must be non-empty. Fetch will always use the first URL, while push will use all of them.", 1164 Type: []string{"array"}, 1165 Items: &spec.SchemaOrArray{ 1166 Schema: &spec.Schema{ 1167 SchemaProps: spec.SchemaProps{ 1168 Default: "", 1169 Type: []string{"string"}, 1170 Format: "", 1171 }, 1172 }, 1173 }, 1174 }, 1175 }, 1176 }, 1177 Required: []string{"name", "urls"}, 1178 }, 1179 }, 1180 } 1181 } 1182 1183 func schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 1184 return common.OpenAPIDefinition{ 1185 Schema: spec.Schema{ 1186 SchemaProps: spec.SchemaProps{ 1187 Description: "HTTPTrigger is the trigger for the HTTP request", 1188 Type: []string{"object"}, 1189 Properties: map[string]spec.Schema{ 1190 "url": { 1191 SchemaProps: spec.SchemaProps{ 1192 Description: "URL refers to the URL to send HTTP request to.", 1193 Default: "", 1194 Type: []string{"string"}, 1195 Format: "", 1196 }, 1197 }, 1198 "payload": { 1199 SchemaProps: spec.SchemaProps{ 1200 Type: []string{"array"}, 1201 Items: &spec.SchemaOrArray{ 1202 Schema: &spec.Schema{ 1203 SchemaProps: spec.SchemaProps{ 1204 Default: map[string]interface{}{}, 1205 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1206 }, 1207 }, 1208 }, 1209 }, 1210 }, 1211 "tls": { 1212 SchemaProps: spec.SchemaProps{ 1213 Description: "TLS configuration for the HTTP client.", 1214 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"), 1215 }, 1216 }, 1217 "method": { 1218 SchemaProps: spec.SchemaProps{ 1219 Description: "Method refers to the type of the HTTP request. Refer https://golang.org/src/net/http/method.go for more info. Default value is POST.", 1220 Type: []string{"string"}, 1221 Format: "", 1222 }, 1223 }, 1224 "parameters": { 1225 SchemaProps: spec.SchemaProps{ 1226 Description: "Parameters is the list of key-value extracted from event's payload that are applied to the HTTP trigger resource.", 1227 Type: []string{"array"}, 1228 Items: &spec.SchemaOrArray{ 1229 Schema: &spec.Schema{ 1230 SchemaProps: spec.SchemaProps{ 1231 Default: map[string]interface{}{}, 1232 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1233 }, 1234 }, 1235 }, 1236 }, 1237 }, 1238 "timeout": { 1239 SchemaProps: spec.SchemaProps{ 1240 Description: "Timeout refers to the HTTP request timeout in seconds. Default value is 60 seconds.", 1241 Type: []string{"integer"}, 1242 Format: "int64", 1243 }, 1244 }, 1245 "basicAuth": { 1246 SchemaProps: spec.SchemaProps{ 1247 Description: "BasicAuth configuration for the http request.", 1248 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.BasicAuth"), 1249 }, 1250 }, 1251 "headers": { 1252 SchemaProps: spec.SchemaProps{ 1253 Description: "Headers for the HTTP request.", 1254 Type: []string{"object"}, 1255 AdditionalProperties: &spec.SchemaOrBool{ 1256 Allows: true, 1257 Schema: &spec.Schema{ 1258 SchemaProps: spec.SchemaProps{ 1259 Default: "", 1260 Type: []string{"string"}, 1261 Format: "", 1262 }, 1263 }, 1264 }, 1265 }, 1266 }, 1267 "secureHeaders": { 1268 SchemaProps: spec.SchemaProps{ 1269 Description: "Secure Headers stored in Kubernetes Secrets for the HTTP requests.", 1270 Type: []string{"array"}, 1271 Items: &spec.SchemaOrArray{ 1272 Schema: &spec.Schema{ 1273 SchemaProps: spec.SchemaProps{ 1274 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.SecureHeader"), 1275 }, 1276 }, 1277 }, 1278 }, 1279 }, 1280 }, 1281 Required: []string{"url", "payload"}, 1282 }, 1283 }, 1284 Dependencies: []string{ 1285 "github.com/argoproj/argo-events/pkg/apis/common.BasicAuth", "github.com/argoproj/argo-events/pkg/apis/common.SecureHeader", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"}, 1286 } 1287 } 1288 1289 func schema_pkg_apis_sensor_v1alpha1_K8SResourcePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 1290 return common.OpenAPIDefinition{ 1291 Schema: spec.Schema{ 1292 SchemaProps: spec.SchemaProps{ 1293 Description: "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using labels", 1294 Type: []string{"object"}, 1295 Properties: map[string]spec.Schema{ 1296 "labels": { 1297 SchemaProps: spec.SchemaProps{ 1298 Description: "Labels required to identify whether a resource is in success state", 1299 Type: []string{"object"}, 1300 AdditionalProperties: &spec.SchemaOrBool{ 1301 Allows: true, 1302 Schema: &spec.Schema{ 1303 SchemaProps: spec.SchemaProps{ 1304 Default: "", 1305 Type: []string{"string"}, 1306 Format: "", 1307 }, 1308 }, 1309 }, 1310 }, 1311 }, 1312 "backoff": { 1313 SchemaProps: spec.SchemaProps{ 1314 Description: "Backoff before checking resource state", 1315 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"), 1316 }, 1317 }, 1318 "errorOnBackoffTimeout": { 1319 SchemaProps: spec.SchemaProps{ 1320 Description: "ErrorOnBackoffTimeout determines whether sensor should transition to error state if the trigger policy is unable to determine the state of the resource", 1321 Default: false, 1322 Type: []string{"boolean"}, 1323 Format: "", 1324 }, 1325 }, 1326 }, 1327 Required: []string{"backoff", "errorOnBackoffTimeout"}, 1328 }, 1329 }, 1330 Dependencies: []string{ 1331 "github.com/argoproj/argo-events/pkg/apis/common.Backoff"}, 1332 } 1333 } 1334 1335 func schema_pkg_apis_sensor_v1alpha1_KafkaTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 1336 return common.OpenAPIDefinition{ 1337 Schema: spec.Schema{ 1338 SchemaProps: spec.SchemaProps{ 1339 Description: "KafkaTrigger refers to the specification of the Kafka trigger.", 1340 Type: []string{"object"}, 1341 Properties: map[string]spec.Schema{ 1342 "url": { 1343 SchemaProps: spec.SchemaProps{ 1344 Description: "URL of the Kafka broker, multiple URLs separated by comma.", 1345 Default: "", 1346 Type: []string{"string"}, 1347 Format: "", 1348 }, 1349 }, 1350 "topic": { 1351 SchemaProps: spec.SchemaProps{ 1352 Description: "Name of the topic. More info at https://kafka.apache.org/documentation/#intro_topics", 1353 Default: "", 1354 Type: []string{"string"}, 1355 Format: "", 1356 }, 1357 }, 1358 "partition": { 1359 SchemaProps: spec.SchemaProps{ 1360 Description: "DEPRECATED", 1361 Default: 0, 1362 Type: []string{"integer"}, 1363 Format: "int32", 1364 }, 1365 }, 1366 "parameters": { 1367 SchemaProps: spec.SchemaProps{ 1368 Description: "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", 1369 Type: []string{"array"}, 1370 Items: &spec.SchemaOrArray{ 1371 Schema: &spec.Schema{ 1372 SchemaProps: spec.SchemaProps{ 1373 Default: map[string]interface{}{}, 1374 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1375 }, 1376 }, 1377 }, 1378 }, 1379 }, 1380 "requiredAcks": { 1381 SchemaProps: spec.SchemaProps{ 1382 Description: "RequiredAcks used in producer to tell the broker how many replica acknowledgements Defaults to 1 (Only wait for the leader to ack).", 1383 Type: []string{"integer"}, 1384 Format: "int32", 1385 }, 1386 }, 1387 "compress": { 1388 SchemaProps: spec.SchemaProps{ 1389 Description: "Compress determines whether to compress message or not. Defaults to false. If set to true, compresses message using snappy compression.", 1390 Type: []string{"boolean"}, 1391 Format: "", 1392 }, 1393 }, 1394 "flushFrequency": { 1395 SchemaProps: spec.SchemaProps{ 1396 Description: "FlushFrequency refers to the frequency in milliseconds to flush batches. Defaults to 500 milliseconds.", 1397 Type: []string{"integer"}, 1398 Format: "int32", 1399 }, 1400 }, 1401 "tls": { 1402 SchemaProps: spec.SchemaProps{ 1403 Description: "TLS configuration for the Kafka producer.", 1404 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"), 1405 }, 1406 }, 1407 "payload": { 1408 SchemaProps: spec.SchemaProps{ 1409 Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.", 1410 Type: []string{"array"}, 1411 Items: &spec.SchemaOrArray{ 1412 Schema: &spec.Schema{ 1413 SchemaProps: spec.SchemaProps{ 1414 Default: map[string]interface{}{}, 1415 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1416 }, 1417 }, 1418 }, 1419 }, 1420 }, 1421 "partitioningKey": { 1422 SchemaProps: spec.SchemaProps{ 1423 Description: "The partitioning key for the messages put on the Kafka topic.", 1424 Type: []string{"string"}, 1425 Format: "", 1426 }, 1427 }, 1428 "version": { 1429 SchemaProps: spec.SchemaProps{ 1430 Description: "Specify what kafka version is being connected to enables certain features in sarama, defaults to 1.0.0", 1431 Type: []string{"string"}, 1432 Format: "", 1433 }, 1434 }, 1435 "sasl": { 1436 SchemaProps: spec.SchemaProps{ 1437 Description: "SASL configuration for the kafka client", 1438 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.SASLConfig"), 1439 }, 1440 }, 1441 "schemaRegistry": { 1442 SchemaProps: spec.SchemaProps{ 1443 Description: "Schema Registry configuration to producer message with avro format", 1444 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.SchemaRegistryConfig"), 1445 }, 1446 }, 1447 }, 1448 Required: []string{"url", "topic", "payload"}, 1449 }, 1450 }, 1451 Dependencies: []string{ 1452 "github.com/argoproj/argo-events/pkg/apis/common.SASLConfig", "github.com/argoproj/argo-events/pkg/apis/common.SchemaRegistryConfig", "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"}, 1453 } 1454 } 1455 1456 func schema_pkg_apis_sensor_v1alpha1_LogTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 1457 return common.OpenAPIDefinition{ 1458 Schema: spec.Schema{ 1459 SchemaProps: spec.SchemaProps{ 1460 Type: []string{"object"}, 1461 Properties: map[string]spec.Schema{ 1462 "intervalSeconds": { 1463 SchemaProps: spec.SchemaProps{ 1464 Description: "Only print messages every interval. Useful to prevent logging too much data for busy events.", 1465 Type: []string{"integer"}, 1466 Format: "int64", 1467 }, 1468 }, 1469 }, 1470 }, 1471 }, 1472 } 1473 } 1474 1475 func schema_pkg_apis_sensor_v1alpha1_NATSTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 1476 return common.OpenAPIDefinition{ 1477 Schema: spec.Schema{ 1478 SchemaProps: spec.SchemaProps{ 1479 Description: "NATSTrigger refers to the specification of the NATS trigger.", 1480 Type: []string{"object"}, 1481 Properties: map[string]spec.Schema{ 1482 "url": { 1483 SchemaProps: spec.SchemaProps{ 1484 Description: "URL of the NATS cluster.", 1485 Default: "", 1486 Type: []string{"string"}, 1487 Format: "", 1488 }, 1489 }, 1490 "subject": { 1491 SchemaProps: spec.SchemaProps{ 1492 Description: "Name of the subject to put message on.", 1493 Default: "", 1494 Type: []string{"string"}, 1495 Format: "", 1496 }, 1497 }, 1498 "payload": { 1499 SchemaProps: spec.SchemaProps{ 1500 Type: []string{"array"}, 1501 Items: &spec.SchemaOrArray{ 1502 Schema: &spec.Schema{ 1503 SchemaProps: spec.SchemaProps{ 1504 Default: map[string]interface{}{}, 1505 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1506 }, 1507 }, 1508 }, 1509 }, 1510 }, 1511 "parameters": { 1512 SchemaProps: spec.SchemaProps{ 1513 Type: []string{"array"}, 1514 Items: &spec.SchemaOrArray{ 1515 Schema: &spec.Schema{ 1516 SchemaProps: spec.SchemaProps{ 1517 Default: map[string]interface{}{}, 1518 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1519 }, 1520 }, 1521 }, 1522 }, 1523 }, 1524 "tls": { 1525 SchemaProps: spec.SchemaProps{ 1526 Description: "TLS configuration for the NATS producer.", 1527 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"), 1528 }, 1529 }, 1530 }, 1531 Required: []string{"url", "subject", "payload"}, 1532 }, 1533 }, 1534 Dependencies: []string{ 1535 "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"}, 1536 } 1537 } 1538 1539 func schema_pkg_apis_sensor_v1alpha1_OpenWhiskTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 1540 return common.OpenAPIDefinition{ 1541 Schema: spec.Schema{ 1542 SchemaProps: spec.SchemaProps{ 1543 Description: "OpenWhiskTrigger refers to the specification of the OpenWhisk trigger.", 1544 Type: []string{"object"}, 1545 Properties: map[string]spec.Schema{ 1546 "host": { 1547 SchemaProps: spec.SchemaProps{ 1548 Description: "Host URL of the OpenWhisk.", 1549 Default: "", 1550 Type: []string{"string"}, 1551 Format: "", 1552 }, 1553 }, 1554 "version": { 1555 SchemaProps: spec.SchemaProps{ 1556 Description: "Version for the API. Defaults to v1.", 1557 Type: []string{"string"}, 1558 Format: "", 1559 }, 1560 }, 1561 "namespace": { 1562 SchemaProps: spec.SchemaProps{ 1563 Description: "Namespace for the action. Defaults to \"_\".", 1564 Type: []string{"string"}, 1565 Format: "", 1566 }, 1567 }, 1568 "authToken": { 1569 SchemaProps: spec.SchemaProps{ 1570 Description: "AuthToken for authentication.", 1571 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1572 }, 1573 }, 1574 "actionName": { 1575 SchemaProps: spec.SchemaProps{ 1576 Description: "Name of the action/function.", 1577 Default: "", 1578 Type: []string{"string"}, 1579 Format: "", 1580 }, 1581 }, 1582 "payload": { 1583 SchemaProps: spec.SchemaProps{ 1584 Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.", 1585 Type: []string{"array"}, 1586 Items: &spec.SchemaOrArray{ 1587 Schema: &spec.Schema{ 1588 SchemaProps: spec.SchemaProps{ 1589 Default: map[string]interface{}{}, 1590 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1591 }, 1592 }, 1593 }, 1594 }, 1595 }, 1596 "parameters": { 1597 SchemaProps: spec.SchemaProps{ 1598 Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", 1599 Type: []string{"array"}, 1600 Items: &spec.SchemaOrArray{ 1601 Schema: &spec.Schema{ 1602 SchemaProps: spec.SchemaProps{ 1603 Default: map[string]interface{}{}, 1604 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1605 }, 1606 }, 1607 }, 1608 }, 1609 }, 1610 }, 1611 Required: []string{"host", "actionName", "payload"}, 1612 }, 1613 }, 1614 Dependencies: []string{ 1615 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 1616 } 1617 } 1618 1619 func schema_pkg_apis_sensor_v1alpha1_PayloadField(ref common.ReferenceCallback) common.OpenAPIDefinition { 1620 return common.OpenAPIDefinition{ 1621 Schema: spec.Schema{ 1622 SchemaProps: spec.SchemaProps{ 1623 Description: "PayloadField binds a value at path within the event payload against a name.", 1624 Type: []string{"object"}, 1625 Properties: map[string]spec.Schema{ 1626 "path": { 1627 SchemaProps: spec.SchemaProps{ 1628 Description: "Path is the JSONPath of the event's (JSON decoded) data key Path is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", 1629 Default: "", 1630 Type: []string{"string"}, 1631 Format: "", 1632 }, 1633 }, 1634 "name": { 1635 SchemaProps: spec.SchemaProps{ 1636 Description: "Name acts as key that holds the value at the path.", 1637 Default: "", 1638 Type: []string{"string"}, 1639 Format: "", 1640 }, 1641 }, 1642 }, 1643 Required: []string{"path", "name"}, 1644 }, 1645 }, 1646 } 1647 } 1648 1649 func schema_pkg_apis_sensor_v1alpha1_PulsarTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 1650 return common.OpenAPIDefinition{ 1651 Schema: spec.Schema{ 1652 SchemaProps: spec.SchemaProps{ 1653 Description: "PulsarTrigger refers to the specification of the Pulsar trigger.", 1654 Type: []string{"object"}, 1655 Properties: map[string]spec.Schema{ 1656 "url": { 1657 SchemaProps: spec.SchemaProps{ 1658 Description: "Configure the service URL for the Pulsar service.", 1659 Default: "", 1660 Type: []string{"string"}, 1661 Format: "", 1662 }, 1663 }, 1664 "topic": { 1665 SchemaProps: spec.SchemaProps{ 1666 Description: "Name of the topic. See https://pulsar.apache.org/docs/en/concepts-messaging/", 1667 Default: "", 1668 Type: []string{"string"}, 1669 Format: "", 1670 }, 1671 }, 1672 "parameters": { 1673 SchemaProps: spec.SchemaProps{ 1674 Description: "Parameters is the list of parameters that is applied to resolved Kafka trigger object.", 1675 Type: []string{"array"}, 1676 Items: &spec.SchemaOrArray{ 1677 Schema: &spec.Schema{ 1678 SchemaProps: spec.SchemaProps{ 1679 Default: map[string]interface{}{}, 1680 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1681 }, 1682 }, 1683 }, 1684 }, 1685 }, 1686 "payload": { 1687 SchemaProps: spec.SchemaProps{ 1688 Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.", 1689 Type: []string{"array"}, 1690 Items: &spec.SchemaOrArray{ 1691 Schema: &spec.Schema{ 1692 SchemaProps: spec.SchemaProps{ 1693 Default: map[string]interface{}{}, 1694 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 1695 }, 1696 }, 1697 }, 1698 }, 1699 }, 1700 "tlsTrustCertsSecret": { 1701 SchemaProps: spec.SchemaProps{ 1702 Description: "Trusted TLS certificate secret.", 1703 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1704 }, 1705 }, 1706 "tlsAllowInsecureConnection": { 1707 SchemaProps: spec.SchemaProps{ 1708 Description: "Whether the Pulsar client accept untrusted TLS certificate from broker.", 1709 Type: []string{"boolean"}, 1710 Format: "", 1711 }, 1712 }, 1713 "tlsValidateHostname": { 1714 SchemaProps: spec.SchemaProps{ 1715 Description: "Whether the Pulsar client verify the validity of the host name from broker.", 1716 Type: []string{"boolean"}, 1717 Format: "", 1718 }, 1719 }, 1720 "tls": { 1721 SchemaProps: spec.SchemaProps{ 1722 Description: "TLS configuration for the pulsar client.", 1723 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.TLSConfig"), 1724 }, 1725 }, 1726 "authTokenSecret": { 1727 SchemaProps: spec.SchemaProps{ 1728 Description: "Authentication token for the pulsar client. Either token or athenz can be set to use auth.", 1729 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1730 }, 1731 }, 1732 "connectionBackoff": { 1733 SchemaProps: spec.SchemaProps{ 1734 Description: "Backoff holds parameters applied to connection.", 1735 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"), 1736 }, 1737 }, 1738 "authAthenzParams": { 1739 SchemaProps: spec.SchemaProps{ 1740 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.", 1741 Type: []string{"object"}, 1742 AdditionalProperties: &spec.SchemaOrBool{ 1743 Allows: true, 1744 Schema: &spec.Schema{ 1745 SchemaProps: spec.SchemaProps{ 1746 Default: "", 1747 Type: []string{"string"}, 1748 Format: "", 1749 }, 1750 }, 1751 }, 1752 }, 1753 }, 1754 "authAthenzSecret": { 1755 SchemaProps: spec.SchemaProps{ 1756 Description: "Authentication athenz privateKey secret for the pulsar client. AuthAthenzSecret must be set if AuthAthenzParams is used.", 1757 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1758 }, 1759 }, 1760 }, 1761 Required: []string{"url", "topic", "payload"}, 1762 }, 1763 }, 1764 Dependencies: []string{ 1765 "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/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 1766 } 1767 } 1768 1769 func schema_pkg_apis_sensor_v1alpha1_RateLimit(ref common.ReferenceCallback) common.OpenAPIDefinition { 1770 return common.OpenAPIDefinition{ 1771 Schema: spec.Schema{ 1772 SchemaProps: spec.SchemaProps{ 1773 Type: []string{"object"}, 1774 Properties: map[string]spec.Schema{ 1775 "unit": { 1776 SchemaProps: spec.SchemaProps{ 1777 Description: "Defaults to Second", 1778 Type: []string{"string"}, 1779 Format: "", 1780 }, 1781 }, 1782 "requestsPerUnit": { 1783 SchemaProps: spec.SchemaProps{ 1784 Type: []string{"integer"}, 1785 Format: "int32", 1786 }, 1787 }, 1788 }, 1789 }, 1790 }, 1791 } 1792 } 1793 1794 func schema_pkg_apis_sensor_v1alpha1_Sensor(ref common.ReferenceCallback) common.OpenAPIDefinition { 1795 return common.OpenAPIDefinition{ 1796 Schema: spec.Schema{ 1797 SchemaProps: spec.SchemaProps{ 1798 Description: "Sensor is the definition of a sensor resource", 1799 Type: []string{"object"}, 1800 Properties: map[string]spec.Schema{ 1801 "kind": { 1802 SchemaProps: spec.SchemaProps{ 1803 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", 1804 Type: []string{"string"}, 1805 Format: "", 1806 }, 1807 }, 1808 "apiVersion": { 1809 SchemaProps: spec.SchemaProps{ 1810 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", 1811 Type: []string{"string"}, 1812 Format: "", 1813 }, 1814 }, 1815 "metadata": { 1816 SchemaProps: spec.SchemaProps{ 1817 Default: map[string]interface{}{}, 1818 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1819 }, 1820 }, 1821 "spec": { 1822 SchemaProps: spec.SchemaProps{ 1823 Default: map[string]interface{}{}, 1824 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorSpec"), 1825 }, 1826 }, 1827 "status": { 1828 SchemaProps: spec.SchemaProps{ 1829 Default: map[string]interface{}{}, 1830 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorStatus"), 1831 }, 1832 }, 1833 }, 1834 Required: []string{"metadata", "spec"}, 1835 }, 1836 }, 1837 Dependencies: []string{ 1838 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorSpec", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1839 } 1840 } 1841 1842 func schema_pkg_apis_sensor_v1alpha1_SensorList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1843 return common.OpenAPIDefinition{ 1844 Schema: spec.Schema{ 1845 SchemaProps: spec.SchemaProps{ 1846 Description: "SensorList is the list of Sensor resources", 1847 Type: []string{"object"}, 1848 Properties: map[string]spec.Schema{ 1849 "kind": { 1850 SchemaProps: spec.SchemaProps{ 1851 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", 1852 Type: []string{"string"}, 1853 Format: "", 1854 }, 1855 }, 1856 "apiVersion": { 1857 SchemaProps: spec.SchemaProps{ 1858 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", 1859 Type: []string{"string"}, 1860 Format: "", 1861 }, 1862 }, 1863 "metadata": { 1864 SchemaProps: spec.SchemaProps{ 1865 Default: map[string]interface{}{}, 1866 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1867 }, 1868 }, 1869 "items": { 1870 SchemaProps: spec.SchemaProps{ 1871 Type: []string{"array"}, 1872 Items: &spec.SchemaOrArray{ 1873 Schema: &spec.Schema{ 1874 SchemaProps: spec.SchemaProps{ 1875 Default: map[string]interface{}{}, 1876 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Sensor"), 1877 }, 1878 }, 1879 }, 1880 }, 1881 }, 1882 }, 1883 Required: []string{"metadata", "items"}, 1884 }, 1885 }, 1886 Dependencies: []string{ 1887 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Sensor", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1888 } 1889 } 1890 1891 func schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1892 return common.OpenAPIDefinition{ 1893 Schema: spec.Schema{ 1894 SchemaProps: spec.SchemaProps{ 1895 Description: "SensorSpec represents desired sensor state", 1896 Type: []string{"object"}, 1897 Properties: map[string]spec.Schema{ 1898 "dependencies": { 1899 SchemaProps: spec.SchemaProps{ 1900 Description: "Dependencies is a list of the events that this sensor is dependent on.", 1901 Type: []string{"array"}, 1902 Items: &spec.SchemaOrArray{ 1903 Schema: &spec.Schema{ 1904 SchemaProps: spec.SchemaProps{ 1905 Default: map[string]interface{}{}, 1906 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependency"), 1907 }, 1908 }, 1909 }, 1910 }, 1911 }, 1912 "triggers": { 1913 SchemaProps: spec.SchemaProps{ 1914 Description: "Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.", 1915 Type: []string{"array"}, 1916 Items: &spec.SchemaOrArray{ 1917 Schema: &spec.Schema{ 1918 SchemaProps: spec.SchemaProps{ 1919 Default: map[string]interface{}{}, 1920 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Trigger"), 1921 }, 1922 }, 1923 }, 1924 }, 1925 }, 1926 "template": { 1927 SchemaProps: spec.SchemaProps{ 1928 Description: "Template is the pod specification for the sensor", 1929 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Template"), 1930 }, 1931 }, 1932 "errorOnFailedRound": { 1933 SchemaProps: spec.SchemaProps{ 1934 Description: "ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails. Once sensor state is set to `error`, no further triggers will be processed.", 1935 Type: []string{"boolean"}, 1936 Format: "", 1937 }, 1938 }, 1939 "eventBusName": { 1940 SchemaProps: spec.SchemaProps{ 1941 Description: "EventBusName references to a EventBus name. By default the value is \"default\"", 1942 Type: []string{"string"}, 1943 Format: "", 1944 }, 1945 }, 1946 "replicas": { 1947 SchemaProps: spec.SchemaProps{ 1948 Description: "Replicas is the sensor deployment replicas", 1949 Type: []string{"integer"}, 1950 Format: "int32", 1951 }, 1952 }, 1953 "revisionHistoryLimit": { 1954 SchemaProps: spec.SchemaProps{ 1955 Description: "RevisionHistoryLimit specifies how many old deployment revisions to retain", 1956 Type: []string{"integer"}, 1957 Format: "int32", 1958 }, 1959 }, 1960 "loggingFields": { 1961 SchemaProps: spec.SchemaProps{ 1962 Description: "LoggingFields add additional key-value pairs when logging happens", 1963 Type: []string{"object"}, 1964 AdditionalProperties: &spec.SchemaOrBool{ 1965 Allows: true, 1966 Schema: &spec.Schema{ 1967 SchemaProps: spec.SchemaProps{ 1968 Default: "", 1969 Type: []string{"string"}, 1970 Format: "", 1971 }, 1972 }, 1973 }, 1974 }, 1975 }, 1976 }, 1977 Required: []string{"dependencies", "triggers"}, 1978 }, 1979 }, 1980 Dependencies: []string{ 1981 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependency", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Template", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Trigger"}, 1982 } 1983 } 1984 1985 func schema_pkg_apis_sensor_v1alpha1_SensorStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1986 return common.OpenAPIDefinition{ 1987 Schema: spec.Schema{ 1988 SchemaProps: spec.SchemaProps{ 1989 Description: "SensorStatus contains information about the status of a sensor.", 1990 Type: []string{"object"}, 1991 Properties: map[string]spec.Schema{ 1992 "conditions": { 1993 VendorExtensible: spec.VendorExtensible{ 1994 Extensions: spec.Extensions{ 1995 "x-kubernetes-patch-merge-key": "type", 1996 "x-kubernetes-patch-strategy": "merge", 1997 }, 1998 }, 1999 SchemaProps: spec.SchemaProps{ 2000 Description: "Conditions are the latest available observations of a resource's current state.", 2001 Type: []string{"array"}, 2002 Items: &spec.SchemaOrArray{ 2003 Schema: &spec.Schema{ 2004 SchemaProps: spec.SchemaProps{ 2005 Default: map[string]interface{}{}, 2006 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Condition"), 2007 }, 2008 }, 2009 }, 2010 }, 2011 }, 2012 }, 2013 }, 2014 }, 2015 Dependencies: []string{ 2016 "github.com/argoproj/argo-events/pkg/apis/common.Condition"}, 2017 } 2018 } 2019 2020 func schema_pkg_apis_sensor_v1alpha1_SlackSender(ref common.ReferenceCallback) common.OpenAPIDefinition { 2021 return common.OpenAPIDefinition{ 2022 Schema: spec.Schema{ 2023 SchemaProps: spec.SchemaProps{ 2024 Type: []string{"object"}, 2025 Properties: map[string]spec.Schema{ 2026 "username": { 2027 SchemaProps: spec.SchemaProps{ 2028 Description: "Username is the Slack application's username", 2029 Type: []string{"string"}, 2030 Format: "", 2031 }, 2032 }, 2033 "icon": { 2034 SchemaProps: spec.SchemaProps{ 2035 Description: "Icon is the Slack application's icon, e.g. :robot_face: or https://example.com/image.png", 2036 Type: []string{"string"}, 2037 Format: "", 2038 }, 2039 }, 2040 }, 2041 }, 2042 }, 2043 } 2044 } 2045 2046 func schema_pkg_apis_sensor_v1alpha1_SlackThread(ref common.ReferenceCallback) common.OpenAPIDefinition { 2047 return common.OpenAPIDefinition{ 2048 Schema: spec.Schema{ 2049 SchemaProps: spec.SchemaProps{ 2050 Type: []string{"object"}, 2051 Properties: map[string]spec.Schema{ 2052 "messageAggregationKey": { 2053 SchemaProps: spec.SchemaProps{ 2054 Description: "MessageAggregationKey allows to aggregate the messages to a thread by some key.", 2055 Type: []string{"string"}, 2056 Format: "", 2057 }, 2058 }, 2059 "broadcastMessageToChannel": { 2060 SchemaProps: spec.SchemaProps{ 2061 Description: "BroadcastMessageToChannel allows to also broadcast the message from the thread to the channel", 2062 Type: []string{"boolean"}, 2063 Format: "", 2064 }, 2065 }, 2066 }, 2067 }, 2068 }, 2069 } 2070 } 2071 2072 func schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 2073 return common.OpenAPIDefinition{ 2074 Schema: spec.Schema{ 2075 SchemaProps: spec.SchemaProps{ 2076 Description: "SlackTrigger refers to the specification of the slack notification trigger.", 2077 Type: []string{"object"}, 2078 Properties: map[string]spec.Schema{ 2079 "parameters": { 2080 SchemaProps: spec.SchemaProps{ 2081 Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.", 2082 Type: []string{"array"}, 2083 Items: &spec.SchemaOrArray{ 2084 Schema: &spec.Schema{ 2085 SchemaProps: spec.SchemaProps{ 2086 Default: map[string]interface{}{}, 2087 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 2088 }, 2089 }, 2090 }, 2091 }, 2092 }, 2093 "slackToken": { 2094 SchemaProps: spec.SchemaProps{ 2095 Description: "SlackToken refers to the Kubernetes secret that holds the slack token required to send messages.", 2096 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 2097 }, 2098 }, 2099 "channel": { 2100 SchemaProps: spec.SchemaProps{ 2101 Description: "Channel refers to which Slack channel to send Slack message.", 2102 Type: []string{"string"}, 2103 Format: "", 2104 }, 2105 }, 2106 "message": { 2107 SchemaProps: spec.SchemaProps{ 2108 Description: "Message refers to the message to send to the Slack channel.", 2109 Type: []string{"string"}, 2110 Format: "", 2111 }, 2112 }, 2113 "attachments": { 2114 SchemaProps: spec.SchemaProps{ 2115 Description: "Attachments is a JSON format string that represents an array of Slack attachments according to the attachments API: https://api.slack.com/reference/messaging/attachments .", 2116 Type: []string{"string"}, 2117 Format: "", 2118 }, 2119 }, 2120 "blocks": { 2121 SchemaProps: spec.SchemaProps{ 2122 Description: "Blocks is a JSON format string that represents an array of Slack blocks according to the blocks API: https://api.slack.com/reference/block-kit/blocks .", 2123 Type: []string{"string"}, 2124 Format: "", 2125 }, 2126 }, 2127 "thread": { 2128 SchemaProps: spec.SchemaProps{ 2129 Description: "Thread refers to additional options for sending messages to a Slack thread.", 2130 Default: map[string]interface{}{}, 2131 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackThread"), 2132 }, 2133 }, 2134 "sender": { 2135 SchemaProps: spec.SchemaProps{ 2136 Description: "Sender refers to additional configuration of the Slack application that sends the message.", 2137 Default: map[string]interface{}{}, 2138 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackSender"), 2139 }, 2140 }, 2141 }, 2142 }, 2143 }, 2144 Dependencies: []string{ 2145 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackSender", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackThread", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "k8s.io/api/core/v1.SecretKeySelector"}, 2146 } 2147 } 2148 2149 func schema_pkg_apis_sensor_v1alpha1_StandardK8STrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 2150 return common.OpenAPIDefinition{ 2151 Schema: spec.Schema{ 2152 SchemaProps: spec.SchemaProps{ 2153 Description: "StandardK8STrigger is the standard Kubernetes resource trigger", 2154 Type: []string{"object"}, 2155 Properties: map[string]spec.Schema{ 2156 "source": { 2157 SchemaProps: spec.SchemaProps{ 2158 Description: "Source of the K8s resource file(s)", 2159 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation"), 2160 }, 2161 }, 2162 "operation": { 2163 SchemaProps: spec.SchemaProps{ 2164 Description: "Operation refers to the type of operation performed on the k8s resource. Default value is Create.", 2165 Type: []string{"string"}, 2166 Format: "", 2167 }, 2168 }, 2169 "parameters": { 2170 SchemaProps: spec.SchemaProps{ 2171 Description: "Parameters is the list of parameters that is applied to resolved K8s trigger object.", 2172 Type: []string{"array"}, 2173 Items: &spec.SchemaOrArray{ 2174 Schema: &spec.Schema{ 2175 SchemaProps: spec.SchemaProps{ 2176 Default: map[string]interface{}{}, 2177 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 2178 }, 2179 }, 2180 }, 2181 }, 2182 }, 2183 "patchStrategy": { 2184 SchemaProps: spec.SchemaProps{ 2185 Description: "PatchStrategy controls the K8s object patching strategy when the trigger operation is specified as patch. possible values: \"application/json-patch+json\" \"application/merge-patch+json\" \"application/strategic-merge-patch+json\" \"application/apply-patch+yaml\". Defaults to \"application/merge-patch+json\"", 2186 Type: []string{"string"}, 2187 Format: "", 2188 }, 2189 }, 2190 "liveObject": { 2191 SchemaProps: spec.SchemaProps{ 2192 Description: "LiveObject specifies whether the resource should be directly fetched from K8s instead of being marshaled from the resource artifact. If set to true, the resource artifact must contain the information required to uniquely identify the resource in the cluster, that is, you must specify \"apiVersion\", \"kind\" as well as \"name\" and \"namespace\" meta data. Only valid for operation type `update`", 2193 Type: []string{"boolean"}, 2194 Format: "", 2195 }, 2196 }, 2197 }, 2198 }, 2199 }, 2200 Dependencies: []string{ 2201 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"}, 2202 } 2203 } 2204 2205 func schema_pkg_apis_sensor_v1alpha1_StatusPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 2206 return common.OpenAPIDefinition{ 2207 Schema: spec.Schema{ 2208 SchemaProps: spec.SchemaProps{ 2209 Description: "StatusPolicy refers to the policy used to check the state of the trigger using response status", 2210 Type: []string{"object"}, 2211 Properties: map[string]spec.Schema{ 2212 "allow": { 2213 SchemaProps: spec.SchemaProps{ 2214 Type: []string{"array"}, 2215 Items: &spec.SchemaOrArray{ 2216 Schema: &spec.Schema{ 2217 SchemaProps: spec.SchemaProps{ 2218 Default: 0, 2219 Type: []string{"integer"}, 2220 Format: "int32", 2221 }, 2222 }, 2223 }, 2224 }, 2225 }, 2226 }, 2227 Required: []string{"allow"}, 2228 }, 2229 }, 2230 } 2231 } 2232 2233 func schema_pkg_apis_sensor_v1alpha1_Template(ref common.ReferenceCallback) common.OpenAPIDefinition { 2234 return common.OpenAPIDefinition{ 2235 Schema: spec.Schema{ 2236 SchemaProps: spec.SchemaProps{ 2237 Description: "Template holds the information of a sensor deployment template", 2238 Type: []string{"object"}, 2239 Properties: map[string]spec.Schema{ 2240 "metadata": { 2241 SchemaProps: spec.SchemaProps{ 2242 Description: "Metadata sets the pods's metadata, i.e. annotations and labels", 2243 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Metadata"), 2244 }, 2245 }, 2246 "serviceAccountName": { 2247 SchemaProps: spec.SchemaProps{ 2248 Description: "ServiceAccountName is the name of the ServiceAccount to use to run sensor pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", 2249 Type: []string{"string"}, 2250 Format: "", 2251 }, 2252 }, 2253 "container": { 2254 SchemaProps: spec.SchemaProps{ 2255 Description: "Container is the main container image to run in the sensor pod", 2256 Ref: ref("k8s.io/api/core/v1.Container"), 2257 }, 2258 }, 2259 "volumes": { 2260 VendorExtensible: spec.VendorExtensible{ 2261 Extensions: spec.Extensions{ 2262 "x-kubernetes-patch-merge-key": "name", 2263 "x-kubernetes-patch-strategy": "merge", 2264 }, 2265 }, 2266 SchemaProps: spec.SchemaProps{ 2267 Description: "Volumes is a list of volumes that can be mounted by containers in a workflow.", 2268 Type: []string{"array"}, 2269 Items: &spec.SchemaOrArray{ 2270 Schema: &spec.Schema{ 2271 SchemaProps: spec.SchemaProps{ 2272 Default: map[string]interface{}{}, 2273 Ref: ref("k8s.io/api/core/v1.Volume"), 2274 }, 2275 }, 2276 }, 2277 }, 2278 }, 2279 "securityContext": { 2280 SchemaProps: spec.SchemaProps{ 2281 Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", 2282 Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), 2283 }, 2284 }, 2285 "nodeSelector": { 2286 SchemaProps: spec.SchemaProps{ 2287 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/", 2288 Type: []string{"object"}, 2289 AdditionalProperties: &spec.SchemaOrBool{ 2290 Allows: true, 2291 Schema: &spec.Schema{ 2292 SchemaProps: spec.SchemaProps{ 2293 Default: "", 2294 Type: []string{"string"}, 2295 Format: "", 2296 }, 2297 }, 2298 }, 2299 }, 2300 }, 2301 "tolerations": { 2302 SchemaProps: spec.SchemaProps{ 2303 Description: "If specified, the pod's tolerations.", 2304 Type: []string{"array"}, 2305 Items: &spec.SchemaOrArray{ 2306 Schema: &spec.Schema{ 2307 SchemaProps: spec.SchemaProps{ 2308 Default: map[string]interface{}{}, 2309 Ref: ref("k8s.io/api/core/v1.Toleration"), 2310 }, 2311 }, 2312 }, 2313 }, 2314 }, 2315 "imagePullSecrets": { 2316 VendorExtensible: spec.VendorExtensible{ 2317 Extensions: spec.Extensions{ 2318 "x-kubernetes-patch-merge-key": "name", 2319 "x-kubernetes-patch-strategy": "merge", 2320 }, 2321 }, 2322 SchemaProps: spec.SchemaProps{ 2323 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", 2324 Type: []string{"array"}, 2325 Items: &spec.SchemaOrArray{ 2326 Schema: &spec.Schema{ 2327 SchemaProps: spec.SchemaProps{ 2328 Default: map[string]interface{}{}, 2329 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 2330 }, 2331 }, 2332 }, 2333 }, 2334 }, 2335 "priorityClassName": { 2336 SchemaProps: spec.SchemaProps{ 2337 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/", 2338 Type: []string{"string"}, 2339 Format: "", 2340 }, 2341 }, 2342 "priority": { 2343 SchemaProps: spec.SchemaProps{ 2344 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/", 2345 Type: []string{"integer"}, 2346 Format: "int32", 2347 }, 2348 }, 2349 "affinity": { 2350 SchemaProps: spec.SchemaProps{ 2351 Description: "If specified, the pod's scheduling constraints", 2352 Ref: ref("k8s.io/api/core/v1.Affinity"), 2353 }, 2354 }, 2355 }, 2356 }, 2357 }, 2358 Dependencies: []string{ 2359 "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"}, 2360 } 2361 } 2362 2363 func schema_pkg_apis_sensor_v1alpha1_TimeFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { 2364 return common.OpenAPIDefinition{ 2365 Schema: spec.Schema{ 2366 SchemaProps: spec.SchemaProps{ 2367 Description: "TimeFilter describes a window in time. It filters out events that occur outside the time limits. In other words, only events that occur after Start and before Stop will pass this filter.", 2368 Type: []string{"object"}, 2369 Properties: map[string]spec.Schema{ 2370 "start": { 2371 SchemaProps: spec.SchemaProps{ 2372 Description: "Start is the beginning of a time window in UTC. Before this time, events for this dependency are ignored. Format is hh:mm:ss.", 2373 Default: "", 2374 Type: []string{"string"}, 2375 Format: "", 2376 }, 2377 }, 2378 "stop": { 2379 SchemaProps: spec.SchemaProps{ 2380 Description: "Stop is the end of a time window in UTC. After or equal to this time, events for this dependency are ignored and Format is hh:mm:ss. If it is smaller than Start, it is treated as next day of Start (e.g.: 22:00:00-01:00:00 means 22:00:00-25:00:00).", 2381 Default: "", 2382 Type: []string{"string"}, 2383 Format: "", 2384 }, 2385 }, 2386 }, 2387 Required: []string{"start", "stop"}, 2388 }, 2389 }, 2390 } 2391 } 2392 2393 func schema_pkg_apis_sensor_v1alpha1_Trigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 2394 return common.OpenAPIDefinition{ 2395 Schema: spec.Schema{ 2396 SchemaProps: spec.SchemaProps{ 2397 Description: "Trigger is an action taken, output produced, an event created, a message sent", 2398 Type: []string{"object"}, 2399 Properties: map[string]spec.Schema{ 2400 "template": { 2401 SchemaProps: spec.SchemaProps{ 2402 Description: "Template describes the trigger specification.", 2403 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerTemplate"), 2404 }, 2405 }, 2406 "parameters": { 2407 SchemaProps: spec.SchemaProps{ 2408 Description: "Parameters is the list of parameters applied to the trigger template definition", 2409 Type: []string{"array"}, 2410 Items: &spec.SchemaOrArray{ 2411 Schema: &spec.Schema{ 2412 SchemaProps: spec.SchemaProps{ 2413 Default: map[string]interface{}{}, 2414 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter"), 2415 }, 2416 }, 2417 }, 2418 }, 2419 }, 2420 "policy": { 2421 SchemaProps: spec.SchemaProps{ 2422 Description: "Policy to configure backoff and execution criteria for the trigger", 2423 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerPolicy"), 2424 }, 2425 }, 2426 "retryStrategy": { 2427 SchemaProps: spec.SchemaProps{ 2428 Description: "Retry strategy, defaults to no retry", 2429 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"), 2430 }, 2431 }, 2432 "rateLimit": { 2433 SchemaProps: spec.SchemaProps{ 2434 Description: "Rate limit, default unit is Second", 2435 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.RateLimit"), 2436 }, 2437 }, 2438 "atLeastOnce": { 2439 SchemaProps: spec.SchemaProps{ 2440 Description: "AtLeastOnce determines the trigger execution semantics. Defaults to false. Trigger execution will use at-most-once semantics. If set to true, Trigger execution will switch to at-least-once semantics.", 2441 Type: []string{"boolean"}, 2442 Format: "", 2443 }, 2444 }, 2445 }, 2446 }, 2447 }, 2448 Dependencies: []string{ 2449 "github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.RateLimit", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerPolicy", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerTemplate"}, 2450 } 2451 } 2452 2453 func schema_pkg_apis_sensor_v1alpha1_TriggerParameter(ref common.ReferenceCallback) common.OpenAPIDefinition { 2454 return common.OpenAPIDefinition{ 2455 Schema: spec.Schema{ 2456 SchemaProps: spec.SchemaProps{ 2457 Description: "TriggerParameter indicates a passed parameter to a service template", 2458 Type: []string{"object"}, 2459 Properties: map[string]spec.Schema{ 2460 "src": { 2461 SchemaProps: spec.SchemaProps{ 2462 Description: "Src contains a source reference to the value of the parameter from a dependency", 2463 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameterSource"), 2464 }, 2465 }, 2466 "dest": { 2467 SchemaProps: spec.SchemaProps{ 2468 Description: "Dest is the JSONPath of a resource key. A path is a series of keys separated by a dot. The colon character can be escaped with '.' The -1 key can be used to append a value to an existing array. See https://github.com/tidwall/sjson#path-syntax for more information about how this is used.", 2469 Default: "", 2470 Type: []string{"string"}, 2471 Format: "", 2472 }, 2473 }, 2474 "operation": { 2475 SchemaProps: spec.SchemaProps{ 2476 Description: "Operation is what to do with the existing value at Dest, whether to 'prepend', 'overwrite', or 'append' it.", 2477 Type: []string{"string"}, 2478 Format: "", 2479 }, 2480 }, 2481 }, 2482 Required: []string{"dest"}, 2483 }, 2484 }, 2485 Dependencies: []string{ 2486 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameterSource"}, 2487 } 2488 } 2489 2490 func schema_pkg_apis_sensor_v1alpha1_TriggerParameterSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2491 return common.OpenAPIDefinition{ 2492 Schema: spec.Schema{ 2493 SchemaProps: spec.SchemaProps{ 2494 Description: "TriggerParameterSource defines the source for a parameter from a event event", 2495 Type: []string{"object"}, 2496 Properties: map[string]spec.Schema{ 2497 "dependencyName": { 2498 SchemaProps: spec.SchemaProps{ 2499 Description: "DependencyName refers to the name of the dependency. The event which is stored for this dependency is used as payload for the parameterization. Make sure to refer to one of the dependencies you have defined under Dependencies list.", 2500 Default: "", 2501 Type: []string{"string"}, 2502 Format: "", 2503 }, 2504 }, 2505 "contextKey": { 2506 SchemaProps: spec.SchemaProps{ 2507 Description: "ContextKey is the JSONPath of the event's (JSON decoded) context key ContextKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", 2508 Type: []string{"string"}, 2509 Format: "", 2510 }, 2511 }, 2512 "contextTemplate": { 2513 SchemaProps: spec.SchemaProps{ 2514 Description: "ContextTemplate is a go-template for extracting a string from the event's context. If a ContextTemplate is provided with a ContextKey, the template will be evaluated first and fallback to the ContextKey. The templating follows the standard go-template syntax as well as sprig's extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/", 2515 Type: []string{"string"}, 2516 Format: "", 2517 }, 2518 }, 2519 "dataKey": { 2520 SchemaProps: spec.SchemaProps{ 2521 Description: "DataKey is the JSONPath of the event's (JSON decoded) data key DataKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.", 2522 Type: []string{"string"}, 2523 Format: "", 2524 }, 2525 }, 2526 "dataTemplate": { 2527 SchemaProps: spec.SchemaProps{ 2528 Description: "DataTemplate is a go-template for extracting a string from the event's data. If a DataTemplate is provided with a DataKey, the template will be evaluated first and fallback to the DataKey. The templating follows the standard go-template syntax as well as sprig's extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/", 2529 Type: []string{"string"}, 2530 Format: "", 2531 }, 2532 }, 2533 "value": { 2534 SchemaProps: spec.SchemaProps{ 2535 Description: "Value is the default literal value to use for this parameter source This is only used if the DataKey is invalid. If the DataKey is invalid and this is not defined, this param source will produce an error.", 2536 Type: []string{"string"}, 2537 Format: "", 2538 }, 2539 }, 2540 "useRawData": { 2541 SchemaProps: spec.SchemaProps{ 2542 Description: "UseRawData indicates if the value in an event at data key should be used without converting to string. When true, a number, boolean, json or string parameter may be extracted. When the field is unspecified, or explicitly false, the behavior is to turn the extracted field into a string. (e.g. when set to true, the parameter 123 will resolve to the numerical type, but when false, or not provided, the string \"123\" will be resolved)", 2543 Type: []string{"boolean"}, 2544 Format: "", 2545 }, 2546 }, 2547 }, 2548 Required: []string{"dependencyName"}, 2549 }, 2550 }, 2551 } 2552 } 2553 2554 func schema_pkg_apis_sensor_v1alpha1_TriggerPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 2555 return common.OpenAPIDefinition{ 2556 Schema: spec.Schema{ 2557 SchemaProps: spec.SchemaProps{ 2558 Description: "TriggerPolicy dictates the policy for the trigger retries", 2559 Type: []string{"object"}, 2560 Properties: map[string]spec.Schema{ 2561 "k8s": { 2562 SchemaProps: spec.SchemaProps{ 2563 Description: "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels", 2564 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy"), 2565 }, 2566 }, 2567 "status": { 2568 SchemaProps: spec.SchemaProps{ 2569 Description: "Status refers to the policy used to check the state of the trigger using response status", 2570 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy"), 2571 }, 2572 }, 2573 }, 2574 }, 2575 }, 2576 Dependencies: []string{ 2577 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy"}, 2578 } 2579 } 2580 2581 func schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 2582 return common.OpenAPIDefinition{ 2583 Schema: spec.Schema{ 2584 SchemaProps: spec.SchemaProps{ 2585 Description: "TriggerTemplate is the template that describes trigger specification.", 2586 Type: []string{"object"}, 2587 Properties: map[string]spec.Schema{ 2588 "name": { 2589 SchemaProps: spec.SchemaProps{ 2590 Description: "Name is a unique name of the action to take.", 2591 Default: "", 2592 Type: []string{"string"}, 2593 Format: "", 2594 }, 2595 }, 2596 "conditions": { 2597 SchemaProps: spec.SchemaProps{ 2598 Description: "Conditions is the conditions to execute the trigger. For example: \"(dep01 || dep02) && dep04\"", 2599 Type: []string{"string"}, 2600 Format: "", 2601 }, 2602 }, 2603 "k8s": { 2604 SchemaProps: spec.SchemaProps{ 2605 Description: "StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.", 2606 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger"), 2607 }, 2608 }, 2609 "argoWorkflow": { 2610 SchemaProps: spec.SchemaProps{ 2611 Description: "ArgoWorkflow refers to the trigger that can perform various operations on an Argo workflow.", 2612 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger"), 2613 }, 2614 }, 2615 "http": { 2616 SchemaProps: spec.SchemaProps{ 2617 Description: "HTTP refers to the trigger designed to dispatch a HTTP request with on-the-fly constructable payload.", 2618 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger"), 2619 }, 2620 }, 2621 "awsLambda": { 2622 SchemaProps: spec.SchemaProps{ 2623 Description: "AWSLambda refers to the trigger designed to invoke AWS Lambda function with with on-the-fly constructable payload.", 2624 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger"), 2625 }, 2626 }, 2627 "custom": { 2628 SchemaProps: spec.SchemaProps{ 2629 Description: "CustomTrigger refers to the trigger designed to connect to a gRPC trigger server and execute a custom trigger.", 2630 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger"), 2631 }, 2632 }, 2633 "kafka": { 2634 SchemaProps: spec.SchemaProps{ 2635 Description: "Kafka refers to the trigger designed to place messages on Kafka topic.", 2636 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger"), 2637 }, 2638 }, 2639 "nats": { 2640 SchemaProps: spec.SchemaProps{ 2641 Description: "NATS refers to the trigger designed to place message on NATS subject.", 2642 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger"), 2643 }, 2644 }, 2645 "slack": { 2646 SchemaProps: spec.SchemaProps{ 2647 Description: "Slack refers to the trigger designed to send slack notification message.", 2648 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger"), 2649 }, 2650 }, 2651 "openWhisk": { 2652 SchemaProps: spec.SchemaProps{ 2653 Description: "OpenWhisk refers to the trigger designed to invoke OpenWhisk action.", 2654 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger"), 2655 }, 2656 }, 2657 "log": { 2658 SchemaProps: spec.SchemaProps{ 2659 Description: "Log refers to the trigger designed to invoke log the event.", 2660 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.LogTrigger"), 2661 }, 2662 }, 2663 "azureEventHubs": { 2664 SchemaProps: spec.SchemaProps{ 2665 Description: "AzureEventHubs refers to the trigger send an event to an Azure Event Hub.", 2666 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureEventHubsTrigger"), 2667 }, 2668 }, 2669 "pulsar": { 2670 SchemaProps: spec.SchemaProps{ 2671 Description: "Pulsar refers to the trigger designed to place messages on Pulsar topic.", 2672 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger"), 2673 }, 2674 }, 2675 "conditionsReset": { 2676 SchemaProps: spec.SchemaProps{ 2677 Description: "Criteria to reset the conditons", 2678 Type: []string{"array"}, 2679 Items: &spec.SchemaOrArray{ 2680 Schema: &spec.Schema{ 2681 SchemaProps: spec.SchemaProps{ 2682 Default: map[string]interface{}{}, 2683 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetCriteria"), 2684 }, 2685 }, 2686 }, 2687 }, 2688 }, 2689 "azureServiceBus": { 2690 SchemaProps: spec.SchemaProps{ 2691 Description: "AzureServiceBus refers to the trigger designed to place messages on Azure Service Bus", 2692 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureServiceBusTrigger"), 2693 }, 2694 }, 2695 "email": { 2696 SchemaProps: spec.SchemaProps{ 2697 Description: "Email refers to the trigger designed to send an email notification", 2698 Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EmailTrigger"), 2699 }, 2700 }, 2701 }, 2702 Required: []string{"name"}, 2703 }, 2704 }, 2705 Dependencies: []string{ 2706 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureEventHubsTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureServiceBusTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetCriteria", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EmailTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.LogTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger"}, 2707 } 2708 } 2709 2710 func schema_pkg_apis_sensor_v1alpha1_URLArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition { 2711 return common.OpenAPIDefinition{ 2712 Schema: spec.Schema{ 2713 SchemaProps: spec.SchemaProps{ 2714 Description: "URLArtifact contains information about an artifact at an http endpoint.", 2715 Type: []string{"object"}, 2716 Properties: map[string]spec.Schema{ 2717 "path": { 2718 SchemaProps: spec.SchemaProps{ 2719 Description: "Path is the complete URL", 2720 Default: "", 2721 Type: []string{"string"}, 2722 Format: "", 2723 }, 2724 }, 2725 "verifyCert": { 2726 SchemaProps: spec.SchemaProps{ 2727 Description: "VerifyCert decides whether the connection is secure or not", 2728 Type: []string{"boolean"}, 2729 Format: "", 2730 }, 2731 }, 2732 }, 2733 Required: []string{"path"}, 2734 }, 2735 }, 2736 } 2737 }