github.com/argoproj/argo-events@v1.9.1/pkg/apis/common/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 common 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/common.Amount": schema_argo_events_pkg_apis_common_Amount(ref), 34 "github.com/argoproj/argo-events/pkg/apis/common.Backoff": schema_argo_events_pkg_apis_common_Backoff(ref), 35 "github.com/argoproj/argo-events/pkg/apis/common.BasicAuth": schema_argo_events_pkg_apis_common_BasicAuth(ref), 36 "github.com/argoproj/argo-events/pkg/apis/common.Condition": schema_argo_events_pkg_apis_common_Condition(ref), 37 "github.com/argoproj/argo-events/pkg/apis/common.Int64OrString": schema_argo_events_pkg_apis_common_Int64OrString(ref), 38 "github.com/argoproj/argo-events/pkg/apis/common.Metadata": schema_argo_events_pkg_apis_common_Metadata(ref), 39 "github.com/argoproj/argo-events/pkg/apis/common.Resource": schema_argo_events_pkg_apis_common_Resource(ref), 40 "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact": schema_argo_events_pkg_apis_common_S3Artifact(ref), 41 "github.com/argoproj/argo-events/pkg/apis/common.S3Bucket": schema_argo_events_pkg_apis_common_S3Bucket(ref), 42 "github.com/argoproj/argo-events/pkg/apis/common.S3Filter": schema_argo_events_pkg_apis_common_S3Filter(ref), 43 "github.com/argoproj/argo-events/pkg/apis/common.SASLConfig": schema_argo_events_pkg_apis_common_SASLConfig(ref), 44 "github.com/argoproj/argo-events/pkg/apis/common.SchemaRegistryConfig": schema_argo_events_pkg_apis_common_SchemaRegistryConfig(ref), 45 "github.com/argoproj/argo-events/pkg/apis/common.SecureHeader": schema_argo_events_pkg_apis_common_SecureHeader(ref), 46 "github.com/argoproj/argo-events/pkg/apis/common.Status": schema_argo_events_pkg_apis_common_Status(ref), 47 "github.com/argoproj/argo-events/pkg/apis/common.TLSConfig": schema_argo_events_pkg_apis_common_TLSConfig(ref), 48 "github.com/argoproj/argo-events/pkg/apis/common.ValueFromSource": schema_argo_events_pkg_apis_common_ValueFromSource(ref), 49 } 50 } 51 52 func schema_argo_events_pkg_apis_common_Amount(ref common.ReferenceCallback) common.OpenAPIDefinition { 53 return common.OpenAPIDefinition{ 54 Schema: spec.Schema{ 55 SchemaProps: spec.SchemaProps{ 56 Description: "Amount represent a numeric amount.", 57 Type: Amount{}.OpenAPISchemaType(), 58 Format: Amount{}.OpenAPISchemaFormat(), 59 }, 60 }, 61 } 62 } 63 64 func schema_argo_events_pkg_apis_common_Backoff(ref common.ReferenceCallback) common.OpenAPIDefinition { 65 return common.OpenAPIDefinition{ 66 Schema: spec.Schema{ 67 SchemaProps: spec.SchemaProps{ 68 Description: "Backoff for an operation", 69 Type: []string{"object"}, 70 Properties: map[string]spec.Schema{ 71 "duration": { 72 SchemaProps: spec.SchemaProps{ 73 Description: "The initial duration in nanoseconds or strings like \"1s\", \"3m\"", 74 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Int64OrString"), 75 }, 76 }, 77 "factor": { 78 SchemaProps: spec.SchemaProps{ 79 Description: "Duration is multiplied by factor each iteration", 80 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Amount"), 81 }, 82 }, 83 "jitter": { 84 SchemaProps: spec.SchemaProps{ 85 Description: "The amount of jitter applied each iteration", 86 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Amount"), 87 }, 88 }, 89 "steps": { 90 SchemaProps: spec.SchemaProps{ 91 Description: "Exit with error after this many steps", 92 Type: []string{"integer"}, 93 Format: "int32", 94 }, 95 }, 96 }, 97 }, 98 }, 99 Dependencies: []string{ 100 "github.com/argoproj/argo-events/pkg/apis/common.Amount", "github.com/argoproj/argo-events/pkg/apis/common.Int64OrString"}, 101 } 102 } 103 104 func schema_argo_events_pkg_apis_common_BasicAuth(ref common.ReferenceCallback) common.OpenAPIDefinition { 105 return common.OpenAPIDefinition{ 106 Schema: spec.Schema{ 107 SchemaProps: spec.SchemaProps{ 108 Description: "BasicAuth contains the reference to K8s secrets that holds the username and password", 109 Type: []string{"object"}, 110 Properties: map[string]spec.Schema{ 111 "username": { 112 SchemaProps: spec.SchemaProps{ 113 Description: "Username refers to the Kubernetes secret that holds the username required for basic auth.", 114 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 115 }, 116 }, 117 "password": { 118 SchemaProps: spec.SchemaProps{ 119 Description: "Password refers to the Kubernetes secret that holds the password required for basic auth.", 120 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 121 }, 122 }, 123 }, 124 }, 125 }, 126 Dependencies: []string{ 127 "k8s.io/api/core/v1.SecretKeySelector"}, 128 } 129 } 130 131 func schema_argo_events_pkg_apis_common_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 132 return common.OpenAPIDefinition{ 133 Schema: spec.Schema{ 134 SchemaProps: spec.SchemaProps{ 135 Description: "Condition contains details about resource state", 136 Type: []string{"object"}, 137 Properties: map[string]spec.Schema{ 138 "type": { 139 SchemaProps: spec.SchemaProps{ 140 Description: "Condition type.", 141 Default: "", 142 Type: []string{"string"}, 143 Format: "", 144 }, 145 }, 146 "status": { 147 SchemaProps: spec.SchemaProps{ 148 Description: "Condition status, True, False or Unknown.", 149 Default: "", 150 Type: []string{"string"}, 151 Format: "", 152 }, 153 }, 154 "lastTransitionTime": { 155 SchemaProps: spec.SchemaProps{ 156 Description: "Last time the condition transitioned from one status to another.", 157 Default: map[string]interface{}{}, 158 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 159 }, 160 }, 161 "reason": { 162 SchemaProps: spec.SchemaProps{ 163 Description: "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. For example, \"ImageNotFound\"", 164 Type: []string{"string"}, 165 Format: "", 166 }, 167 }, 168 "message": { 169 SchemaProps: spec.SchemaProps{ 170 Description: "Human-readable message indicating details about last transition.", 171 Type: []string{"string"}, 172 Format: "", 173 }, 174 }, 175 }, 176 Required: []string{"type", "status"}, 177 }, 178 }, 179 Dependencies: []string{ 180 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 181 } 182 } 183 184 func schema_argo_events_pkg_apis_common_Int64OrString(ref common.ReferenceCallback) common.OpenAPIDefinition { 185 return common.OpenAPIDefinition{ 186 Schema: spec.Schema{ 187 SchemaProps: spec.SchemaProps{ 188 Type: Int64OrString{}.OpenAPISchemaType(), 189 Format: Int64OrString{}.OpenAPISchemaFormat(), 190 }, 191 }, 192 } 193 } 194 195 func schema_argo_events_pkg_apis_common_Metadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 196 return common.OpenAPIDefinition{ 197 Schema: spec.Schema{ 198 SchemaProps: spec.SchemaProps{ 199 Description: "Metadata holds the annotations and labels of an event source pod", 200 Type: []string{"object"}, 201 Properties: map[string]spec.Schema{ 202 "annotations": { 203 SchemaProps: spec.SchemaProps{ 204 Type: []string{"object"}, 205 AdditionalProperties: &spec.SchemaOrBool{ 206 Allows: true, 207 Schema: &spec.Schema{ 208 SchemaProps: spec.SchemaProps{ 209 Default: "", 210 Type: []string{"string"}, 211 Format: "", 212 }, 213 }, 214 }, 215 }, 216 }, 217 "labels": { 218 SchemaProps: spec.SchemaProps{ 219 Type: []string{"object"}, 220 AdditionalProperties: &spec.SchemaOrBool{ 221 Allows: true, 222 Schema: &spec.Schema{ 223 SchemaProps: spec.SchemaProps{ 224 Default: "", 225 Type: []string{"string"}, 226 Format: "", 227 }, 228 }, 229 }, 230 }, 231 }, 232 }, 233 }, 234 }, 235 } 236 } 237 238 func schema_argo_events_pkg_apis_common_Resource(ref common.ReferenceCallback) common.OpenAPIDefinition { 239 return common.OpenAPIDefinition{ 240 Schema: spec.Schema{ 241 SchemaProps: spec.SchemaProps{ 242 Description: "Resource represent arbitrary structured data.", 243 Type: Resource{}.OpenAPISchemaType(), 244 Format: Resource{}.OpenAPISchemaFormat(), 245 }, 246 }, 247 } 248 } 249 250 func schema_argo_events_pkg_apis_common_S3Artifact(ref common.ReferenceCallback) common.OpenAPIDefinition { 251 return common.OpenAPIDefinition{ 252 Schema: spec.Schema{ 253 SchemaProps: spec.SchemaProps{ 254 Description: "S3Artifact contains information about an S3 connection and bucket", 255 Type: []string{"object"}, 256 Properties: map[string]spec.Schema{ 257 "endpoint": { 258 SchemaProps: spec.SchemaProps{ 259 Default: "", 260 Type: []string{"string"}, 261 Format: "", 262 }, 263 }, 264 "bucket": { 265 SchemaProps: spec.SchemaProps{ 266 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.S3Bucket"), 267 }, 268 }, 269 "region": { 270 SchemaProps: spec.SchemaProps{ 271 Type: []string{"string"}, 272 Format: "", 273 }, 274 }, 275 "insecure": { 276 SchemaProps: spec.SchemaProps{ 277 Type: []string{"boolean"}, 278 Format: "", 279 }, 280 }, 281 "accessKey": { 282 SchemaProps: spec.SchemaProps{ 283 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 284 }, 285 }, 286 "secretKey": { 287 SchemaProps: spec.SchemaProps{ 288 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 289 }, 290 }, 291 "events": { 292 SchemaProps: spec.SchemaProps{ 293 Type: []string{"array"}, 294 Items: &spec.SchemaOrArray{ 295 Schema: &spec.Schema{ 296 SchemaProps: spec.SchemaProps{ 297 Default: "", 298 Type: []string{"string"}, 299 Format: "", 300 }, 301 }, 302 }, 303 }, 304 }, 305 "filter": { 306 SchemaProps: spec.SchemaProps{ 307 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.S3Filter"), 308 }, 309 }, 310 "metadata": { 311 SchemaProps: spec.SchemaProps{ 312 Type: []string{"object"}, 313 AdditionalProperties: &spec.SchemaOrBool{ 314 Allows: true, 315 Schema: &spec.Schema{ 316 SchemaProps: spec.SchemaProps{ 317 Default: "", 318 Type: []string{"string"}, 319 Format: "", 320 }, 321 }, 322 }, 323 }, 324 }, 325 "caCertificate": { 326 SchemaProps: spec.SchemaProps{ 327 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 328 }, 329 }, 330 }, 331 Required: []string{"endpoint", "bucket", "accessKey", "secretKey"}, 332 }, 333 }, 334 Dependencies: []string{ 335 "github.com/argoproj/argo-events/pkg/apis/common.S3Bucket", "github.com/argoproj/argo-events/pkg/apis/common.S3Filter", "k8s.io/api/core/v1.SecretKeySelector"}, 336 } 337 } 338 339 func schema_argo_events_pkg_apis_common_S3Bucket(ref common.ReferenceCallback) common.OpenAPIDefinition { 340 return common.OpenAPIDefinition{ 341 Schema: spec.Schema{ 342 SchemaProps: spec.SchemaProps{ 343 Description: "S3Bucket contains information to describe an S3 Bucket", 344 Type: []string{"object"}, 345 Properties: map[string]spec.Schema{ 346 "key": { 347 SchemaProps: spec.SchemaProps{ 348 Type: []string{"string"}, 349 Format: "", 350 }, 351 }, 352 "name": { 353 SchemaProps: spec.SchemaProps{ 354 Default: "", 355 Type: []string{"string"}, 356 Format: "", 357 }, 358 }, 359 }, 360 Required: []string{"name"}, 361 }, 362 }, 363 } 364 } 365 366 func schema_argo_events_pkg_apis_common_S3Filter(ref common.ReferenceCallback) common.OpenAPIDefinition { 367 return common.OpenAPIDefinition{ 368 Schema: spec.Schema{ 369 SchemaProps: spec.SchemaProps{ 370 Description: "S3Filter represents filters to apply to bucket notifications for specifying constraints on objects", 371 Type: []string{"object"}, 372 Properties: map[string]spec.Schema{ 373 "prefix": { 374 SchemaProps: spec.SchemaProps{ 375 Default: "", 376 Type: []string{"string"}, 377 Format: "", 378 }, 379 }, 380 "suffix": { 381 SchemaProps: spec.SchemaProps{ 382 Default: "", 383 Type: []string{"string"}, 384 Format: "", 385 }, 386 }, 387 }, 388 Required: []string{"prefix", "suffix"}, 389 }, 390 }, 391 } 392 } 393 394 func schema_argo_events_pkg_apis_common_SASLConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 395 return common.OpenAPIDefinition{ 396 Schema: spec.Schema{ 397 SchemaProps: spec.SchemaProps{ 398 Description: "SASLConfig refers to SASL configuration for a client", 399 Type: []string{"object"}, 400 Properties: map[string]spec.Schema{ 401 "mechanism": { 402 SchemaProps: spec.SchemaProps{ 403 Description: "SASLMechanism is the name of the enabled SASL mechanism. Possible values: OAUTHBEARER, PLAIN (defaults to PLAIN).", 404 Type: []string{"string"}, 405 Format: "", 406 }, 407 }, 408 "userSecret": { 409 SchemaProps: spec.SchemaProps{ 410 Description: "User is the authentication identity (authcid) to present for SASL/PLAIN or SASL/SCRAM authentication", 411 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 412 }, 413 }, 414 "passwordSecret": { 415 SchemaProps: spec.SchemaProps{ 416 Description: "Password for SASL/PLAIN authentication", 417 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 418 }, 419 }, 420 }, 421 }, 422 }, 423 Dependencies: []string{ 424 "k8s.io/api/core/v1.SecretKeySelector"}, 425 } 426 } 427 428 func schema_argo_events_pkg_apis_common_SchemaRegistryConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 429 return common.OpenAPIDefinition{ 430 Schema: spec.Schema{ 431 SchemaProps: spec.SchemaProps{ 432 Description: "SchemaRegistryConfig refers to configuration for a client", 433 Type: []string{"object"}, 434 Properties: map[string]spec.Schema{ 435 "url": { 436 SchemaProps: spec.SchemaProps{ 437 Description: "Schema Registry URL.", 438 Default: "", 439 Type: []string{"string"}, 440 Format: "", 441 }, 442 }, 443 "schemaId": { 444 SchemaProps: spec.SchemaProps{ 445 Description: "Schema ID", 446 Default: 0, 447 Type: []string{"integer"}, 448 Format: "int32", 449 }, 450 }, 451 "auth": { 452 SchemaProps: spec.SchemaProps{ 453 Description: "SchemaRegistry - basic authentication", 454 Default: map[string]interface{}{}, 455 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.BasicAuth"), 456 }, 457 }, 458 }, 459 Required: []string{"url", "schemaId"}, 460 }, 461 }, 462 Dependencies: []string{ 463 "github.com/argoproj/argo-events/pkg/apis/common.BasicAuth"}, 464 } 465 } 466 467 func schema_argo_events_pkg_apis_common_SecureHeader(ref common.ReferenceCallback) common.OpenAPIDefinition { 468 return common.OpenAPIDefinition{ 469 Schema: spec.Schema{ 470 SchemaProps: spec.SchemaProps{ 471 Description: "SecureHeader refers to HTTP Headers with auth tokens as values", 472 Type: []string{"object"}, 473 Properties: map[string]spec.Schema{ 474 "name": { 475 SchemaProps: spec.SchemaProps{ 476 Type: []string{"string"}, 477 Format: "", 478 }, 479 }, 480 "valueFrom": { 481 SchemaProps: spec.SchemaProps{ 482 Description: "Values can be read from either secrets or configmaps", 483 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.ValueFromSource"), 484 }, 485 }, 486 }, 487 }, 488 }, 489 Dependencies: []string{ 490 "github.com/argoproj/argo-events/pkg/apis/common.ValueFromSource"}, 491 } 492 } 493 494 func schema_argo_events_pkg_apis_common_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 495 return common.OpenAPIDefinition{ 496 Schema: spec.Schema{ 497 SchemaProps: spec.SchemaProps{ 498 Description: "Status is a common structure which can be used for Status field.", 499 Type: []string{"object"}, 500 Properties: map[string]spec.Schema{ 501 "conditions": { 502 VendorExtensible: spec.VendorExtensible{ 503 Extensions: spec.Extensions{ 504 "x-kubernetes-patch-merge-key": "type", 505 "x-kubernetes-patch-strategy": "merge", 506 }, 507 }, 508 SchemaProps: spec.SchemaProps{ 509 Description: "Conditions are the latest available observations of a resource's current state.", 510 Type: []string{"array"}, 511 Items: &spec.SchemaOrArray{ 512 Schema: &spec.Schema{ 513 SchemaProps: spec.SchemaProps{ 514 Default: map[string]interface{}{}, 515 Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Condition"), 516 }, 517 }, 518 }, 519 }, 520 }, 521 }, 522 }, 523 }, 524 Dependencies: []string{ 525 "github.com/argoproj/argo-events/pkg/apis/common.Condition"}, 526 } 527 } 528 529 func schema_argo_events_pkg_apis_common_TLSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 530 return common.OpenAPIDefinition{ 531 Schema: spec.Schema{ 532 SchemaProps: spec.SchemaProps{ 533 Description: "TLSConfig refers to TLS configuration for a client.", 534 Type: []string{"object"}, 535 Properties: map[string]spec.Schema{ 536 "caCertSecret": { 537 SchemaProps: spec.SchemaProps{ 538 Description: "CACertSecret refers to the secret that contains the CA cert", 539 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 540 }, 541 }, 542 "clientCertSecret": { 543 SchemaProps: spec.SchemaProps{ 544 Description: "ClientCertSecret refers to the secret that contains the client cert", 545 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 546 }, 547 }, 548 "clientKeySecret": { 549 SchemaProps: spec.SchemaProps{ 550 Description: "ClientKeySecret refers to the secret that contains the client key", 551 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 552 }, 553 }, 554 "insecureSkipVerify": { 555 SchemaProps: spec.SchemaProps{ 556 Description: "If true, skips creation of TLSConfig with certs and creates an empty TLSConfig. (Defaults to false)", 557 Type: []string{"boolean"}, 558 Format: "", 559 }, 560 }, 561 }, 562 }, 563 }, 564 Dependencies: []string{ 565 "k8s.io/api/core/v1.SecretKeySelector"}, 566 } 567 } 568 569 func schema_argo_events_pkg_apis_common_ValueFromSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 570 return common.OpenAPIDefinition{ 571 Schema: spec.Schema{ 572 SchemaProps: spec.SchemaProps{ 573 Description: "ValueFromSource allows you to reference keys from either a Configmap or Secret", 574 Type: []string{"object"}, 575 Properties: map[string]spec.Schema{ 576 "secretKeyRef": { 577 SchemaProps: spec.SchemaProps{ 578 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 579 }, 580 }, 581 "configMapKeyRef": { 582 SchemaProps: spec.SchemaProps{ 583 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 584 }, 585 }, 586 }, 587 }, 588 }, 589 Dependencies: []string{ 590 "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.SecretKeySelector"}, 591 } 592 }