github.com/jenkins-x/jx-api@v0.0.24/pkg/client/openapi/k8s_io_api_rbac_v1/openapi_generated.go (about) 1 // +build !ignore_autogenerated 2 3 // Code generated by openapi-gen. DO NOT EDIT. 4 5 // This file was autogenerated by openapi-gen. Do not edit it manually! 6 7 package k8s_io_api_rbac_v1 8 9 import ( 10 spec "github.com/go-openapi/spec" 11 common "k8s.io/kube-openapi/pkg/common" 12 ) 13 14 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 15 return map[string]common.OpenAPIDefinition{ 16 "k8s.io/api/rbac/v1.AggregationRule": schema_k8sio_api_rbac_v1_AggregationRule(ref), 17 "k8s.io/api/rbac/v1.ClusterRole": schema_k8sio_api_rbac_v1_ClusterRole(ref), 18 "k8s.io/api/rbac/v1.ClusterRoleBinding": schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), 19 "k8s.io/api/rbac/v1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), 20 "k8s.io/api/rbac/v1.ClusterRoleList": schema_k8sio_api_rbac_v1_ClusterRoleList(ref), 21 "k8s.io/api/rbac/v1.PolicyRule": schema_k8sio_api_rbac_v1_PolicyRule(ref), 22 "k8s.io/api/rbac/v1.Role": schema_k8sio_api_rbac_v1_Role(ref), 23 "k8s.io/api/rbac/v1.RoleBinding": schema_k8sio_api_rbac_v1_RoleBinding(ref), 24 "k8s.io/api/rbac/v1.RoleBindingList": schema_k8sio_api_rbac_v1_RoleBindingList(ref), 25 "k8s.io/api/rbac/v1.RoleList": schema_k8sio_api_rbac_v1_RoleList(ref), 26 "k8s.io/api/rbac/v1.RoleRef": schema_k8sio_api_rbac_v1_RoleRef(ref), 27 "k8s.io/api/rbac/v1.Subject": schema_k8sio_api_rbac_v1_Subject(ref), 28 } 29 } 30 31 func schema_k8sio_api_rbac_v1_AggregationRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 32 return common.OpenAPIDefinition{ 33 Schema: spec.Schema{ 34 SchemaProps: spec.SchemaProps{ 35 Description: "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", 36 Type: []string{"object"}, 37 Properties: map[string]spec.Schema{ 38 "clusterRoleSelectors": { 39 SchemaProps: spec.SchemaProps{ 40 Description: "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", 41 Type: []string{"array"}, 42 Items: &spec.SchemaOrArray{ 43 Schema: &spec.Schema{ 44 SchemaProps: spec.SchemaProps{ 45 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 46 }, 47 }, 48 }, 49 }, 50 }, 51 }, 52 }, 53 }, 54 Dependencies: []string{ 55 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 56 } 57 } 58 59 func schema_k8sio_api_rbac_v1_ClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { 60 return common.OpenAPIDefinition{ 61 Schema: spec.Schema{ 62 SchemaProps: spec.SchemaProps{ 63 Description: "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", 64 Type: []string{"object"}, 65 Properties: map[string]spec.Schema{ 66 "kind": { 67 SchemaProps: spec.SchemaProps{ 68 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", 69 Type: []string{"string"}, 70 Format: "", 71 }, 72 }, 73 "apiVersion": { 74 SchemaProps: spec.SchemaProps{ 75 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", 76 Type: []string{"string"}, 77 Format: "", 78 }, 79 }, 80 "metadata": { 81 SchemaProps: spec.SchemaProps{ 82 Description: "Standard object's metadata.", 83 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 84 }, 85 }, 86 "rules": { 87 SchemaProps: spec.SchemaProps{ 88 Description: "Rules holds all the PolicyRules for this ClusterRole", 89 Type: []string{"array"}, 90 Items: &spec.SchemaOrArray{ 91 Schema: &spec.Schema{ 92 SchemaProps: spec.SchemaProps{ 93 Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), 94 }, 95 }, 96 }, 97 }, 98 }, 99 "aggregationRule": { 100 SchemaProps: spec.SchemaProps{ 101 Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", 102 Ref: ref("k8s.io/api/rbac/v1.AggregationRule"), 103 }, 104 }, 105 }, 106 }, 107 }, 108 Dependencies: []string{ 109 "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 110 } 111 } 112 113 func schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { 114 return common.OpenAPIDefinition{ 115 Schema: spec.Schema{ 116 SchemaProps: spec.SchemaProps{ 117 Description: "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", 118 Type: []string{"object"}, 119 Properties: map[string]spec.Schema{ 120 "kind": { 121 SchemaProps: spec.SchemaProps{ 122 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", 123 Type: []string{"string"}, 124 Format: "", 125 }, 126 }, 127 "apiVersion": { 128 SchemaProps: spec.SchemaProps{ 129 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", 130 Type: []string{"string"}, 131 Format: "", 132 }, 133 }, 134 "metadata": { 135 SchemaProps: spec.SchemaProps{ 136 Description: "Standard object's metadata.", 137 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 138 }, 139 }, 140 "subjects": { 141 SchemaProps: spec.SchemaProps{ 142 Description: "Subjects holds references to the objects the role applies to.", 143 Type: []string{"array"}, 144 Items: &spec.SchemaOrArray{ 145 Schema: &spec.Schema{ 146 SchemaProps: spec.SchemaProps{ 147 Ref: ref("k8s.io/api/rbac/v1.Subject"), 148 }, 149 }, 150 }, 151 }, 152 }, 153 "roleRef": { 154 SchemaProps: spec.SchemaProps{ 155 Description: "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", 156 Ref: ref("k8s.io/api/rbac/v1.RoleRef"), 157 }, 158 }, 159 }, 160 Required: []string{"roleRef"}, 161 }, 162 }, 163 Dependencies: []string{ 164 "k8s.io/api/rbac/v1.RoleRef", "k8s.io/api/rbac/v1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 165 } 166 } 167 168 func schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { 169 return common.OpenAPIDefinition{ 170 Schema: spec.Schema{ 171 SchemaProps: spec.SchemaProps{ 172 Description: "ClusterRoleBindingList is a collection of ClusterRoleBindings", 173 Type: []string{"object"}, 174 Properties: map[string]spec.Schema{ 175 "kind": { 176 SchemaProps: spec.SchemaProps{ 177 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", 178 Type: []string{"string"}, 179 Format: "", 180 }, 181 }, 182 "apiVersion": { 183 SchemaProps: spec.SchemaProps{ 184 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", 185 Type: []string{"string"}, 186 Format: "", 187 }, 188 }, 189 "metadata": { 190 SchemaProps: spec.SchemaProps{ 191 Description: "Standard object's metadata.", 192 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 193 }, 194 }, 195 "items": { 196 SchemaProps: spec.SchemaProps{ 197 Description: "Items is a list of ClusterRoleBindings", 198 Type: []string{"array"}, 199 Items: &spec.SchemaOrArray{ 200 Schema: &spec.Schema{ 201 SchemaProps: spec.SchemaProps{ 202 Ref: ref("k8s.io/api/rbac/v1.ClusterRoleBinding"), 203 }, 204 }, 205 }, 206 }, 207 }, 208 }, 209 Required: []string{"items"}, 210 }, 211 }, 212 Dependencies: []string{ 213 "k8s.io/api/rbac/v1.ClusterRoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 214 } 215 } 216 217 func schema_k8sio_api_rbac_v1_ClusterRoleList(ref common.ReferenceCallback) common.OpenAPIDefinition { 218 return common.OpenAPIDefinition{ 219 Schema: spec.Schema{ 220 SchemaProps: spec.SchemaProps{ 221 Description: "ClusterRoleList is a collection of ClusterRoles", 222 Type: []string{"object"}, 223 Properties: map[string]spec.Schema{ 224 "kind": { 225 SchemaProps: spec.SchemaProps{ 226 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", 227 Type: []string{"string"}, 228 Format: "", 229 }, 230 }, 231 "apiVersion": { 232 SchemaProps: spec.SchemaProps{ 233 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", 234 Type: []string{"string"}, 235 Format: "", 236 }, 237 }, 238 "metadata": { 239 SchemaProps: spec.SchemaProps{ 240 Description: "Standard object's metadata.", 241 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 242 }, 243 }, 244 "items": { 245 SchemaProps: spec.SchemaProps{ 246 Description: "Items is a list of ClusterRoles", 247 Type: []string{"array"}, 248 Items: &spec.SchemaOrArray{ 249 Schema: &spec.Schema{ 250 SchemaProps: spec.SchemaProps{ 251 Ref: ref("k8s.io/api/rbac/v1.ClusterRole"), 252 }, 253 }, 254 }, 255 }, 256 }, 257 }, 258 Required: []string{"items"}, 259 }, 260 }, 261 Dependencies: []string{ 262 "k8s.io/api/rbac/v1.ClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 263 } 264 } 265 266 func schema_k8sio_api_rbac_v1_PolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 267 return common.OpenAPIDefinition{ 268 Schema: spec.Schema{ 269 SchemaProps: spec.SchemaProps{ 270 Description: "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", 271 Type: []string{"object"}, 272 Properties: map[string]spec.Schema{ 273 "verbs": { 274 SchemaProps: spec.SchemaProps{ 275 Description: "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", 276 Type: []string{"array"}, 277 Items: &spec.SchemaOrArray{ 278 Schema: &spec.Schema{ 279 SchemaProps: spec.SchemaProps{ 280 Type: []string{"string"}, 281 Format: "", 282 }, 283 }, 284 }, 285 }, 286 }, 287 "apiGroups": { 288 SchemaProps: spec.SchemaProps{ 289 Description: "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", 290 Type: []string{"array"}, 291 Items: &spec.SchemaOrArray{ 292 Schema: &spec.Schema{ 293 SchemaProps: spec.SchemaProps{ 294 Type: []string{"string"}, 295 Format: "", 296 }, 297 }, 298 }, 299 }, 300 }, 301 "resources": { 302 SchemaProps: spec.SchemaProps{ 303 Description: "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", 304 Type: []string{"array"}, 305 Items: &spec.SchemaOrArray{ 306 Schema: &spec.Schema{ 307 SchemaProps: spec.SchemaProps{ 308 Type: []string{"string"}, 309 Format: "", 310 }, 311 }, 312 }, 313 }, 314 }, 315 "resourceNames": { 316 SchemaProps: spec.SchemaProps{ 317 Description: "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", 318 Type: []string{"array"}, 319 Items: &spec.SchemaOrArray{ 320 Schema: &spec.Schema{ 321 SchemaProps: spec.SchemaProps{ 322 Type: []string{"string"}, 323 Format: "", 324 }, 325 }, 326 }, 327 }, 328 }, 329 "nonResourceURLs": { 330 SchemaProps: spec.SchemaProps{ 331 Description: "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", 332 Type: []string{"array"}, 333 Items: &spec.SchemaOrArray{ 334 Schema: &spec.Schema{ 335 SchemaProps: spec.SchemaProps{ 336 Type: []string{"string"}, 337 Format: "", 338 }, 339 }, 340 }, 341 }, 342 }, 343 }, 344 Required: []string{"verbs"}, 345 }, 346 }, 347 Dependencies: []string{}, 348 } 349 } 350 351 func schema_k8sio_api_rbac_v1_Role(ref common.ReferenceCallback) common.OpenAPIDefinition { 352 return common.OpenAPIDefinition{ 353 Schema: spec.Schema{ 354 SchemaProps: spec.SchemaProps{ 355 Description: "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", 356 Type: []string{"object"}, 357 Properties: map[string]spec.Schema{ 358 "kind": { 359 SchemaProps: spec.SchemaProps{ 360 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", 361 Type: []string{"string"}, 362 Format: "", 363 }, 364 }, 365 "apiVersion": { 366 SchemaProps: spec.SchemaProps{ 367 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", 368 Type: []string{"string"}, 369 Format: "", 370 }, 371 }, 372 "metadata": { 373 SchemaProps: spec.SchemaProps{ 374 Description: "Standard object's metadata.", 375 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 376 }, 377 }, 378 "rules": { 379 SchemaProps: spec.SchemaProps{ 380 Description: "Rules holds all the PolicyRules for this Role", 381 Type: []string{"array"}, 382 Items: &spec.SchemaOrArray{ 383 Schema: &spec.Schema{ 384 SchemaProps: spec.SchemaProps{ 385 Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), 386 }, 387 }, 388 }, 389 }, 390 }, 391 }, 392 }, 393 }, 394 Dependencies: []string{ 395 "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 396 } 397 } 398 399 func schema_k8sio_api_rbac_v1_RoleBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { 400 return common.OpenAPIDefinition{ 401 Schema: spec.Schema{ 402 SchemaProps: spec.SchemaProps{ 403 Description: "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", 404 Type: []string{"object"}, 405 Properties: map[string]spec.Schema{ 406 "kind": { 407 SchemaProps: spec.SchemaProps{ 408 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", 409 Type: []string{"string"}, 410 Format: "", 411 }, 412 }, 413 "apiVersion": { 414 SchemaProps: spec.SchemaProps{ 415 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", 416 Type: []string{"string"}, 417 Format: "", 418 }, 419 }, 420 "metadata": { 421 SchemaProps: spec.SchemaProps{ 422 Description: "Standard object's metadata.", 423 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 424 }, 425 }, 426 "subjects": { 427 SchemaProps: spec.SchemaProps{ 428 Description: "Subjects holds references to the objects the role applies to.", 429 Type: []string{"array"}, 430 Items: &spec.SchemaOrArray{ 431 Schema: &spec.Schema{ 432 SchemaProps: spec.SchemaProps{ 433 Ref: ref("k8s.io/api/rbac/v1.Subject"), 434 }, 435 }, 436 }, 437 }, 438 }, 439 "roleRef": { 440 SchemaProps: spec.SchemaProps{ 441 Description: "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", 442 Ref: ref("k8s.io/api/rbac/v1.RoleRef"), 443 }, 444 }, 445 }, 446 Required: []string{"roleRef"}, 447 }, 448 }, 449 Dependencies: []string{ 450 "k8s.io/api/rbac/v1.RoleRef", "k8s.io/api/rbac/v1.Subject", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 451 } 452 } 453 454 func schema_k8sio_api_rbac_v1_RoleBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { 455 return common.OpenAPIDefinition{ 456 Schema: spec.Schema{ 457 SchemaProps: spec.SchemaProps{ 458 Description: "RoleBindingList is a collection of RoleBindings", 459 Type: []string{"object"}, 460 Properties: map[string]spec.Schema{ 461 "kind": { 462 SchemaProps: spec.SchemaProps{ 463 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", 464 Type: []string{"string"}, 465 Format: "", 466 }, 467 }, 468 "apiVersion": { 469 SchemaProps: spec.SchemaProps{ 470 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", 471 Type: []string{"string"}, 472 Format: "", 473 }, 474 }, 475 "metadata": { 476 SchemaProps: spec.SchemaProps{ 477 Description: "Standard object's metadata.", 478 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 479 }, 480 }, 481 "items": { 482 SchemaProps: spec.SchemaProps{ 483 Description: "Items is a list of RoleBindings", 484 Type: []string{"array"}, 485 Items: &spec.SchemaOrArray{ 486 Schema: &spec.Schema{ 487 SchemaProps: spec.SchemaProps{ 488 Ref: ref("k8s.io/api/rbac/v1.RoleBinding"), 489 }, 490 }, 491 }, 492 }, 493 }, 494 }, 495 Required: []string{"items"}, 496 }, 497 }, 498 Dependencies: []string{ 499 "k8s.io/api/rbac/v1.RoleBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 500 } 501 } 502 503 func schema_k8sio_api_rbac_v1_RoleList(ref common.ReferenceCallback) common.OpenAPIDefinition { 504 return common.OpenAPIDefinition{ 505 Schema: spec.Schema{ 506 SchemaProps: spec.SchemaProps{ 507 Description: "RoleList is a collection of Roles", 508 Type: []string{"object"}, 509 Properties: map[string]spec.Schema{ 510 "kind": { 511 SchemaProps: spec.SchemaProps{ 512 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", 513 Type: []string{"string"}, 514 Format: "", 515 }, 516 }, 517 "apiVersion": { 518 SchemaProps: spec.SchemaProps{ 519 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", 520 Type: []string{"string"}, 521 Format: "", 522 }, 523 }, 524 "metadata": { 525 SchemaProps: spec.SchemaProps{ 526 Description: "Standard object's metadata.", 527 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 528 }, 529 }, 530 "items": { 531 SchemaProps: spec.SchemaProps{ 532 Description: "Items is a list of Roles", 533 Type: []string{"array"}, 534 Items: &spec.SchemaOrArray{ 535 Schema: &spec.Schema{ 536 SchemaProps: spec.SchemaProps{ 537 Ref: ref("k8s.io/api/rbac/v1.Role"), 538 }, 539 }, 540 }, 541 }, 542 }, 543 }, 544 Required: []string{"items"}, 545 }, 546 }, 547 Dependencies: []string{ 548 "k8s.io/api/rbac/v1.Role", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 549 } 550 } 551 552 func schema_k8sio_api_rbac_v1_RoleRef(ref common.ReferenceCallback) common.OpenAPIDefinition { 553 return common.OpenAPIDefinition{ 554 Schema: spec.Schema{ 555 SchemaProps: spec.SchemaProps{ 556 Description: "RoleRef contains information that points to the role being used", 557 Type: []string{"object"}, 558 Properties: map[string]spec.Schema{ 559 "apiGroup": { 560 SchemaProps: spec.SchemaProps{ 561 Description: "APIGroup is the group for the resource being referenced", 562 Type: []string{"string"}, 563 Format: "", 564 }, 565 }, 566 "kind": { 567 SchemaProps: spec.SchemaProps{ 568 Description: "Kind is the type of resource being referenced", 569 Type: []string{"string"}, 570 Format: "", 571 }, 572 }, 573 "name": { 574 SchemaProps: spec.SchemaProps{ 575 Description: "Name is the name of resource being referenced", 576 Type: []string{"string"}, 577 Format: "", 578 }, 579 }, 580 }, 581 Required: []string{"apiGroup", "kind", "name"}, 582 }, 583 }, 584 Dependencies: []string{}, 585 } 586 } 587 588 func schema_k8sio_api_rbac_v1_Subject(ref common.ReferenceCallback) common.OpenAPIDefinition { 589 return common.OpenAPIDefinition{ 590 Schema: spec.Schema{ 591 SchemaProps: spec.SchemaProps{ 592 Description: "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", 593 Type: []string{"object"}, 594 Properties: map[string]spec.Schema{ 595 "kind": { 596 SchemaProps: spec.SchemaProps{ 597 Description: "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", 598 Type: []string{"string"}, 599 Format: "", 600 }, 601 }, 602 "apiGroup": { 603 SchemaProps: spec.SchemaProps{ 604 Description: "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", 605 Type: []string{"string"}, 606 Format: "", 607 }, 608 }, 609 "name": { 610 SchemaProps: spec.SchemaProps{ 611 Description: "Name of the object being referenced.", 612 Type: []string{"string"}, 613 Format: "", 614 }, 615 }, 616 "namespace": { 617 SchemaProps: spec.SchemaProps{ 618 Description: "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", 619 Type: []string{"string"}, 620 Format: "", 621 }, 622 }, 623 }, 624 Required: []string{"kind", "name"}, 625 }, 626 }, 627 Dependencies: []string{}, 628 } 629 }