kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/devops/v1alpha3/openapi_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2020 The KubeSphere Authors. 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 v1alpha3 25 26 import ( 27 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 28 common "k8s.io/kube-openapi/pkg/common" 29 spec "k8s.io/kube-openapi/pkg/validation/spec" 30 ) 31 32 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 33 return map[string]common.OpenAPIDefinition{ 34 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), 35 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), 36 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), 37 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), 38 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), 39 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), 40 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), 41 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), 42 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), 43 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), 44 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), 45 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), 46 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), 47 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), 48 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), 49 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), 50 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), 51 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), 52 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), 53 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), 54 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), 55 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), 56 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), 57 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), 58 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), 59 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), 60 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), 61 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), 62 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), 63 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), 64 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), 65 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), 66 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), 67 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), 68 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), 69 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), 70 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), 71 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), 72 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), 73 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), 74 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), 75 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), 76 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), 77 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), 78 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), 79 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), 80 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), 81 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), 82 "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), 83 "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), 84 "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), 85 "kubesphere.io/api/devops/v1alpha3.BitbucketServerSource": schema_kubesphereio_api_devops_v1alpha3_BitbucketServerSource(ref), 86 "kubesphere.io/api/devops/v1alpha3.DevOpsProject": schema_kubesphereio_api_devops_v1alpha3_DevOpsProject(ref), 87 "kubesphere.io/api/devops/v1alpha3.DevOpsProjectList": schema_kubesphereio_api_devops_v1alpha3_DevOpsProjectList(ref), 88 "kubesphere.io/api/devops/v1alpha3.DevOpsProjectSpec": schema_kubesphereio_api_devops_v1alpha3_DevOpsProjectSpec(ref), 89 "kubesphere.io/api/devops/v1alpha3.DevOpsProjectStatus": schema_kubesphereio_api_devops_v1alpha3_DevOpsProjectStatus(ref), 90 "kubesphere.io/api/devops/v1alpha3.DiscarderProperty": schema_kubesphereio_api_devops_v1alpha3_DiscarderProperty(ref), 91 "kubesphere.io/api/devops/v1alpha3.DiscoverPRFromForks": schema_kubesphereio_api_devops_v1alpha3_DiscoverPRFromForks(ref), 92 "kubesphere.io/api/devops/v1alpha3.GitCloneOption": schema_kubesphereio_api_devops_v1alpha3_GitCloneOption(ref), 93 "kubesphere.io/api/devops/v1alpha3.GitSource": schema_kubesphereio_api_devops_v1alpha3_GitSource(ref), 94 "kubesphere.io/api/devops/v1alpha3.GithubSource": schema_kubesphereio_api_devops_v1alpha3_GithubSource(ref), 95 "kubesphere.io/api/devops/v1alpha3.GitlabSource": schema_kubesphereio_api_devops_v1alpha3_GitlabSource(ref), 96 "kubesphere.io/api/devops/v1alpha3.MultiBranchJobTrigger": schema_kubesphereio_api_devops_v1alpha3_MultiBranchJobTrigger(ref), 97 "kubesphere.io/api/devops/v1alpha3.MultiBranchPipeline": schema_kubesphereio_api_devops_v1alpha3_MultiBranchPipeline(ref), 98 "kubesphere.io/api/devops/v1alpha3.NoScmPipeline": schema_kubesphereio_api_devops_v1alpha3_NoScmPipeline(ref), 99 "kubesphere.io/api/devops/v1alpha3.Parameter": schema_kubesphereio_api_devops_v1alpha3_Parameter(ref), 100 "kubesphere.io/api/devops/v1alpha3.Pipeline": schema_kubesphereio_api_devops_v1alpha3_Pipeline(ref), 101 "kubesphere.io/api/devops/v1alpha3.PipelineList": schema_kubesphereio_api_devops_v1alpha3_PipelineList(ref), 102 "kubesphere.io/api/devops/v1alpha3.PipelineSpec": schema_kubesphereio_api_devops_v1alpha3_PipelineSpec(ref), 103 "kubesphere.io/api/devops/v1alpha3.PipelineStatus": schema_kubesphereio_api_devops_v1alpha3_PipelineStatus(ref), 104 "kubesphere.io/api/devops/v1alpha3.RemoteTrigger": schema_kubesphereio_api_devops_v1alpha3_RemoteTrigger(ref), 105 "kubesphere.io/api/devops/v1alpha3.SingleSvnSource": schema_kubesphereio_api_devops_v1alpha3_SingleSvnSource(ref), 106 "kubesphere.io/api/devops/v1alpha3.SvnSource": schema_kubesphereio_api_devops_v1alpha3_SvnSource(ref), 107 "kubesphere.io/api/devops/v1alpha3.TimerTrigger": schema_kubesphereio_api_devops_v1alpha3_TimerTrigger(ref), 108 } 109 } 110 111 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 112 return common.OpenAPIDefinition{ 113 Schema: spec.Schema{ 114 SchemaProps: spec.SchemaProps{ 115 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.", 116 Type: []string{"object"}, 117 Properties: map[string]spec.Schema{ 118 "kind": { 119 SchemaProps: spec.SchemaProps{ 120 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", 121 Type: []string{"string"}, 122 Format: "", 123 }, 124 }, 125 "apiVersion": { 126 SchemaProps: spec.SchemaProps{ 127 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", 128 Type: []string{"string"}, 129 Format: "", 130 }, 131 }, 132 "name": { 133 SchemaProps: spec.SchemaProps{ 134 Description: "name is the name of the group.", 135 Default: "", 136 Type: []string{"string"}, 137 Format: "", 138 }, 139 }, 140 "versions": { 141 SchemaProps: spec.SchemaProps{ 142 Description: "versions are the versions supported in this group.", 143 Type: []string{"array"}, 144 Items: &spec.SchemaOrArray{ 145 Schema: &spec.Schema{ 146 SchemaProps: spec.SchemaProps{ 147 Default: map[string]interface{}{}, 148 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 149 }, 150 }, 151 }, 152 }, 153 }, 154 "preferredVersion": { 155 SchemaProps: spec.SchemaProps{ 156 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", 157 Default: map[string]interface{}{}, 158 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 159 }, 160 }, 161 "serverAddressByClientCIDRs": { 162 SchemaProps: spec.SchemaProps{ 163 Description: "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", 164 Type: []string{"array"}, 165 Items: &spec.SchemaOrArray{ 166 Schema: &spec.Schema{ 167 SchemaProps: spec.SchemaProps{ 168 Default: map[string]interface{}{}, 169 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 170 }, 171 }, 172 }, 173 }, 174 }, 175 }, 176 Required: []string{"name", "versions"}, 177 }, 178 }, 179 Dependencies: []string{ 180 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 181 } 182 } 183 184 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 185 return common.OpenAPIDefinition{ 186 Schema: spec.Schema{ 187 SchemaProps: spec.SchemaProps{ 188 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", 189 Type: []string{"object"}, 190 Properties: map[string]spec.Schema{ 191 "kind": { 192 SchemaProps: spec.SchemaProps{ 193 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", 194 Type: []string{"string"}, 195 Format: "", 196 }, 197 }, 198 "apiVersion": { 199 SchemaProps: spec.SchemaProps{ 200 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", 201 Type: []string{"string"}, 202 Format: "", 203 }, 204 }, 205 "groups": { 206 SchemaProps: spec.SchemaProps{ 207 Description: "groups is a list of APIGroup.", 208 Type: []string{"array"}, 209 Items: &spec.SchemaOrArray{ 210 Schema: &spec.Schema{ 211 SchemaProps: spec.SchemaProps{ 212 Default: map[string]interface{}{}, 213 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), 214 }, 215 }, 216 }, 217 }, 218 }, 219 }, 220 Required: []string{"groups"}, 221 }, 222 }, 223 Dependencies: []string{ 224 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, 225 } 226 } 227 228 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 229 return common.OpenAPIDefinition{ 230 Schema: spec.Schema{ 231 SchemaProps: spec.SchemaProps{ 232 Description: "APIResource specifies the name of a resource and whether it is namespaced.", 233 Type: []string{"object"}, 234 Properties: map[string]spec.Schema{ 235 "name": { 236 SchemaProps: spec.SchemaProps{ 237 Description: "name is the plural name of the resource.", 238 Default: "", 239 Type: []string{"string"}, 240 Format: "", 241 }, 242 }, 243 "singularName": { 244 SchemaProps: spec.SchemaProps{ 245 Description: "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", 246 Default: "", 247 Type: []string{"string"}, 248 Format: "", 249 }, 250 }, 251 "namespaced": { 252 SchemaProps: spec.SchemaProps{ 253 Description: "namespaced indicates if a resource is namespaced or not.", 254 Default: false, 255 Type: []string{"boolean"}, 256 Format: "", 257 }, 258 }, 259 "group": { 260 SchemaProps: spec.SchemaProps{ 261 Description: "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", 262 Type: []string{"string"}, 263 Format: "", 264 }, 265 }, 266 "version": { 267 SchemaProps: spec.SchemaProps{ 268 Description: "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", 269 Type: []string{"string"}, 270 Format: "", 271 }, 272 }, 273 "kind": { 274 SchemaProps: spec.SchemaProps{ 275 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", 276 Default: "", 277 Type: []string{"string"}, 278 Format: "", 279 }, 280 }, 281 "verbs": { 282 SchemaProps: spec.SchemaProps{ 283 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", 284 Type: []string{"array"}, 285 Items: &spec.SchemaOrArray{ 286 Schema: &spec.Schema{ 287 SchemaProps: spec.SchemaProps{ 288 Default: "", 289 Type: []string{"string"}, 290 Format: "", 291 }, 292 }, 293 }, 294 }, 295 }, 296 "shortNames": { 297 SchemaProps: spec.SchemaProps{ 298 Description: "shortNames is a list of suggested short names of the resource.", 299 Type: []string{"array"}, 300 Items: &spec.SchemaOrArray{ 301 Schema: &spec.Schema{ 302 SchemaProps: spec.SchemaProps{ 303 Default: "", 304 Type: []string{"string"}, 305 Format: "", 306 }, 307 }, 308 }, 309 }, 310 }, 311 "categories": { 312 SchemaProps: spec.SchemaProps{ 313 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", 314 Type: []string{"array"}, 315 Items: &spec.SchemaOrArray{ 316 Schema: &spec.Schema{ 317 SchemaProps: spec.SchemaProps{ 318 Default: "", 319 Type: []string{"string"}, 320 Format: "", 321 }, 322 }, 323 }, 324 }, 325 }, 326 "storageVersionHash": { 327 SchemaProps: spec.SchemaProps{ 328 Description: "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", 329 Type: []string{"string"}, 330 Format: "", 331 }, 332 }, 333 }, 334 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"}, 335 }, 336 }, 337 } 338 } 339 340 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 341 return common.OpenAPIDefinition{ 342 Schema: spec.Schema{ 343 SchemaProps: spec.SchemaProps{ 344 Description: "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", 345 Type: []string{"object"}, 346 Properties: map[string]spec.Schema{ 347 "kind": { 348 SchemaProps: spec.SchemaProps{ 349 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", 350 Type: []string{"string"}, 351 Format: "", 352 }, 353 }, 354 "apiVersion": { 355 SchemaProps: spec.SchemaProps{ 356 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", 357 Type: []string{"string"}, 358 Format: "", 359 }, 360 }, 361 "groupVersion": { 362 SchemaProps: spec.SchemaProps{ 363 Description: "groupVersion is the group and version this APIResourceList is for.", 364 Default: "", 365 Type: []string{"string"}, 366 Format: "", 367 }, 368 }, 369 "resources": { 370 SchemaProps: spec.SchemaProps{ 371 Description: "resources contains the name of the resources and if they are namespaced.", 372 Type: []string{"array"}, 373 Items: &spec.SchemaOrArray{ 374 Schema: &spec.Schema{ 375 SchemaProps: spec.SchemaProps{ 376 Default: map[string]interface{}{}, 377 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), 378 }, 379 }, 380 }, 381 }, 382 }, 383 }, 384 Required: []string{"groupVersion", "resources"}, 385 }, 386 }, 387 Dependencies: []string{ 388 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, 389 } 390 } 391 392 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition { 393 return common.OpenAPIDefinition{ 394 Schema: spec.Schema{ 395 SchemaProps: spec.SchemaProps{ 396 Description: "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", 397 Type: []string{"object"}, 398 Properties: map[string]spec.Schema{ 399 "kind": { 400 SchemaProps: spec.SchemaProps{ 401 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", 402 Type: []string{"string"}, 403 Format: "", 404 }, 405 }, 406 "apiVersion": { 407 SchemaProps: spec.SchemaProps{ 408 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", 409 Type: []string{"string"}, 410 Format: "", 411 }, 412 }, 413 "versions": { 414 SchemaProps: spec.SchemaProps{ 415 Description: "versions are the api versions that are available.", 416 Type: []string{"array"}, 417 Items: &spec.SchemaOrArray{ 418 Schema: &spec.Schema{ 419 SchemaProps: spec.SchemaProps{ 420 Default: "", 421 Type: []string{"string"}, 422 Format: "", 423 }, 424 }, 425 }, 426 }, 427 }, 428 "serverAddressByClientCIDRs": { 429 SchemaProps: spec.SchemaProps{ 430 Description: "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", 431 Type: []string{"array"}, 432 Items: &spec.SchemaOrArray{ 433 Schema: &spec.Schema{ 434 SchemaProps: spec.SchemaProps{ 435 Default: map[string]interface{}{}, 436 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 437 }, 438 }, 439 }, 440 }, 441 }, 442 }, 443 Required: []string{"versions", "serverAddressByClientCIDRs"}, 444 }, 445 }, 446 Dependencies: []string{ 447 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 448 } 449 } 450 451 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 452 return common.OpenAPIDefinition{ 453 Schema: spec.Schema{ 454 SchemaProps: spec.SchemaProps{ 455 Description: "ApplyOptions may be provided when applying an API object. FieldManager is required for apply requests. ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation that speaks specifically to how the options fields relate to apply.", 456 Type: []string{"object"}, 457 Properties: map[string]spec.Schema{ 458 "kind": { 459 SchemaProps: spec.SchemaProps{ 460 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", 461 Type: []string{"string"}, 462 Format: "", 463 }, 464 }, 465 "apiVersion": { 466 SchemaProps: spec.SchemaProps{ 467 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", 468 Type: []string{"string"}, 469 Format: "", 470 }, 471 }, 472 "dryRun": { 473 SchemaProps: spec.SchemaProps{ 474 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", 475 Type: []string{"array"}, 476 Items: &spec.SchemaOrArray{ 477 Schema: &spec.Schema{ 478 SchemaProps: spec.SchemaProps{ 479 Default: "", 480 Type: []string{"string"}, 481 Format: "", 482 }, 483 }, 484 }, 485 }, 486 }, 487 "force": { 488 SchemaProps: spec.SchemaProps{ 489 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.", 490 Default: false, 491 Type: []string{"boolean"}, 492 Format: "", 493 }, 494 }, 495 "fieldManager": { 496 SchemaProps: spec.SchemaProps{ 497 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.", 498 Default: "", 499 Type: []string{"string"}, 500 Format: "", 501 }, 502 }, 503 }, 504 Required: []string{"force", "fieldManager"}, 505 }, 506 }, 507 } 508 } 509 510 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 511 return common.OpenAPIDefinition{ 512 Schema: spec.Schema{ 513 SchemaProps: spec.SchemaProps{ 514 Description: "Condition contains details for one aspect of the current state of this API Resource.", 515 Type: []string{"object"}, 516 Properties: map[string]spec.Schema{ 517 "type": { 518 SchemaProps: spec.SchemaProps{ 519 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.", 520 Default: "", 521 Type: []string{"string"}, 522 Format: "", 523 }, 524 }, 525 "status": { 526 SchemaProps: spec.SchemaProps{ 527 Description: "status of the condition, one of True, False, Unknown.", 528 Default: "", 529 Type: []string{"string"}, 530 Format: "", 531 }, 532 }, 533 "observedGeneration": { 534 SchemaProps: spec.SchemaProps{ 535 Description: "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", 536 Type: []string{"integer"}, 537 Format: "int64", 538 }, 539 }, 540 "lastTransitionTime": { 541 SchemaProps: spec.SchemaProps{ 542 Description: "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", 543 Default: map[string]interface{}{}, 544 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 545 }, 546 }, 547 "reason": { 548 SchemaProps: spec.SchemaProps{ 549 Description: "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", 550 Default: "", 551 Type: []string{"string"}, 552 Format: "", 553 }, 554 }, 555 "message": { 556 SchemaProps: spec.SchemaProps{ 557 Description: "message is a human readable message indicating details about the transition. This may be an empty string.", 558 Default: "", 559 Type: []string{"string"}, 560 Format: "", 561 }, 562 }, 563 }, 564 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, 565 }, 566 }, 567 Dependencies: []string{ 568 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 569 } 570 } 571 572 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 573 return common.OpenAPIDefinition{ 574 Schema: spec.Schema{ 575 SchemaProps: spec.SchemaProps{ 576 Description: "CreateOptions may be provided when creating an API object.", 577 Type: []string{"object"}, 578 Properties: map[string]spec.Schema{ 579 "kind": { 580 SchemaProps: spec.SchemaProps{ 581 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", 582 Type: []string{"string"}, 583 Format: "", 584 }, 585 }, 586 "apiVersion": { 587 SchemaProps: spec.SchemaProps{ 588 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", 589 Type: []string{"string"}, 590 Format: "", 591 }, 592 }, 593 "dryRun": { 594 SchemaProps: spec.SchemaProps{ 595 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", 596 Type: []string{"array"}, 597 Items: &spec.SchemaOrArray{ 598 Schema: &spec.Schema{ 599 SchemaProps: spec.SchemaProps{ 600 Default: "", 601 Type: []string{"string"}, 602 Format: "", 603 }, 604 }, 605 }, 606 }, 607 }, 608 "fieldManager": { 609 SchemaProps: spec.SchemaProps{ 610 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", 611 Type: []string{"string"}, 612 Format: "", 613 }, 614 }, 615 "fieldValidation": { 616 SchemaProps: spec.SchemaProps{ 617 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 618 Type: []string{"string"}, 619 Format: "", 620 }, 621 }, 622 }, 623 }, 624 }, 625 } 626 } 627 628 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 629 return common.OpenAPIDefinition{ 630 Schema: spec.Schema{ 631 SchemaProps: spec.SchemaProps{ 632 Description: "DeleteOptions may be provided when deleting an API object.", 633 Type: []string{"object"}, 634 Properties: map[string]spec.Schema{ 635 "kind": { 636 SchemaProps: spec.SchemaProps{ 637 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", 638 Type: []string{"string"}, 639 Format: "", 640 }, 641 }, 642 "apiVersion": { 643 SchemaProps: spec.SchemaProps{ 644 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", 645 Type: []string{"string"}, 646 Format: "", 647 }, 648 }, 649 "gracePeriodSeconds": { 650 SchemaProps: spec.SchemaProps{ 651 Description: "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", 652 Type: []string{"integer"}, 653 Format: "int64", 654 }, 655 }, 656 "preconditions": { 657 SchemaProps: spec.SchemaProps{ 658 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", 659 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), 660 }, 661 }, 662 "orphanDependents": { 663 SchemaProps: spec.SchemaProps{ 664 Description: "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", 665 Type: []string{"boolean"}, 666 Format: "", 667 }, 668 }, 669 "propagationPolicy": { 670 SchemaProps: spec.SchemaProps{ 671 Description: "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", 672 Type: []string{"string"}, 673 Format: "", 674 }, 675 }, 676 "dryRun": { 677 SchemaProps: spec.SchemaProps{ 678 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", 679 Type: []string{"array"}, 680 Items: &spec.SchemaOrArray{ 681 Schema: &spec.Schema{ 682 SchemaProps: spec.SchemaProps{ 683 Default: "", 684 Type: []string{"string"}, 685 Format: "", 686 }, 687 }, 688 }, 689 }, 690 }, 691 }, 692 }, 693 }, 694 Dependencies: []string{ 695 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, 696 } 697 } 698 699 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition { 700 return common.OpenAPIDefinition{ 701 Schema: spec.Schema{ 702 SchemaProps: spec.SchemaProps{ 703 Description: "Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.", 704 Type: v1.Duration{}.OpenAPISchemaType(), 705 Format: v1.Duration{}.OpenAPISchemaFormat(), 706 }, 707 }, 708 } 709 } 710 711 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition { 712 return common.OpenAPIDefinition{ 713 Schema: spec.Schema{ 714 SchemaProps: spec.SchemaProps{ 715 Description: "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", 716 Type: []string{"object"}, 717 }, 718 }, 719 } 720 } 721 722 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 723 return common.OpenAPIDefinition{ 724 Schema: spec.Schema{ 725 SchemaProps: spec.SchemaProps{ 726 Description: "GetOptions is the standard query options to the standard REST get call.", 727 Type: []string{"object"}, 728 Properties: map[string]spec.Schema{ 729 "kind": { 730 SchemaProps: spec.SchemaProps{ 731 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", 732 Type: []string{"string"}, 733 Format: "", 734 }, 735 }, 736 "apiVersion": { 737 SchemaProps: spec.SchemaProps{ 738 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", 739 Type: []string{"string"}, 740 Format: "", 741 }, 742 }, 743 "resourceVersion": { 744 SchemaProps: spec.SchemaProps{ 745 Description: "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", 746 Type: []string{"string"}, 747 Format: "", 748 }, 749 }, 750 }, 751 }, 752 }, 753 } 754 } 755 756 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 757 return common.OpenAPIDefinition{ 758 Schema: spec.Schema{ 759 SchemaProps: spec.SchemaProps{ 760 Description: "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types", 761 Type: []string{"object"}, 762 Properties: map[string]spec.Schema{ 763 "group": { 764 SchemaProps: spec.SchemaProps{ 765 Default: "", 766 Type: []string{"string"}, 767 Format: "", 768 }, 769 }, 770 "kind": { 771 SchemaProps: spec.SchemaProps{ 772 Default: "", 773 Type: []string{"string"}, 774 Format: "", 775 }, 776 }, 777 }, 778 Required: []string{"group", "kind"}, 779 }, 780 }, 781 } 782 } 783 784 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 785 return common.OpenAPIDefinition{ 786 Schema: spec.Schema{ 787 SchemaProps: spec.SchemaProps{ 788 Description: "GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types", 789 Type: []string{"object"}, 790 Properties: map[string]spec.Schema{ 791 "group": { 792 SchemaProps: spec.SchemaProps{ 793 Default: "", 794 Type: []string{"string"}, 795 Format: "", 796 }, 797 }, 798 "resource": { 799 SchemaProps: spec.SchemaProps{ 800 Default: "", 801 Type: []string{"string"}, 802 Format: "", 803 }, 804 }, 805 }, 806 Required: []string{"group", "resource"}, 807 }, 808 }, 809 } 810 } 811 812 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { 813 return common.OpenAPIDefinition{ 814 Schema: spec.Schema{ 815 SchemaProps: spec.SchemaProps{ 816 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.", 817 Type: []string{"object"}, 818 Properties: map[string]spec.Schema{ 819 "group": { 820 SchemaProps: spec.SchemaProps{ 821 Default: "", 822 Type: []string{"string"}, 823 Format: "", 824 }, 825 }, 826 "version": { 827 SchemaProps: spec.SchemaProps{ 828 Default: "", 829 Type: []string{"string"}, 830 Format: "", 831 }, 832 }, 833 }, 834 Required: []string{"group", "version"}, 835 }, 836 }, 837 } 838 } 839 840 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition { 841 return common.OpenAPIDefinition{ 842 Schema: spec.Schema{ 843 SchemaProps: spec.SchemaProps{ 844 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", 845 Type: []string{"object"}, 846 Properties: map[string]spec.Schema{ 847 "groupVersion": { 848 SchemaProps: spec.SchemaProps{ 849 Description: "groupVersion specifies the API group and version in the form \"group/version\"", 850 Default: "", 851 Type: []string{"string"}, 852 Format: "", 853 }, 854 }, 855 "version": { 856 SchemaProps: spec.SchemaProps{ 857 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", 858 Default: "", 859 Type: []string{"string"}, 860 Format: "", 861 }, 862 }, 863 }, 864 Required: []string{"groupVersion", "version"}, 865 }, 866 }, 867 } 868 } 869 870 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 871 return common.OpenAPIDefinition{ 872 Schema: spec.Schema{ 873 SchemaProps: spec.SchemaProps{ 874 Description: "GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling", 875 Type: []string{"object"}, 876 Properties: map[string]spec.Schema{ 877 "group": { 878 SchemaProps: spec.SchemaProps{ 879 Default: "", 880 Type: []string{"string"}, 881 Format: "", 882 }, 883 }, 884 "version": { 885 SchemaProps: spec.SchemaProps{ 886 Default: "", 887 Type: []string{"string"}, 888 Format: "", 889 }, 890 }, 891 "kind": { 892 SchemaProps: spec.SchemaProps{ 893 Default: "", 894 Type: []string{"string"}, 895 Format: "", 896 }, 897 }, 898 }, 899 Required: []string{"group", "version", "kind"}, 900 }, 901 }, 902 } 903 } 904 905 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 906 return common.OpenAPIDefinition{ 907 Schema: spec.Schema{ 908 SchemaProps: spec.SchemaProps{ 909 Description: "GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling", 910 Type: []string{"object"}, 911 Properties: map[string]spec.Schema{ 912 "group": { 913 SchemaProps: spec.SchemaProps{ 914 Default: "", 915 Type: []string{"string"}, 916 Format: "", 917 }, 918 }, 919 "version": { 920 SchemaProps: spec.SchemaProps{ 921 Default: "", 922 Type: []string{"string"}, 923 Format: "", 924 }, 925 }, 926 "resource": { 927 SchemaProps: spec.SchemaProps{ 928 Default: "", 929 Type: []string{"string"}, 930 Format: "", 931 }, 932 }, 933 }, 934 Required: []string{"group", "version", "resource"}, 935 }, 936 }, 937 } 938 } 939 940 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 941 return common.OpenAPIDefinition{ 942 Schema: spec.Schema{ 943 SchemaProps: spec.SchemaProps{ 944 Description: "InternalEvent makes watch.Event versioned", 945 Type: []string{"object"}, 946 Properties: map[string]spec.Schema{ 947 "Type": { 948 SchemaProps: spec.SchemaProps{ 949 Default: "", 950 Type: []string{"string"}, 951 Format: "", 952 }, 953 }, 954 "Object": { 955 SchemaProps: spec.SchemaProps{ 956 Description: "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Bookmark: the object (instance of a type being watched) where\n only ResourceVersion field is set. On successful restart of watch from a\n bookmark resourceVersion, client is guaranteed to not get repeat event\n nor miss any events.\n * If Type is Error: *api.Status is recommended; other types may make sense\n depending on context.", 957 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), 958 }, 959 }, 960 }, 961 Required: []string{"Type", "Object"}, 962 }, 963 }, 964 Dependencies: []string{ 965 "k8s.io/apimachinery/pkg/runtime.Object"}, 966 } 967 } 968 969 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 970 return common.OpenAPIDefinition{ 971 Schema: spec.Schema{ 972 SchemaProps: spec.SchemaProps{ 973 Description: "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", 974 Type: []string{"object"}, 975 Properties: map[string]spec.Schema{ 976 "matchLabels": { 977 SchemaProps: spec.SchemaProps{ 978 Description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", 979 Type: []string{"object"}, 980 AdditionalProperties: &spec.SchemaOrBool{ 981 Allows: true, 982 Schema: &spec.Schema{ 983 SchemaProps: spec.SchemaProps{ 984 Default: "", 985 Type: []string{"string"}, 986 Format: "", 987 }, 988 }, 989 }, 990 }, 991 }, 992 "matchExpressions": { 993 SchemaProps: spec.SchemaProps{ 994 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", 995 Type: []string{"array"}, 996 Items: &spec.SchemaOrArray{ 997 Schema: &spec.Schema{ 998 SchemaProps: spec.SchemaProps{ 999 Default: map[string]interface{}{}, 1000 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), 1001 }, 1002 }, 1003 }, 1004 }, 1005 }, 1006 }, 1007 }, 1008 VendorExtensible: spec.VendorExtensible{ 1009 Extensions: spec.Extensions{ 1010 "x-kubernetes-map-type": "atomic", 1011 }, 1012 }, 1013 }, 1014 Dependencies: []string{ 1015 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, 1016 } 1017 } 1018 1019 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 1020 return common.OpenAPIDefinition{ 1021 Schema: spec.Schema{ 1022 SchemaProps: spec.SchemaProps{ 1023 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 1024 Type: []string{"object"}, 1025 Properties: map[string]spec.Schema{ 1026 "key": { 1027 VendorExtensible: spec.VendorExtensible{ 1028 Extensions: spec.Extensions{ 1029 "x-kubernetes-patch-merge-key": "key", 1030 "x-kubernetes-patch-strategy": "merge", 1031 }, 1032 }, 1033 SchemaProps: spec.SchemaProps{ 1034 Description: "key is the label key that the selector applies to.", 1035 Default: "", 1036 Type: []string{"string"}, 1037 Format: "", 1038 }, 1039 }, 1040 "operator": { 1041 SchemaProps: spec.SchemaProps{ 1042 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", 1043 Default: "", 1044 Type: []string{"string"}, 1045 Format: "", 1046 }, 1047 }, 1048 "values": { 1049 SchemaProps: spec.SchemaProps{ 1050 Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", 1051 Type: []string{"array"}, 1052 Items: &spec.SchemaOrArray{ 1053 Schema: &spec.Schema{ 1054 SchemaProps: spec.SchemaProps{ 1055 Default: "", 1056 Type: []string{"string"}, 1057 Format: "", 1058 }, 1059 }, 1060 }, 1061 }, 1062 }, 1063 }, 1064 Required: []string{"key", "operator"}, 1065 }, 1066 }, 1067 } 1068 } 1069 1070 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 1071 return common.OpenAPIDefinition{ 1072 Schema: spec.Schema{ 1073 SchemaProps: spec.SchemaProps{ 1074 Description: "List holds a list of objects, which may not be known by the server.", 1075 Type: []string{"object"}, 1076 Properties: map[string]spec.Schema{ 1077 "kind": { 1078 SchemaProps: spec.SchemaProps{ 1079 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", 1080 Type: []string{"string"}, 1081 Format: "", 1082 }, 1083 }, 1084 "apiVersion": { 1085 SchemaProps: spec.SchemaProps{ 1086 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", 1087 Type: []string{"string"}, 1088 Format: "", 1089 }, 1090 }, 1091 "metadata": { 1092 SchemaProps: spec.SchemaProps{ 1093 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1094 Default: map[string]interface{}{}, 1095 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1096 }, 1097 }, 1098 "items": { 1099 SchemaProps: spec.SchemaProps{ 1100 Description: "List of objects", 1101 Type: []string{"array"}, 1102 Items: &spec.SchemaOrArray{ 1103 Schema: &spec.Schema{ 1104 SchemaProps: spec.SchemaProps{ 1105 Default: map[string]interface{}{}, 1106 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 1107 }, 1108 }, 1109 }, 1110 }, 1111 }, 1112 }, 1113 Required: []string{"items"}, 1114 }, 1115 }, 1116 Dependencies: []string{ 1117 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 1118 } 1119 } 1120 1121 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 1122 return common.OpenAPIDefinition{ 1123 Schema: spec.Schema{ 1124 SchemaProps: spec.SchemaProps{ 1125 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", 1126 Type: []string{"object"}, 1127 Properties: map[string]spec.Schema{ 1128 "selfLink": { 1129 SchemaProps: spec.SchemaProps{ 1130 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 1131 Type: []string{"string"}, 1132 Format: "", 1133 }, 1134 }, 1135 "resourceVersion": { 1136 SchemaProps: spec.SchemaProps{ 1137 Description: "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", 1138 Type: []string{"string"}, 1139 Format: "", 1140 }, 1141 }, 1142 "continue": { 1143 SchemaProps: spec.SchemaProps{ 1144 Description: "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", 1145 Type: []string{"string"}, 1146 Format: "", 1147 }, 1148 }, 1149 "remainingItemCount": { 1150 SchemaProps: spec.SchemaProps{ 1151 Description: "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", 1152 Type: []string{"integer"}, 1153 Format: "int64", 1154 }, 1155 }, 1156 }, 1157 }, 1158 }, 1159 } 1160 } 1161 1162 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1163 return common.OpenAPIDefinition{ 1164 Schema: spec.Schema{ 1165 SchemaProps: spec.SchemaProps{ 1166 Description: "ListOptions is the query options to a standard REST list call.", 1167 Type: []string{"object"}, 1168 Properties: map[string]spec.Schema{ 1169 "kind": { 1170 SchemaProps: spec.SchemaProps{ 1171 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", 1172 Type: []string{"string"}, 1173 Format: "", 1174 }, 1175 }, 1176 "apiVersion": { 1177 SchemaProps: spec.SchemaProps{ 1178 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", 1179 Type: []string{"string"}, 1180 Format: "", 1181 }, 1182 }, 1183 "labelSelector": { 1184 SchemaProps: spec.SchemaProps{ 1185 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.", 1186 Type: []string{"string"}, 1187 Format: "", 1188 }, 1189 }, 1190 "fieldSelector": { 1191 SchemaProps: spec.SchemaProps{ 1192 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.", 1193 Type: []string{"string"}, 1194 Format: "", 1195 }, 1196 }, 1197 "watch": { 1198 SchemaProps: spec.SchemaProps{ 1199 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", 1200 Type: []string{"boolean"}, 1201 Format: "", 1202 }, 1203 }, 1204 "allowWatchBookmarks": { 1205 SchemaProps: spec.SchemaProps{ 1206 Description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", 1207 Type: []string{"boolean"}, 1208 Format: "", 1209 }, 1210 }, 1211 "resourceVersion": { 1212 SchemaProps: spec.SchemaProps{ 1213 Description: "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", 1214 Type: []string{"string"}, 1215 Format: "", 1216 }, 1217 }, 1218 "resourceVersionMatch": { 1219 SchemaProps: spec.SchemaProps{ 1220 Description: "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", 1221 Type: []string{"string"}, 1222 Format: "", 1223 }, 1224 }, 1225 "timeoutSeconds": { 1226 SchemaProps: spec.SchemaProps{ 1227 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", 1228 Type: []string{"integer"}, 1229 Format: "int64", 1230 }, 1231 }, 1232 "limit": { 1233 SchemaProps: spec.SchemaProps{ 1234 Description: "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", 1235 Type: []string{"integer"}, 1236 Format: "int64", 1237 }, 1238 }, 1239 "continue": { 1240 SchemaProps: spec.SchemaProps{ 1241 Description: "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", 1242 Type: []string{"string"}, 1243 Format: "", 1244 }, 1245 }, 1246 }, 1247 }, 1248 }, 1249 } 1250 } 1251 1252 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 1253 return common.OpenAPIDefinition{ 1254 Schema: spec.Schema{ 1255 SchemaProps: spec.SchemaProps{ 1256 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", 1257 Type: []string{"object"}, 1258 Properties: map[string]spec.Schema{ 1259 "manager": { 1260 SchemaProps: spec.SchemaProps{ 1261 Description: "Manager is an identifier of the workflow managing these fields.", 1262 Type: []string{"string"}, 1263 Format: "", 1264 }, 1265 }, 1266 "operation": { 1267 SchemaProps: spec.SchemaProps{ 1268 Description: "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", 1269 Type: []string{"string"}, 1270 Format: "", 1271 }, 1272 }, 1273 "apiVersion": { 1274 SchemaProps: spec.SchemaProps{ 1275 Description: "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", 1276 Type: []string{"string"}, 1277 Format: "", 1278 }, 1279 }, 1280 "time": { 1281 SchemaProps: spec.SchemaProps{ 1282 Description: "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", 1283 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1284 }, 1285 }, 1286 "fieldsType": { 1287 SchemaProps: spec.SchemaProps{ 1288 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", 1289 Type: []string{"string"}, 1290 Format: "", 1291 }, 1292 }, 1293 "fieldsV1": { 1294 SchemaProps: spec.SchemaProps{ 1295 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", 1296 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), 1297 }, 1298 }, 1299 "subresource": { 1300 SchemaProps: spec.SchemaProps{ 1301 Description: "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", 1302 Type: []string{"string"}, 1303 Format: "", 1304 }, 1305 }, 1306 }, 1307 }, 1308 }, 1309 Dependencies: []string{ 1310 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1311 } 1312 } 1313 1314 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 1315 return common.OpenAPIDefinition{ 1316 Schema: spec.Schema{ 1317 SchemaProps: spec.SchemaProps{ 1318 Description: "MicroTime is version of Time with microsecond level precision.", 1319 Type: v1.MicroTime{}.OpenAPISchemaType(), 1320 Format: v1.MicroTime{}.OpenAPISchemaFormat(), 1321 }, 1322 }, 1323 } 1324 } 1325 1326 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 1327 return common.OpenAPIDefinition{ 1328 Schema: spec.Schema{ 1329 SchemaProps: spec.SchemaProps{ 1330 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", 1331 Type: []string{"object"}, 1332 Properties: map[string]spec.Schema{ 1333 "name": { 1334 SchemaProps: spec.SchemaProps{ 1335 Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", 1336 Type: []string{"string"}, 1337 Format: "", 1338 }, 1339 }, 1340 "generateName": { 1341 SchemaProps: spec.SchemaProps{ 1342 Description: "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", 1343 Type: []string{"string"}, 1344 Format: "", 1345 }, 1346 }, 1347 "namespace": { 1348 SchemaProps: spec.SchemaProps{ 1349 Description: "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", 1350 Type: []string{"string"}, 1351 Format: "", 1352 }, 1353 }, 1354 "selfLink": { 1355 SchemaProps: spec.SchemaProps{ 1356 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 1357 Type: []string{"string"}, 1358 Format: "", 1359 }, 1360 }, 1361 "uid": { 1362 SchemaProps: spec.SchemaProps{ 1363 Description: "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 1364 Type: []string{"string"}, 1365 Format: "", 1366 }, 1367 }, 1368 "resourceVersion": { 1369 SchemaProps: spec.SchemaProps{ 1370 Description: "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", 1371 Type: []string{"string"}, 1372 Format: "", 1373 }, 1374 }, 1375 "generation": { 1376 SchemaProps: spec.SchemaProps{ 1377 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", 1378 Type: []string{"integer"}, 1379 Format: "int64", 1380 }, 1381 }, 1382 "creationTimestamp": { 1383 SchemaProps: spec.SchemaProps{ 1384 Description: "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1385 Default: map[string]interface{}{}, 1386 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1387 }, 1388 }, 1389 "deletionTimestamp": { 1390 SchemaProps: spec.SchemaProps{ 1391 Description: "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1392 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1393 }, 1394 }, 1395 "deletionGracePeriodSeconds": { 1396 SchemaProps: spec.SchemaProps{ 1397 Description: "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", 1398 Type: []string{"integer"}, 1399 Format: "int64", 1400 }, 1401 }, 1402 "labels": { 1403 SchemaProps: spec.SchemaProps{ 1404 Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", 1405 Type: []string{"object"}, 1406 AdditionalProperties: &spec.SchemaOrBool{ 1407 Allows: true, 1408 Schema: &spec.Schema{ 1409 SchemaProps: spec.SchemaProps{ 1410 Default: "", 1411 Type: []string{"string"}, 1412 Format: "", 1413 }, 1414 }, 1415 }, 1416 }, 1417 }, 1418 "annotations": { 1419 SchemaProps: spec.SchemaProps{ 1420 Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", 1421 Type: []string{"object"}, 1422 AdditionalProperties: &spec.SchemaOrBool{ 1423 Allows: true, 1424 Schema: &spec.Schema{ 1425 SchemaProps: spec.SchemaProps{ 1426 Default: "", 1427 Type: []string{"string"}, 1428 Format: "", 1429 }, 1430 }, 1431 }, 1432 }, 1433 }, 1434 "ownerReferences": { 1435 VendorExtensible: spec.VendorExtensible{ 1436 Extensions: spec.Extensions{ 1437 "x-kubernetes-patch-merge-key": "uid", 1438 "x-kubernetes-patch-strategy": "merge", 1439 }, 1440 }, 1441 SchemaProps: spec.SchemaProps{ 1442 Description: "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", 1443 Type: []string{"array"}, 1444 Items: &spec.SchemaOrArray{ 1445 Schema: &spec.Schema{ 1446 SchemaProps: spec.SchemaProps{ 1447 Default: map[string]interface{}{}, 1448 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 1449 }, 1450 }, 1451 }, 1452 }, 1453 }, 1454 "finalizers": { 1455 VendorExtensible: spec.VendorExtensible{ 1456 Extensions: spec.Extensions{ 1457 "x-kubernetes-patch-strategy": "merge", 1458 }, 1459 }, 1460 SchemaProps: spec.SchemaProps{ 1461 Description: "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", 1462 Type: []string{"array"}, 1463 Items: &spec.SchemaOrArray{ 1464 Schema: &spec.Schema{ 1465 SchemaProps: spec.SchemaProps{ 1466 Default: "", 1467 Type: []string{"string"}, 1468 Format: "", 1469 }, 1470 }, 1471 }, 1472 }, 1473 }, 1474 "managedFields": { 1475 SchemaProps: spec.SchemaProps{ 1476 Description: "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", 1477 Type: []string{"array"}, 1478 Items: &spec.SchemaOrArray{ 1479 Schema: &spec.Schema{ 1480 SchemaProps: spec.SchemaProps{ 1481 Default: map[string]interface{}{}, 1482 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), 1483 }, 1484 }, 1485 }, 1486 }, 1487 }, 1488 }, 1489 }, 1490 }, 1491 Dependencies: []string{ 1492 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1493 } 1494 } 1495 1496 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 1497 return common.OpenAPIDefinition{ 1498 Schema: spec.Schema{ 1499 SchemaProps: spec.SchemaProps{ 1500 Description: "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", 1501 Type: []string{"object"}, 1502 Properties: map[string]spec.Schema{ 1503 "apiVersion": { 1504 SchemaProps: spec.SchemaProps{ 1505 Description: "API version of the referent.", 1506 Default: "", 1507 Type: []string{"string"}, 1508 Format: "", 1509 }, 1510 }, 1511 "kind": { 1512 SchemaProps: spec.SchemaProps{ 1513 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1514 Default: "", 1515 Type: []string{"string"}, 1516 Format: "", 1517 }, 1518 }, 1519 "name": { 1520 SchemaProps: spec.SchemaProps{ 1521 Description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", 1522 Default: "", 1523 Type: []string{"string"}, 1524 Format: "", 1525 }, 1526 }, 1527 "uid": { 1528 SchemaProps: spec.SchemaProps{ 1529 Description: "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 1530 Default: "", 1531 Type: []string{"string"}, 1532 Format: "", 1533 }, 1534 }, 1535 "controller": { 1536 SchemaProps: spec.SchemaProps{ 1537 Description: "If true, this reference points to the managing controller.", 1538 Type: []string{"boolean"}, 1539 Format: "", 1540 }, 1541 }, 1542 "blockOwnerDeletion": { 1543 SchemaProps: spec.SchemaProps{ 1544 Description: "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", 1545 Type: []string{"boolean"}, 1546 Format: "", 1547 }, 1548 }, 1549 }, 1550 Required: []string{"apiVersion", "kind", "name", "uid"}, 1551 }, 1552 VendorExtensible: spec.VendorExtensible{ 1553 Extensions: spec.Extensions{ 1554 "x-kubernetes-map-type": "atomic", 1555 }, 1556 }, 1557 }, 1558 } 1559 } 1560 1561 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 1562 return common.OpenAPIDefinition{ 1563 Schema: spec.Schema{ 1564 SchemaProps: spec.SchemaProps{ 1565 Description: "PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients to get access to a particular ObjectMeta schema without knowing the details of the version.", 1566 Type: []string{"object"}, 1567 Properties: map[string]spec.Schema{ 1568 "kind": { 1569 SchemaProps: spec.SchemaProps{ 1570 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", 1571 Type: []string{"string"}, 1572 Format: "", 1573 }, 1574 }, 1575 "apiVersion": { 1576 SchemaProps: spec.SchemaProps{ 1577 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", 1578 Type: []string{"string"}, 1579 Format: "", 1580 }, 1581 }, 1582 "metadata": { 1583 SchemaProps: spec.SchemaProps{ 1584 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1585 Default: map[string]interface{}{}, 1586 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1587 }, 1588 }, 1589 }, 1590 }, 1591 }, 1592 Dependencies: []string{ 1593 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1594 } 1595 } 1596 1597 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1598 return common.OpenAPIDefinition{ 1599 Schema: spec.Schema{ 1600 SchemaProps: spec.SchemaProps{ 1601 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata", 1602 Type: []string{"object"}, 1603 Properties: map[string]spec.Schema{ 1604 "kind": { 1605 SchemaProps: spec.SchemaProps{ 1606 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", 1607 Type: []string{"string"}, 1608 Format: "", 1609 }, 1610 }, 1611 "apiVersion": { 1612 SchemaProps: spec.SchemaProps{ 1613 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", 1614 Type: []string{"string"}, 1615 Format: "", 1616 }, 1617 }, 1618 "metadata": { 1619 SchemaProps: spec.SchemaProps{ 1620 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1621 Default: map[string]interface{}{}, 1622 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1623 }, 1624 }, 1625 "items": { 1626 SchemaProps: spec.SchemaProps{ 1627 Description: "items contains each of the included items.", 1628 Type: []string{"array"}, 1629 Items: &spec.SchemaOrArray{ 1630 Schema: &spec.Schema{ 1631 SchemaProps: spec.SchemaProps{ 1632 Default: map[string]interface{}{}, 1633 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), 1634 }, 1635 }, 1636 }, 1637 }, 1638 }, 1639 }, 1640 Required: []string{"items"}, 1641 }, 1642 }, 1643 Dependencies: []string{ 1644 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, 1645 } 1646 } 1647 1648 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition { 1649 return common.OpenAPIDefinition{ 1650 Schema: spec.Schema{ 1651 SchemaProps: spec.SchemaProps{ 1652 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", 1653 Type: []string{"object"}, 1654 }, 1655 }, 1656 } 1657 } 1658 1659 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1660 return common.OpenAPIDefinition{ 1661 Schema: spec.Schema{ 1662 SchemaProps: spec.SchemaProps{ 1663 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", 1664 Type: []string{"object"}, 1665 Properties: map[string]spec.Schema{ 1666 "kind": { 1667 SchemaProps: spec.SchemaProps{ 1668 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", 1669 Type: []string{"string"}, 1670 Format: "", 1671 }, 1672 }, 1673 "apiVersion": { 1674 SchemaProps: spec.SchemaProps{ 1675 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", 1676 Type: []string{"string"}, 1677 Format: "", 1678 }, 1679 }, 1680 "dryRun": { 1681 SchemaProps: spec.SchemaProps{ 1682 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", 1683 Type: []string{"array"}, 1684 Items: &spec.SchemaOrArray{ 1685 Schema: &spec.Schema{ 1686 SchemaProps: spec.SchemaProps{ 1687 Default: "", 1688 Type: []string{"string"}, 1689 Format: "", 1690 }, 1691 }, 1692 }, 1693 }, 1694 }, 1695 "force": { 1696 SchemaProps: spec.SchemaProps{ 1697 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", 1698 Type: []string{"boolean"}, 1699 Format: "", 1700 }, 1701 }, 1702 "fieldManager": { 1703 SchemaProps: spec.SchemaProps{ 1704 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", 1705 Type: []string{"string"}, 1706 Format: "", 1707 }, 1708 }, 1709 "fieldValidation": { 1710 SchemaProps: spec.SchemaProps{ 1711 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 1712 Type: []string{"string"}, 1713 Format: "", 1714 }, 1715 }, 1716 }, 1717 }, 1718 }, 1719 } 1720 } 1721 1722 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition { 1723 return common.OpenAPIDefinition{ 1724 Schema: spec.Schema{ 1725 SchemaProps: spec.SchemaProps{ 1726 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", 1727 Type: []string{"object"}, 1728 Properties: map[string]spec.Schema{ 1729 "uid": { 1730 SchemaProps: spec.SchemaProps{ 1731 Description: "Specifies the target UID.", 1732 Type: []string{"string"}, 1733 Format: "", 1734 }, 1735 }, 1736 "resourceVersion": { 1737 SchemaProps: spec.SchemaProps{ 1738 Description: "Specifies the target ResourceVersion", 1739 Type: []string{"string"}, 1740 Format: "", 1741 }, 1742 }, 1743 }, 1744 }, 1745 }, 1746 } 1747 } 1748 1749 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition { 1750 return common.OpenAPIDefinition{ 1751 Schema: spec.Schema{ 1752 SchemaProps: spec.SchemaProps{ 1753 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", 1754 Type: []string{"object"}, 1755 Properties: map[string]spec.Schema{ 1756 "paths": { 1757 SchemaProps: spec.SchemaProps{ 1758 Description: "paths are the paths available at root.", 1759 Type: []string{"array"}, 1760 Items: &spec.SchemaOrArray{ 1761 Schema: &spec.Schema{ 1762 SchemaProps: spec.SchemaProps{ 1763 Default: "", 1764 Type: []string{"string"}, 1765 Format: "", 1766 }, 1767 }, 1768 }, 1769 }, 1770 }, 1771 }, 1772 Required: []string{"paths"}, 1773 }, 1774 }, 1775 } 1776 } 1777 1778 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { 1779 return common.OpenAPIDefinition{ 1780 Schema: spec.Schema{ 1781 SchemaProps: spec.SchemaProps{ 1782 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", 1783 Type: []string{"object"}, 1784 Properties: map[string]spec.Schema{ 1785 "clientCIDR": { 1786 SchemaProps: spec.SchemaProps{ 1787 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.", 1788 Default: "", 1789 Type: []string{"string"}, 1790 Format: "", 1791 }, 1792 }, 1793 "serverAddress": { 1794 SchemaProps: spec.SchemaProps{ 1795 Description: "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", 1796 Default: "", 1797 Type: []string{"string"}, 1798 Format: "", 1799 }, 1800 }, 1801 }, 1802 Required: []string{"clientCIDR", "serverAddress"}, 1803 }, 1804 }, 1805 } 1806 } 1807 1808 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 1809 return common.OpenAPIDefinition{ 1810 Schema: spec.Schema{ 1811 SchemaProps: spec.SchemaProps{ 1812 Description: "Status is a return value for calls that don't return other objects.", 1813 Type: []string{"object"}, 1814 Properties: map[string]spec.Schema{ 1815 "kind": { 1816 SchemaProps: spec.SchemaProps{ 1817 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", 1818 Type: []string{"string"}, 1819 Format: "", 1820 }, 1821 }, 1822 "apiVersion": { 1823 SchemaProps: spec.SchemaProps{ 1824 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", 1825 Type: []string{"string"}, 1826 Format: "", 1827 }, 1828 }, 1829 "metadata": { 1830 SchemaProps: spec.SchemaProps{ 1831 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1832 Default: map[string]interface{}{}, 1833 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1834 }, 1835 }, 1836 "status": { 1837 SchemaProps: spec.SchemaProps{ 1838 Description: "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 1839 Type: []string{"string"}, 1840 Format: "", 1841 }, 1842 }, 1843 "message": { 1844 SchemaProps: spec.SchemaProps{ 1845 Description: "A human-readable description of the status of this operation.", 1846 Type: []string{"string"}, 1847 Format: "", 1848 }, 1849 }, 1850 "reason": { 1851 SchemaProps: spec.SchemaProps{ 1852 Description: "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", 1853 Type: []string{"string"}, 1854 Format: "", 1855 }, 1856 }, 1857 "details": { 1858 SchemaProps: spec.SchemaProps{ 1859 Description: "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", 1860 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), 1861 }, 1862 }, 1863 "code": { 1864 SchemaProps: spec.SchemaProps{ 1865 Description: "Suggested HTTP return code for this status, 0 if not set.", 1866 Type: []string{"integer"}, 1867 Format: "int32", 1868 }, 1869 }, 1870 }, 1871 }, 1872 }, 1873 Dependencies: []string{ 1874 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, 1875 } 1876 } 1877 1878 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition { 1879 return common.OpenAPIDefinition{ 1880 Schema: spec.Schema{ 1881 SchemaProps: spec.SchemaProps{ 1882 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", 1883 Type: []string{"object"}, 1884 Properties: map[string]spec.Schema{ 1885 "reason": { 1886 SchemaProps: spec.SchemaProps{ 1887 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.", 1888 Type: []string{"string"}, 1889 Format: "", 1890 }, 1891 }, 1892 "message": { 1893 SchemaProps: spec.SchemaProps{ 1894 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", 1895 Type: []string{"string"}, 1896 Format: "", 1897 }, 1898 }, 1899 "field": { 1900 SchemaProps: spec.SchemaProps{ 1901 Description: "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", 1902 Type: []string{"string"}, 1903 Format: "", 1904 }, 1905 }, 1906 }, 1907 }, 1908 }, 1909 } 1910 } 1911 1912 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { 1913 return common.OpenAPIDefinition{ 1914 Schema: spec.Schema{ 1915 SchemaProps: spec.SchemaProps{ 1916 Description: "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", 1917 Type: []string{"object"}, 1918 Properties: map[string]spec.Schema{ 1919 "name": { 1920 SchemaProps: spec.SchemaProps{ 1921 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", 1922 Type: []string{"string"}, 1923 Format: "", 1924 }, 1925 }, 1926 "group": { 1927 SchemaProps: spec.SchemaProps{ 1928 Description: "The group attribute of the resource associated with the status StatusReason.", 1929 Type: []string{"string"}, 1930 Format: "", 1931 }, 1932 }, 1933 "kind": { 1934 SchemaProps: spec.SchemaProps{ 1935 Description: "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1936 Type: []string{"string"}, 1937 Format: "", 1938 }, 1939 }, 1940 "uid": { 1941 SchemaProps: spec.SchemaProps{ 1942 Description: "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 1943 Type: []string{"string"}, 1944 Format: "", 1945 }, 1946 }, 1947 "causes": { 1948 SchemaProps: spec.SchemaProps{ 1949 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", 1950 Type: []string{"array"}, 1951 Items: &spec.SchemaOrArray{ 1952 Schema: &spec.Schema{ 1953 SchemaProps: spec.SchemaProps{ 1954 Default: map[string]interface{}{}, 1955 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), 1956 }, 1957 }, 1958 }, 1959 }, 1960 }, 1961 "retryAfterSeconds": { 1962 SchemaProps: spec.SchemaProps{ 1963 Description: "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", 1964 Type: []string{"integer"}, 1965 Format: "int32", 1966 }, 1967 }, 1968 }, 1969 }, 1970 }, 1971 Dependencies: []string{ 1972 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, 1973 } 1974 } 1975 1976 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition { 1977 return common.OpenAPIDefinition{ 1978 Schema: spec.Schema{ 1979 SchemaProps: spec.SchemaProps{ 1980 Description: "Table is a tabular representation of a set of API resources. The server transforms the object into a set of preferred columns for quickly reviewing the objects.", 1981 Type: []string{"object"}, 1982 Properties: map[string]spec.Schema{ 1983 "kind": { 1984 SchemaProps: spec.SchemaProps{ 1985 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", 1986 Type: []string{"string"}, 1987 Format: "", 1988 }, 1989 }, 1990 "apiVersion": { 1991 SchemaProps: spec.SchemaProps{ 1992 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", 1993 Type: []string{"string"}, 1994 Format: "", 1995 }, 1996 }, 1997 "metadata": { 1998 SchemaProps: spec.SchemaProps{ 1999 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2000 Default: map[string]interface{}{}, 2001 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2002 }, 2003 }, 2004 "columnDefinitions": { 2005 SchemaProps: spec.SchemaProps{ 2006 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", 2007 Type: []string{"array"}, 2008 Items: &spec.SchemaOrArray{ 2009 Schema: &spec.Schema{ 2010 SchemaProps: spec.SchemaProps{ 2011 Default: map[string]interface{}{}, 2012 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), 2013 }, 2014 }, 2015 }, 2016 }, 2017 }, 2018 "rows": { 2019 SchemaProps: spec.SchemaProps{ 2020 Description: "rows is the list of items in the table.", 2021 Type: []string{"array"}, 2022 Items: &spec.SchemaOrArray{ 2023 Schema: &spec.Schema{ 2024 SchemaProps: spec.SchemaProps{ 2025 Default: map[string]interface{}{}, 2026 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), 2027 }, 2028 }, 2029 }, 2030 }, 2031 }, 2032 }, 2033 Required: []string{"columnDefinitions", "rows"}, 2034 }, 2035 }, 2036 Dependencies: []string{ 2037 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, 2038 } 2039 } 2040 2041 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { 2042 return common.OpenAPIDefinition{ 2043 Schema: spec.Schema{ 2044 SchemaProps: spec.SchemaProps{ 2045 Description: "TableColumnDefinition contains information about a column returned in the Table.", 2046 Type: []string{"object"}, 2047 Properties: map[string]spec.Schema{ 2048 "name": { 2049 SchemaProps: spec.SchemaProps{ 2050 Description: "name is a human readable name for the column.", 2051 Default: "", 2052 Type: []string{"string"}, 2053 Format: "", 2054 }, 2055 }, 2056 "type": { 2057 SchemaProps: spec.SchemaProps{ 2058 Description: "type is an OpenAPI type definition for this column, such as number, integer, string, or array. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.", 2059 Default: "", 2060 Type: []string{"string"}, 2061 Format: "", 2062 }, 2063 }, 2064 "format": { 2065 SchemaProps: spec.SchemaProps{ 2066 Description: "format is an optional OpenAPI type modifier for this column. A format modifies the type and imposes additional rules, like date or time formatting for a string. The 'name' format is applied to the primary identifier column which has type 'string' to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.", 2067 Default: "", 2068 Type: []string{"string"}, 2069 Format: "", 2070 }, 2071 }, 2072 "description": { 2073 SchemaProps: spec.SchemaProps{ 2074 Description: "description is a human readable description of this column.", 2075 Default: "", 2076 Type: []string{"string"}, 2077 Format: "", 2078 }, 2079 }, 2080 "priority": { 2081 SchemaProps: spec.SchemaProps{ 2082 Description: "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.", 2083 Default: 0, 2084 Type: []string{"integer"}, 2085 Format: "int32", 2086 }, 2087 }, 2088 }, 2089 Required: []string{"name", "type", "format", "description", "priority"}, 2090 }, 2091 }, 2092 } 2093 } 2094 2095 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 2096 return common.OpenAPIDefinition{ 2097 Schema: spec.Schema{ 2098 SchemaProps: spec.SchemaProps{ 2099 Description: "TableOptions are used when a Table is requested by the caller.", 2100 Type: []string{"object"}, 2101 Properties: map[string]spec.Schema{ 2102 "kind": { 2103 SchemaProps: spec.SchemaProps{ 2104 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", 2105 Type: []string{"string"}, 2106 Format: "", 2107 }, 2108 }, 2109 "apiVersion": { 2110 SchemaProps: spec.SchemaProps{ 2111 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", 2112 Type: []string{"string"}, 2113 Format: "", 2114 }, 2115 }, 2116 "includeObject": { 2117 SchemaProps: spec.SchemaProps{ 2118 Description: "includeObject decides whether to include each object along with its columnar information. Specifying \"None\" will return no object, specifying \"Object\" will return the full object contents, and specifying \"Metadata\" (the default) will return the object's metadata in the PartialObjectMetadata kind in version v1beta1 of the meta.k8s.io API group.", 2119 Type: []string{"string"}, 2120 Format: "", 2121 }, 2122 }, 2123 }, 2124 }, 2125 }, 2126 } 2127 } 2128 2129 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition { 2130 return common.OpenAPIDefinition{ 2131 Schema: spec.Schema{ 2132 SchemaProps: spec.SchemaProps{ 2133 Description: "TableRow is an individual row in a table.", 2134 Type: []string{"object"}, 2135 Properties: map[string]spec.Schema{ 2136 "cells": { 2137 SchemaProps: spec.SchemaProps{ 2138 Description: "cells will be as wide as the column definitions array and may contain strings, numbers (float64 or int64), booleans, simple maps, lists, or null. See the type field of the column definition for a more detailed description.", 2139 Type: []string{"array"}, 2140 Items: &spec.SchemaOrArray{ 2141 Schema: &spec.Schema{ 2142 SchemaProps: spec.SchemaProps{ 2143 Type: []string{"object"}, 2144 Format: "", 2145 }, 2146 }, 2147 }, 2148 }, 2149 }, 2150 "conditions": { 2151 SchemaProps: spec.SchemaProps{ 2152 Description: "conditions describe additional status of a row that are relevant for a human user. These conditions apply to the row, not to the object, and will be specific to table output. The only defined condition type is 'Completed', for a row that indicates a resource that has run to completion and can be given less visual priority.", 2153 Type: []string{"array"}, 2154 Items: &spec.SchemaOrArray{ 2155 Schema: &spec.Schema{ 2156 SchemaProps: spec.SchemaProps{ 2157 Default: map[string]interface{}{}, 2158 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"), 2159 }, 2160 }, 2161 }, 2162 }, 2163 }, 2164 "object": { 2165 SchemaProps: spec.SchemaProps{ 2166 Description: "This field contains the requested additional information about each object based on the includeObject policy when requesting the Table. If \"None\", this field is empty, if \"Object\" this will be the default serialization of the object for the current API version, and if \"Metadata\" (the default) will contain the object metadata. Check the returned kind and apiVersion of the object before parsing. The media type of the object will always match the enclosing list - if this as a JSON table, these will be JSON encoded objects.", 2167 Default: map[string]interface{}{}, 2168 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 2169 }, 2170 }, 2171 }, 2172 Required: []string{"cells"}, 2173 }, 2174 }, 2175 Dependencies: []string{ 2176 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 2177 } 2178 } 2179 2180 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 2181 return common.OpenAPIDefinition{ 2182 Schema: spec.Schema{ 2183 SchemaProps: spec.SchemaProps{ 2184 Description: "TableRowCondition allows a row to be marked with additional information.", 2185 Type: []string{"object"}, 2186 Properties: map[string]spec.Schema{ 2187 "type": { 2188 SchemaProps: spec.SchemaProps{ 2189 Description: "Type of row condition. The only defined value is 'Completed' indicating that the object this row represents has reached a completed state and may be given less visual priority than other rows. Clients are not required to honor any conditions but should be consistent where possible about handling the conditions.", 2190 Default: "", 2191 Type: []string{"string"}, 2192 Format: "", 2193 }, 2194 }, 2195 "status": { 2196 SchemaProps: spec.SchemaProps{ 2197 Description: "Status of the condition, one of True, False, Unknown.", 2198 Default: "", 2199 Type: []string{"string"}, 2200 Format: "", 2201 }, 2202 }, 2203 "reason": { 2204 SchemaProps: spec.SchemaProps{ 2205 Description: "(brief) machine readable reason for the condition's last transition.", 2206 Type: []string{"string"}, 2207 Format: "", 2208 }, 2209 }, 2210 "message": { 2211 SchemaProps: spec.SchemaProps{ 2212 Description: "Human readable message indicating details about last transition.", 2213 Type: []string{"string"}, 2214 Format: "", 2215 }, 2216 }, 2217 }, 2218 Required: []string{"type", "status"}, 2219 }, 2220 }, 2221 } 2222 } 2223 2224 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition { 2225 return common.OpenAPIDefinition{ 2226 Schema: spec.Schema{ 2227 SchemaProps: spec.SchemaProps{ 2228 Description: "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", 2229 Type: v1.Time{}.OpenAPISchemaType(), 2230 Format: v1.Time{}.OpenAPISchemaFormat(), 2231 }, 2232 }, 2233 } 2234 } 2235 2236 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition { 2237 return common.OpenAPIDefinition{ 2238 Schema: spec.Schema{ 2239 SchemaProps: spec.SchemaProps{ 2240 Description: "Timestamp is a struct that is equivalent to Time, but intended for protobuf marshalling/unmarshalling. It is generated into a serialization that matches Time. Do not use in Go structs.", 2241 Type: []string{"object"}, 2242 Properties: map[string]spec.Schema{ 2243 "seconds": { 2244 SchemaProps: spec.SchemaProps{ 2245 Description: "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.", 2246 Default: 0, 2247 Type: []string{"integer"}, 2248 Format: "int64", 2249 }, 2250 }, 2251 "nanos": { 2252 SchemaProps: spec.SchemaProps{ 2253 Description: "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.", 2254 Default: 0, 2255 Type: []string{"integer"}, 2256 Format: "int32", 2257 }, 2258 }, 2259 }, 2260 Required: []string{"seconds", "nanos"}, 2261 }, 2262 }, 2263 } 2264 } 2265 2266 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 2267 return common.OpenAPIDefinition{ 2268 Schema: spec.Schema{ 2269 SchemaProps: spec.SchemaProps{ 2270 Description: "TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.", 2271 Type: []string{"object"}, 2272 Properties: map[string]spec.Schema{ 2273 "kind": { 2274 SchemaProps: spec.SchemaProps{ 2275 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", 2276 Type: []string{"string"}, 2277 Format: "", 2278 }, 2279 }, 2280 "apiVersion": { 2281 SchemaProps: spec.SchemaProps{ 2282 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", 2283 Type: []string{"string"}, 2284 Format: "", 2285 }, 2286 }, 2287 }, 2288 }, 2289 }, 2290 } 2291 } 2292 2293 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 2294 return common.OpenAPIDefinition{ 2295 Schema: spec.Schema{ 2296 SchemaProps: spec.SchemaProps{ 2297 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", 2298 Type: []string{"object"}, 2299 Properties: map[string]spec.Schema{ 2300 "kind": { 2301 SchemaProps: spec.SchemaProps{ 2302 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", 2303 Type: []string{"string"}, 2304 Format: "", 2305 }, 2306 }, 2307 "apiVersion": { 2308 SchemaProps: spec.SchemaProps{ 2309 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", 2310 Type: []string{"string"}, 2311 Format: "", 2312 }, 2313 }, 2314 "dryRun": { 2315 SchemaProps: spec.SchemaProps{ 2316 Description: "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", 2317 Type: []string{"array"}, 2318 Items: &spec.SchemaOrArray{ 2319 Schema: &spec.Schema{ 2320 SchemaProps: spec.SchemaProps{ 2321 Default: "", 2322 Type: []string{"string"}, 2323 Format: "", 2324 }, 2325 }, 2326 }, 2327 }, 2328 }, 2329 "fieldManager": { 2330 SchemaProps: spec.SchemaProps{ 2331 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", 2332 Type: []string{"string"}, 2333 Format: "", 2334 }, 2335 }, 2336 "fieldValidation": { 2337 SchemaProps: spec.SchemaProps{ 2338 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 2339 Type: []string{"string"}, 2340 Format: "", 2341 }, 2342 }, 2343 }, 2344 }, 2345 }, 2346 } 2347 } 2348 2349 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 2350 return common.OpenAPIDefinition{ 2351 Schema: spec.Schema{ 2352 SchemaProps: spec.SchemaProps{ 2353 Description: "Event represents a single event to a watched resource.", 2354 Type: []string{"object"}, 2355 Properties: map[string]spec.Schema{ 2356 "type": { 2357 SchemaProps: spec.SchemaProps{ 2358 Default: "", 2359 Type: []string{"string"}, 2360 Format: "", 2361 }, 2362 }, 2363 "object": { 2364 SchemaProps: spec.SchemaProps{ 2365 Description: "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", 2366 Default: map[string]interface{}{}, 2367 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 2368 }, 2369 }, 2370 }, 2371 Required: []string{"type", "object"}, 2372 }, 2373 }, 2374 Dependencies: []string{ 2375 "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 2376 } 2377 } 2378 2379 func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition { 2380 return common.OpenAPIDefinition{ 2381 Schema: spec.Schema{ 2382 SchemaProps: spec.SchemaProps{ 2383 Description: "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", 2384 Type: []string{"object"}, 2385 }, 2386 }, 2387 } 2388 } 2389 2390 func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 2391 return common.OpenAPIDefinition{ 2392 Schema: spec.Schema{ 2393 SchemaProps: spec.SchemaProps{ 2394 Description: "TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, like this:\n\n\ttype MyAwesomeAPIObject struct {\n\t runtime.TypeMeta `json:\",inline\"`\n\t ... // other fields\n\t}\n\nfunc (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind\n\nTypeMeta is provided here for convenience. You may use it directly from this package or define your own with the same fields.", 2395 Type: []string{"object"}, 2396 Properties: map[string]spec.Schema{ 2397 "apiVersion": { 2398 SchemaProps: spec.SchemaProps{ 2399 Type: []string{"string"}, 2400 Format: "", 2401 }, 2402 }, 2403 "kind": { 2404 SchemaProps: spec.SchemaProps{ 2405 Type: []string{"string"}, 2406 Format: "", 2407 }, 2408 }, 2409 }, 2410 }, 2411 }, 2412 } 2413 } 2414 2415 func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition { 2416 return common.OpenAPIDefinition{ 2417 Schema: spec.Schema{ 2418 SchemaProps: spec.SchemaProps{ 2419 Description: "Unknown allows api objects with unknown types to be passed-through. This can be used to deal with the API objects from a plug-in. Unknown objects still have functioning TypeMeta features-- kind, version, etc. metadata and field mutatation.", 2420 Type: []string{"object"}, 2421 Properties: map[string]spec.Schema{ 2422 "apiVersion": { 2423 SchemaProps: spec.SchemaProps{ 2424 Type: []string{"string"}, 2425 Format: "", 2426 }, 2427 }, 2428 "kind": { 2429 SchemaProps: spec.SchemaProps{ 2430 Type: []string{"string"}, 2431 Format: "", 2432 }, 2433 }, 2434 "Raw": { 2435 SchemaProps: spec.SchemaProps{ 2436 Description: "Raw will hold the complete serialized object which couldn't be matched with a registered type. Most likely, nothing should be done with this except for passing it through the system.", 2437 Type: []string{"string"}, 2438 Format: "byte", 2439 }, 2440 }, 2441 "ContentEncoding": { 2442 SchemaProps: spec.SchemaProps{ 2443 Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.", 2444 Default: "", 2445 Type: []string{"string"}, 2446 Format: "", 2447 }, 2448 }, 2449 "ContentType": { 2450 SchemaProps: spec.SchemaProps{ 2451 Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.", 2452 Default: "", 2453 Type: []string{"string"}, 2454 Format: "", 2455 }, 2456 }, 2457 }, 2458 Required: []string{"Raw", "ContentEncoding", "ContentType"}, 2459 }, 2460 }, 2461 } 2462 } 2463 2464 func schema_kubesphereio_api_devops_v1alpha3_BitbucketServerSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2465 return common.OpenAPIDefinition{ 2466 Schema: spec.Schema{ 2467 SchemaProps: spec.SchemaProps{ 2468 Type: []string{"object"}, 2469 Properties: map[string]spec.Schema{ 2470 "scm_id": { 2471 SchemaProps: spec.SchemaProps{ 2472 Type: []string{"string"}, 2473 Format: "", 2474 }, 2475 }, 2476 "owner": { 2477 SchemaProps: spec.SchemaProps{ 2478 Type: []string{"string"}, 2479 Format: "", 2480 }, 2481 }, 2482 "repo": { 2483 SchemaProps: spec.SchemaProps{ 2484 Type: []string{"string"}, 2485 Format: "", 2486 }, 2487 }, 2488 "credential_id": { 2489 SchemaProps: spec.SchemaProps{ 2490 Type: []string{"string"}, 2491 Format: "", 2492 }, 2493 }, 2494 "api_uri": { 2495 SchemaProps: spec.SchemaProps{ 2496 Type: []string{"string"}, 2497 Format: "", 2498 }, 2499 }, 2500 "discover_branches": { 2501 SchemaProps: spec.SchemaProps{ 2502 Type: []string{"integer"}, 2503 Format: "int32", 2504 }, 2505 }, 2506 "discover_pr_from_origin": { 2507 SchemaProps: spec.SchemaProps{ 2508 Type: []string{"integer"}, 2509 Format: "int32", 2510 }, 2511 }, 2512 "discover_pr_from_forks": { 2513 SchemaProps: spec.SchemaProps{ 2514 Ref: ref("kubesphere.io/api/devops/v1alpha3.DiscoverPRFromForks"), 2515 }, 2516 }, 2517 "discover_tags": { 2518 SchemaProps: spec.SchemaProps{ 2519 Type: []string{"boolean"}, 2520 Format: "", 2521 }, 2522 }, 2523 "git_clone_option": { 2524 SchemaProps: spec.SchemaProps{ 2525 Ref: ref("kubesphere.io/api/devops/v1alpha3.GitCloneOption"), 2526 }, 2527 }, 2528 "regex_filter": { 2529 SchemaProps: spec.SchemaProps{ 2530 Type: []string{"string"}, 2531 Format: "", 2532 }, 2533 }, 2534 }, 2535 }, 2536 }, 2537 Dependencies: []string{ 2538 "kubesphere.io/api/devops/v1alpha3.DiscoverPRFromForks", "kubesphere.io/api/devops/v1alpha3.GitCloneOption"}, 2539 } 2540 } 2541 2542 func schema_kubesphereio_api_devops_v1alpha3_DevOpsProject(ref common.ReferenceCallback) common.OpenAPIDefinition { 2543 return common.OpenAPIDefinition{ 2544 Schema: spec.Schema{ 2545 SchemaProps: spec.SchemaProps{ 2546 Description: "DevOpsProject is the Schema for the devopsprojects API", 2547 Type: []string{"object"}, 2548 Properties: map[string]spec.Schema{ 2549 "kind": { 2550 SchemaProps: spec.SchemaProps{ 2551 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", 2552 Type: []string{"string"}, 2553 Format: "", 2554 }, 2555 }, 2556 "apiVersion": { 2557 SchemaProps: spec.SchemaProps{ 2558 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", 2559 Type: []string{"string"}, 2560 Format: "", 2561 }, 2562 }, 2563 "metadata": { 2564 SchemaProps: spec.SchemaProps{ 2565 Default: map[string]interface{}{}, 2566 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2567 }, 2568 }, 2569 "spec": { 2570 SchemaProps: spec.SchemaProps{ 2571 Default: map[string]interface{}{}, 2572 Ref: ref("kubesphere.io/api/devops/v1alpha3.DevOpsProjectSpec"), 2573 }, 2574 }, 2575 "status": { 2576 SchemaProps: spec.SchemaProps{ 2577 Default: map[string]interface{}{}, 2578 Ref: ref("kubesphere.io/api/devops/v1alpha3.DevOpsProjectStatus"), 2579 }, 2580 }, 2581 }, 2582 }, 2583 }, 2584 Dependencies: []string{ 2585 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/devops/v1alpha3.DevOpsProjectSpec", "kubesphere.io/api/devops/v1alpha3.DevOpsProjectStatus"}, 2586 } 2587 } 2588 2589 func schema_kubesphereio_api_devops_v1alpha3_DevOpsProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2590 return common.OpenAPIDefinition{ 2591 Schema: spec.Schema{ 2592 SchemaProps: spec.SchemaProps{ 2593 Description: "DevOpsProjectList contains a list of DevOpsProject", 2594 Type: []string{"object"}, 2595 Properties: map[string]spec.Schema{ 2596 "kind": { 2597 SchemaProps: spec.SchemaProps{ 2598 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", 2599 Type: []string{"string"}, 2600 Format: "", 2601 }, 2602 }, 2603 "apiVersion": { 2604 SchemaProps: spec.SchemaProps{ 2605 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", 2606 Type: []string{"string"}, 2607 Format: "", 2608 }, 2609 }, 2610 "metadata": { 2611 SchemaProps: spec.SchemaProps{ 2612 Default: map[string]interface{}{}, 2613 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2614 }, 2615 }, 2616 "items": { 2617 SchemaProps: spec.SchemaProps{ 2618 Type: []string{"array"}, 2619 Items: &spec.SchemaOrArray{ 2620 Schema: &spec.Schema{ 2621 SchemaProps: spec.SchemaProps{ 2622 Default: map[string]interface{}{}, 2623 Ref: ref("kubesphere.io/api/devops/v1alpha3.DevOpsProject"), 2624 }, 2625 }, 2626 }, 2627 }, 2628 }, 2629 }, 2630 Required: []string{"items"}, 2631 }, 2632 }, 2633 Dependencies: []string{ 2634 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/devops/v1alpha3.DevOpsProject"}, 2635 } 2636 } 2637 2638 func schema_kubesphereio_api_devops_v1alpha3_DevOpsProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 2639 return common.OpenAPIDefinition{ 2640 Schema: spec.Schema{ 2641 SchemaProps: spec.SchemaProps{ 2642 Description: "DevOpsProjectSpec defines the desired state of DevOpsProject", 2643 Type: []string{"object"}, 2644 }, 2645 }, 2646 } 2647 } 2648 2649 func schema_kubesphereio_api_devops_v1alpha3_DevOpsProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2650 return common.OpenAPIDefinition{ 2651 Schema: spec.Schema{ 2652 SchemaProps: spec.SchemaProps{ 2653 Description: "DevOpsProjectStatus defines the observed state of DevOpsProject", 2654 Type: []string{"object"}, 2655 Properties: map[string]spec.Schema{ 2656 "adminNamespace": { 2657 SchemaProps: spec.SchemaProps{ 2658 Description: "INSERT ADDITIONAL STATUS FIELD - define observed state of cluster Important: Run \"make\" to regenerate code after modifying this file", 2659 Type: []string{"string"}, 2660 Format: "", 2661 }, 2662 }, 2663 }, 2664 }, 2665 }, 2666 } 2667 } 2668 2669 func schema_kubesphereio_api_devops_v1alpha3_DiscarderProperty(ref common.ReferenceCallback) common.OpenAPIDefinition { 2670 return common.OpenAPIDefinition{ 2671 Schema: spec.Schema{ 2672 SchemaProps: spec.SchemaProps{ 2673 Type: []string{"object"}, 2674 Properties: map[string]spec.Schema{ 2675 "days_to_keep": { 2676 SchemaProps: spec.SchemaProps{ 2677 Type: []string{"string"}, 2678 Format: "", 2679 }, 2680 }, 2681 "num_to_keep": { 2682 SchemaProps: spec.SchemaProps{ 2683 Type: []string{"string"}, 2684 Format: "", 2685 }, 2686 }, 2687 }, 2688 }, 2689 }, 2690 } 2691 } 2692 2693 func schema_kubesphereio_api_devops_v1alpha3_DiscoverPRFromForks(ref common.ReferenceCallback) common.OpenAPIDefinition { 2694 return common.OpenAPIDefinition{ 2695 Schema: spec.Schema{ 2696 SchemaProps: spec.SchemaProps{ 2697 Type: []string{"object"}, 2698 Properties: map[string]spec.Schema{ 2699 "strategy": { 2700 SchemaProps: spec.SchemaProps{ 2701 Type: []string{"integer"}, 2702 Format: "int32", 2703 }, 2704 }, 2705 "trust": { 2706 SchemaProps: spec.SchemaProps{ 2707 Type: []string{"integer"}, 2708 Format: "int32", 2709 }, 2710 }, 2711 }, 2712 }, 2713 }, 2714 } 2715 } 2716 2717 func schema_kubesphereio_api_devops_v1alpha3_GitCloneOption(ref common.ReferenceCallback) common.OpenAPIDefinition { 2718 return common.OpenAPIDefinition{ 2719 Schema: spec.Schema{ 2720 SchemaProps: spec.SchemaProps{ 2721 Type: []string{"object"}, 2722 Properties: map[string]spec.Schema{ 2723 "shallow": { 2724 SchemaProps: spec.SchemaProps{ 2725 Type: []string{"boolean"}, 2726 Format: "", 2727 }, 2728 }, 2729 "timeout": { 2730 SchemaProps: spec.SchemaProps{ 2731 Type: []string{"integer"}, 2732 Format: "int32", 2733 }, 2734 }, 2735 "depth": { 2736 SchemaProps: spec.SchemaProps{ 2737 Type: []string{"integer"}, 2738 Format: "int32", 2739 }, 2740 }, 2741 }, 2742 }, 2743 }, 2744 } 2745 } 2746 2747 func schema_kubesphereio_api_devops_v1alpha3_GitSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2748 return common.OpenAPIDefinition{ 2749 Schema: spec.Schema{ 2750 SchemaProps: spec.SchemaProps{ 2751 Type: []string{"object"}, 2752 Properties: map[string]spec.Schema{ 2753 "scm_id": { 2754 SchemaProps: spec.SchemaProps{ 2755 Type: []string{"string"}, 2756 Format: "", 2757 }, 2758 }, 2759 "url": { 2760 SchemaProps: spec.SchemaProps{ 2761 Type: []string{"string"}, 2762 Format: "", 2763 }, 2764 }, 2765 "credential_id": { 2766 SchemaProps: spec.SchemaProps{ 2767 Type: []string{"string"}, 2768 Format: "", 2769 }, 2770 }, 2771 "discover_branches": { 2772 SchemaProps: spec.SchemaProps{ 2773 Type: []string{"boolean"}, 2774 Format: "", 2775 }, 2776 }, 2777 "discover_tags": { 2778 SchemaProps: spec.SchemaProps{ 2779 Type: []string{"boolean"}, 2780 Format: "", 2781 }, 2782 }, 2783 "git_clone_option": { 2784 SchemaProps: spec.SchemaProps{ 2785 Ref: ref("kubesphere.io/api/devops/v1alpha3.GitCloneOption"), 2786 }, 2787 }, 2788 "regex_filter": { 2789 SchemaProps: spec.SchemaProps{ 2790 Type: []string{"string"}, 2791 Format: "", 2792 }, 2793 }, 2794 }, 2795 }, 2796 }, 2797 Dependencies: []string{ 2798 "kubesphere.io/api/devops/v1alpha3.GitCloneOption"}, 2799 } 2800 } 2801 2802 func schema_kubesphereio_api_devops_v1alpha3_GithubSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2803 return common.OpenAPIDefinition{ 2804 Schema: spec.Schema{ 2805 SchemaProps: spec.SchemaProps{ 2806 Description: "GithubSource and BitbucketServerSource have the same structure, but we don't use one due to crd errors", 2807 Type: []string{"object"}, 2808 Properties: map[string]spec.Schema{ 2809 "scm_id": { 2810 SchemaProps: spec.SchemaProps{ 2811 Type: []string{"string"}, 2812 Format: "", 2813 }, 2814 }, 2815 "owner": { 2816 SchemaProps: spec.SchemaProps{ 2817 Type: []string{"string"}, 2818 Format: "", 2819 }, 2820 }, 2821 "repo": { 2822 SchemaProps: spec.SchemaProps{ 2823 Type: []string{"string"}, 2824 Format: "", 2825 }, 2826 }, 2827 "credential_id": { 2828 SchemaProps: spec.SchemaProps{ 2829 Type: []string{"string"}, 2830 Format: "", 2831 }, 2832 }, 2833 "api_uri": { 2834 SchemaProps: spec.SchemaProps{ 2835 Type: []string{"string"}, 2836 Format: "", 2837 }, 2838 }, 2839 "discover_branches": { 2840 SchemaProps: spec.SchemaProps{ 2841 Type: []string{"integer"}, 2842 Format: "int32", 2843 }, 2844 }, 2845 "discover_pr_from_origin": { 2846 SchemaProps: spec.SchemaProps{ 2847 Type: []string{"integer"}, 2848 Format: "int32", 2849 }, 2850 }, 2851 "discover_pr_from_forks": { 2852 SchemaProps: spec.SchemaProps{ 2853 Ref: ref("kubesphere.io/api/devops/v1alpha3.DiscoverPRFromForks"), 2854 }, 2855 }, 2856 "discover_tags": { 2857 SchemaProps: spec.SchemaProps{ 2858 Type: []string{"boolean"}, 2859 Format: "", 2860 }, 2861 }, 2862 "git_clone_option": { 2863 SchemaProps: spec.SchemaProps{ 2864 Ref: ref("kubesphere.io/api/devops/v1alpha3.GitCloneOption"), 2865 }, 2866 }, 2867 "regex_filter": { 2868 SchemaProps: spec.SchemaProps{ 2869 Type: []string{"string"}, 2870 Format: "", 2871 }, 2872 }, 2873 }, 2874 }, 2875 }, 2876 Dependencies: []string{ 2877 "kubesphere.io/api/devops/v1alpha3.DiscoverPRFromForks", "kubesphere.io/api/devops/v1alpha3.GitCloneOption"}, 2878 } 2879 } 2880 2881 func schema_kubesphereio_api_devops_v1alpha3_GitlabSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2882 return common.OpenAPIDefinition{ 2883 Schema: spec.Schema{ 2884 SchemaProps: spec.SchemaProps{ 2885 Type: []string{"object"}, 2886 Properties: map[string]spec.Schema{ 2887 "scm_id": { 2888 SchemaProps: spec.SchemaProps{ 2889 Type: []string{"string"}, 2890 Format: "", 2891 }, 2892 }, 2893 "owner": { 2894 SchemaProps: spec.SchemaProps{ 2895 Type: []string{"string"}, 2896 Format: "", 2897 }, 2898 }, 2899 "repo": { 2900 SchemaProps: spec.SchemaProps{ 2901 Type: []string{"string"}, 2902 Format: "", 2903 }, 2904 }, 2905 "server_name": { 2906 SchemaProps: spec.SchemaProps{ 2907 Type: []string{"string"}, 2908 Format: "", 2909 }, 2910 }, 2911 "credential_id": { 2912 SchemaProps: spec.SchemaProps{ 2913 Type: []string{"string"}, 2914 Format: "", 2915 }, 2916 }, 2917 "api_uri": { 2918 SchemaProps: spec.SchemaProps{ 2919 Type: []string{"string"}, 2920 Format: "", 2921 }, 2922 }, 2923 "discover_branches": { 2924 SchemaProps: spec.SchemaProps{ 2925 Type: []string{"integer"}, 2926 Format: "int32", 2927 }, 2928 }, 2929 "discover_pr_from_origin": { 2930 SchemaProps: spec.SchemaProps{ 2931 Type: []string{"integer"}, 2932 Format: "int32", 2933 }, 2934 }, 2935 "discover_pr_from_forks": { 2936 SchemaProps: spec.SchemaProps{ 2937 Ref: ref("kubesphere.io/api/devops/v1alpha3.DiscoverPRFromForks"), 2938 }, 2939 }, 2940 "discover_tags": { 2941 SchemaProps: spec.SchemaProps{ 2942 Type: []string{"boolean"}, 2943 Format: "", 2944 }, 2945 }, 2946 "git_clone_option": { 2947 SchemaProps: spec.SchemaProps{ 2948 Ref: ref("kubesphere.io/api/devops/v1alpha3.GitCloneOption"), 2949 }, 2950 }, 2951 "regex_filter": { 2952 SchemaProps: spec.SchemaProps{ 2953 Type: []string{"string"}, 2954 Format: "", 2955 }, 2956 }, 2957 }, 2958 }, 2959 }, 2960 Dependencies: []string{ 2961 "kubesphere.io/api/devops/v1alpha3.DiscoverPRFromForks", "kubesphere.io/api/devops/v1alpha3.GitCloneOption"}, 2962 } 2963 } 2964 2965 func schema_kubesphereio_api_devops_v1alpha3_MultiBranchJobTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 2966 return common.OpenAPIDefinition{ 2967 Schema: spec.Schema{ 2968 SchemaProps: spec.SchemaProps{ 2969 Type: []string{"object"}, 2970 Properties: map[string]spec.Schema{ 2971 "create_action_job_to_trigger": { 2972 SchemaProps: spec.SchemaProps{ 2973 Type: []string{"string"}, 2974 Format: "", 2975 }, 2976 }, 2977 "delete_action_job_to_trigger": { 2978 SchemaProps: spec.SchemaProps{ 2979 Type: []string{"string"}, 2980 Format: "", 2981 }, 2982 }, 2983 }, 2984 }, 2985 }, 2986 } 2987 } 2988 2989 func schema_kubesphereio_api_devops_v1alpha3_MultiBranchPipeline(ref common.ReferenceCallback) common.OpenAPIDefinition { 2990 return common.OpenAPIDefinition{ 2991 Schema: spec.Schema{ 2992 SchemaProps: spec.SchemaProps{ 2993 Type: []string{"object"}, 2994 Properties: map[string]spec.Schema{ 2995 "name": { 2996 SchemaProps: spec.SchemaProps{ 2997 Default: "", 2998 Type: []string{"string"}, 2999 Format: "", 3000 }, 3001 }, 3002 "description": { 3003 SchemaProps: spec.SchemaProps{ 3004 Type: []string{"string"}, 3005 Format: "", 3006 }, 3007 }, 3008 "discarder": { 3009 SchemaProps: spec.SchemaProps{ 3010 Ref: ref("kubesphere.io/api/devops/v1alpha3.DiscarderProperty"), 3011 }, 3012 }, 3013 "timer_trigger": { 3014 SchemaProps: spec.SchemaProps{ 3015 Ref: ref("kubesphere.io/api/devops/v1alpha3.TimerTrigger"), 3016 }, 3017 }, 3018 "source_type": { 3019 SchemaProps: spec.SchemaProps{ 3020 Default: "", 3021 Type: []string{"string"}, 3022 Format: "", 3023 }, 3024 }, 3025 "git_source": { 3026 SchemaProps: spec.SchemaProps{ 3027 Ref: ref("kubesphere.io/api/devops/v1alpha3.GitSource"), 3028 }, 3029 }, 3030 "github_source": { 3031 SchemaProps: spec.SchemaProps{ 3032 Ref: ref("kubesphere.io/api/devops/v1alpha3.GithubSource"), 3033 }, 3034 }, 3035 "gitlab_source": { 3036 SchemaProps: spec.SchemaProps{ 3037 Ref: ref("kubesphere.io/api/devops/v1alpha3.GitlabSource"), 3038 }, 3039 }, 3040 "svn_source": { 3041 SchemaProps: spec.SchemaProps{ 3042 Ref: ref("kubesphere.io/api/devops/v1alpha3.SvnSource"), 3043 }, 3044 }, 3045 "single_svn_source": { 3046 SchemaProps: spec.SchemaProps{ 3047 Ref: ref("kubesphere.io/api/devops/v1alpha3.SingleSvnSource"), 3048 }, 3049 }, 3050 "bitbucket_server_source": { 3051 SchemaProps: spec.SchemaProps{ 3052 Ref: ref("kubesphere.io/api/devops/v1alpha3.BitbucketServerSource"), 3053 }, 3054 }, 3055 "script_path": { 3056 SchemaProps: spec.SchemaProps{ 3057 Default: "", 3058 Type: []string{"string"}, 3059 Format: "", 3060 }, 3061 }, 3062 "multibranch_job_trigger": { 3063 SchemaProps: spec.SchemaProps{ 3064 Ref: ref("kubesphere.io/api/devops/v1alpha3.MultiBranchJobTrigger"), 3065 }, 3066 }, 3067 }, 3068 Required: []string{"name", "source_type", "script_path"}, 3069 }, 3070 }, 3071 Dependencies: []string{ 3072 "kubesphere.io/api/devops/v1alpha3.BitbucketServerSource", "kubesphere.io/api/devops/v1alpha3.DiscarderProperty", "kubesphere.io/api/devops/v1alpha3.GitSource", "kubesphere.io/api/devops/v1alpha3.GithubSource", "kubesphere.io/api/devops/v1alpha3.GitlabSource", "kubesphere.io/api/devops/v1alpha3.MultiBranchJobTrigger", "kubesphere.io/api/devops/v1alpha3.SingleSvnSource", "kubesphere.io/api/devops/v1alpha3.SvnSource", "kubesphere.io/api/devops/v1alpha3.TimerTrigger"}, 3073 } 3074 } 3075 3076 func schema_kubesphereio_api_devops_v1alpha3_NoScmPipeline(ref common.ReferenceCallback) common.OpenAPIDefinition { 3077 return common.OpenAPIDefinition{ 3078 Schema: spec.Schema{ 3079 SchemaProps: spec.SchemaProps{ 3080 Type: []string{"object"}, 3081 Properties: map[string]spec.Schema{ 3082 "name": { 3083 SchemaProps: spec.SchemaProps{ 3084 Default: "", 3085 Type: []string{"string"}, 3086 Format: "", 3087 }, 3088 }, 3089 "description": { 3090 SchemaProps: spec.SchemaProps{ 3091 Type: []string{"string"}, 3092 Format: "", 3093 }, 3094 }, 3095 "discarder": { 3096 SchemaProps: spec.SchemaProps{ 3097 Ref: ref("kubesphere.io/api/devops/v1alpha3.DiscarderProperty"), 3098 }, 3099 }, 3100 "parameters": { 3101 SchemaProps: spec.SchemaProps{ 3102 Type: []string{"array"}, 3103 Items: &spec.SchemaOrArray{ 3104 Schema: &spec.Schema{ 3105 SchemaProps: spec.SchemaProps{ 3106 Default: map[string]interface{}{}, 3107 Ref: ref("kubesphere.io/api/devops/v1alpha3.Parameter"), 3108 }, 3109 }, 3110 }, 3111 }, 3112 }, 3113 "disable_concurrent": { 3114 SchemaProps: spec.SchemaProps{ 3115 Type: []string{"boolean"}, 3116 Format: "", 3117 }, 3118 }, 3119 "timer_trigger": { 3120 SchemaProps: spec.SchemaProps{ 3121 Ref: ref("kubesphere.io/api/devops/v1alpha3.TimerTrigger"), 3122 }, 3123 }, 3124 "remote_trigger": { 3125 SchemaProps: spec.SchemaProps{ 3126 Ref: ref("kubesphere.io/api/devops/v1alpha3.RemoteTrigger"), 3127 }, 3128 }, 3129 "jenkinsfile": { 3130 SchemaProps: spec.SchemaProps{ 3131 Type: []string{"string"}, 3132 Format: "", 3133 }, 3134 }, 3135 }, 3136 Required: []string{"name"}, 3137 }, 3138 }, 3139 Dependencies: []string{ 3140 "kubesphere.io/api/devops/v1alpha3.DiscarderProperty", "kubesphere.io/api/devops/v1alpha3.Parameter", "kubesphere.io/api/devops/v1alpha3.RemoteTrigger", "kubesphere.io/api/devops/v1alpha3.TimerTrigger"}, 3141 } 3142 } 3143 3144 func schema_kubesphereio_api_devops_v1alpha3_Parameter(ref common.ReferenceCallback) common.OpenAPIDefinition { 3145 return common.OpenAPIDefinition{ 3146 Schema: spec.Schema{ 3147 SchemaProps: spec.SchemaProps{ 3148 Type: []string{"object"}, 3149 Properties: map[string]spec.Schema{ 3150 "name": { 3151 SchemaProps: spec.SchemaProps{ 3152 Default: "", 3153 Type: []string{"string"}, 3154 Format: "", 3155 }, 3156 }, 3157 "default_value": { 3158 SchemaProps: spec.SchemaProps{ 3159 Type: []string{"string"}, 3160 Format: "", 3161 }, 3162 }, 3163 "type": { 3164 SchemaProps: spec.SchemaProps{ 3165 Default: "", 3166 Type: []string{"string"}, 3167 Format: "", 3168 }, 3169 }, 3170 "description": { 3171 SchemaProps: spec.SchemaProps{ 3172 Type: []string{"string"}, 3173 Format: "", 3174 }, 3175 }, 3176 }, 3177 Required: []string{"name", "type"}, 3178 }, 3179 }, 3180 } 3181 } 3182 3183 func schema_kubesphereio_api_devops_v1alpha3_Pipeline(ref common.ReferenceCallback) common.OpenAPIDefinition { 3184 return common.OpenAPIDefinition{ 3185 Schema: spec.Schema{ 3186 SchemaProps: spec.SchemaProps{ 3187 Description: "Pipeline is the Schema for the pipelines API", 3188 Type: []string{"object"}, 3189 Properties: map[string]spec.Schema{ 3190 "kind": { 3191 SchemaProps: spec.SchemaProps{ 3192 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", 3193 Type: []string{"string"}, 3194 Format: "", 3195 }, 3196 }, 3197 "apiVersion": { 3198 SchemaProps: spec.SchemaProps{ 3199 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", 3200 Type: []string{"string"}, 3201 Format: "", 3202 }, 3203 }, 3204 "metadata": { 3205 SchemaProps: spec.SchemaProps{ 3206 Default: map[string]interface{}{}, 3207 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3208 }, 3209 }, 3210 "spec": { 3211 SchemaProps: spec.SchemaProps{ 3212 Default: map[string]interface{}{}, 3213 Ref: ref("kubesphere.io/api/devops/v1alpha3.PipelineSpec"), 3214 }, 3215 }, 3216 "status": { 3217 SchemaProps: spec.SchemaProps{ 3218 Default: map[string]interface{}{}, 3219 Ref: ref("kubesphere.io/api/devops/v1alpha3.PipelineStatus"), 3220 }, 3221 }, 3222 }, 3223 }, 3224 }, 3225 Dependencies: []string{ 3226 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/devops/v1alpha3.PipelineSpec", "kubesphere.io/api/devops/v1alpha3.PipelineStatus"}, 3227 } 3228 } 3229 3230 func schema_kubesphereio_api_devops_v1alpha3_PipelineList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3231 return common.OpenAPIDefinition{ 3232 Schema: spec.Schema{ 3233 SchemaProps: spec.SchemaProps{ 3234 Description: "PipelineList contains a list of Pipeline", 3235 Type: []string{"object"}, 3236 Properties: map[string]spec.Schema{ 3237 "kind": { 3238 SchemaProps: spec.SchemaProps{ 3239 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", 3240 Type: []string{"string"}, 3241 Format: "", 3242 }, 3243 }, 3244 "apiVersion": { 3245 SchemaProps: spec.SchemaProps{ 3246 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", 3247 Type: []string{"string"}, 3248 Format: "", 3249 }, 3250 }, 3251 "metadata": { 3252 SchemaProps: spec.SchemaProps{ 3253 Default: map[string]interface{}{}, 3254 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3255 }, 3256 }, 3257 "items": { 3258 SchemaProps: spec.SchemaProps{ 3259 Type: []string{"array"}, 3260 Items: &spec.SchemaOrArray{ 3261 Schema: &spec.Schema{ 3262 SchemaProps: spec.SchemaProps{ 3263 Default: map[string]interface{}{}, 3264 Ref: ref("kubesphere.io/api/devops/v1alpha3.Pipeline"), 3265 }, 3266 }, 3267 }, 3268 }, 3269 }, 3270 }, 3271 Required: []string{"items"}, 3272 }, 3273 }, 3274 Dependencies: []string{ 3275 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/devops/v1alpha3.Pipeline"}, 3276 } 3277 } 3278 3279 func schema_kubesphereio_api_devops_v1alpha3_PipelineSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3280 return common.OpenAPIDefinition{ 3281 Schema: spec.Schema{ 3282 SchemaProps: spec.SchemaProps{ 3283 Description: "PipelineSpec defines the desired state of Pipeline", 3284 Type: []string{"object"}, 3285 Properties: map[string]spec.Schema{ 3286 "type": { 3287 SchemaProps: spec.SchemaProps{ 3288 Description: "INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run \"make\" to regenerate code after modifying this file", 3289 Default: "", 3290 Type: []string{"string"}, 3291 Format: "", 3292 }, 3293 }, 3294 "pipeline": { 3295 SchemaProps: spec.SchemaProps{ 3296 Ref: ref("kubesphere.io/api/devops/v1alpha3.NoScmPipeline"), 3297 }, 3298 }, 3299 "multi_branch_pipeline": { 3300 SchemaProps: spec.SchemaProps{ 3301 Ref: ref("kubesphere.io/api/devops/v1alpha3.MultiBranchPipeline"), 3302 }, 3303 }, 3304 }, 3305 Required: []string{"type"}, 3306 }, 3307 }, 3308 Dependencies: []string{ 3309 "kubesphere.io/api/devops/v1alpha3.MultiBranchPipeline", "kubesphere.io/api/devops/v1alpha3.NoScmPipeline"}, 3310 } 3311 } 3312 3313 func schema_kubesphereio_api_devops_v1alpha3_PipelineStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 3314 return common.OpenAPIDefinition{ 3315 Schema: spec.Schema{ 3316 SchemaProps: spec.SchemaProps{ 3317 Description: "PipelineStatus defines the observed state of Pipeline", 3318 Type: []string{"object"}, 3319 }, 3320 }, 3321 } 3322 } 3323 3324 func schema_kubesphereio_api_devops_v1alpha3_RemoteTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 3325 return common.OpenAPIDefinition{ 3326 Schema: spec.Schema{ 3327 SchemaProps: spec.SchemaProps{ 3328 Type: []string{"object"}, 3329 Properties: map[string]spec.Schema{ 3330 "token": { 3331 SchemaProps: spec.SchemaProps{ 3332 Type: []string{"string"}, 3333 Format: "", 3334 }, 3335 }, 3336 }, 3337 }, 3338 }, 3339 } 3340 } 3341 3342 func schema_kubesphereio_api_devops_v1alpha3_SingleSvnSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3343 return common.OpenAPIDefinition{ 3344 Schema: spec.Schema{ 3345 SchemaProps: spec.SchemaProps{ 3346 Type: []string{"object"}, 3347 Properties: map[string]spec.Schema{ 3348 "scm_id": { 3349 SchemaProps: spec.SchemaProps{ 3350 Type: []string{"string"}, 3351 Format: "", 3352 }, 3353 }, 3354 "remote": { 3355 SchemaProps: spec.SchemaProps{ 3356 Type: []string{"string"}, 3357 Format: "", 3358 }, 3359 }, 3360 "credential_id": { 3361 SchemaProps: spec.SchemaProps{ 3362 Type: []string{"string"}, 3363 Format: "", 3364 }, 3365 }, 3366 }, 3367 }, 3368 }, 3369 } 3370 } 3371 3372 func schema_kubesphereio_api_devops_v1alpha3_SvnSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3373 return common.OpenAPIDefinition{ 3374 Schema: spec.Schema{ 3375 SchemaProps: spec.SchemaProps{ 3376 Type: []string{"object"}, 3377 Properties: map[string]spec.Schema{ 3378 "scm_id": { 3379 SchemaProps: spec.SchemaProps{ 3380 Type: []string{"string"}, 3381 Format: "", 3382 }, 3383 }, 3384 "remote": { 3385 SchemaProps: spec.SchemaProps{ 3386 Type: []string{"string"}, 3387 Format: "", 3388 }, 3389 }, 3390 "credential_id": { 3391 SchemaProps: spec.SchemaProps{ 3392 Type: []string{"string"}, 3393 Format: "", 3394 }, 3395 }, 3396 "includes": { 3397 SchemaProps: spec.SchemaProps{ 3398 Type: []string{"string"}, 3399 Format: "", 3400 }, 3401 }, 3402 "excludes": { 3403 SchemaProps: spec.SchemaProps{ 3404 Type: []string{"string"}, 3405 Format: "", 3406 }, 3407 }, 3408 }, 3409 }, 3410 }, 3411 } 3412 } 3413 3414 func schema_kubesphereio_api_devops_v1alpha3_TimerTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { 3415 return common.OpenAPIDefinition{ 3416 Schema: spec.Schema{ 3417 SchemaProps: spec.SchemaProps{ 3418 Type: []string{"object"}, 3419 Properties: map[string]spec.Schema{ 3420 "cron": { 3421 SchemaProps: spec.SchemaProps{ 3422 Description: "user in no scm job", 3423 Type: []string{"string"}, 3424 Format: "", 3425 }, 3426 }, 3427 "interval": { 3428 SchemaProps: spec.SchemaProps{ 3429 Description: "use in multi-branch job", 3430 Type: []string{"string"}, 3431 Format: "", 3432 }, 3433 }, 3434 }, 3435 }, 3436 }, 3437 } 3438 }