github.com/jenkins-x/jx-api@v0.0.24/pkg/client/openapi/k8s_io_apimachinery_intstr_unversioned/openapi_generated.go (about) 1 // +build !ignore_autogenerated 2 3 // Code generated by openapi-gen. DO NOT EDIT. 4 5 // This file was autogenerated by openapi-gen. Do not edit it manually! 6 7 package k8s_io_apimachinery_intstr_unversioned 8 9 import ( 10 "github.com/go-openapi/spec" 11 intstr "k8s.io/apimachinery/pkg/util/intstr" 12 common "k8s.io/kube-openapi/pkg/common" 13 ) 14 15 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 16 return map[string]common.OpenAPIDefinition{ 17 "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), 18 } 19 } 20 21 func schema_apimachinery_pkg_util_intstr_IntOrString(ref common.ReferenceCallback) common.OpenAPIDefinition { 22 return common.OpenAPIDefinition{ 23 Schema: spec.Schema{ 24 SchemaProps: spec.SchemaProps{ 25 Description: "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", 26 Type: intstr.IntOrString{}.OpenAPISchemaType(), 27 Format: intstr.IntOrString{}.OpenAPISchemaFormat(), 28 }, 29 }, 30 } 31 }