Generate model names

Kubernetes-commit: f79a4d72f22a1808bf390a006005ec6374c14917
This commit is contained in:
Joe Betz
2026-05-07 17:18:34 -04:00
committed by Kubernetes Publisher
parent a531b706d7
commit cb5515b8a4
3 changed files with 270 additions and 72 deletions
@@ -0,0 +1,42 @@
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by openapi-gen. DO NOT EDIT.
package v1alpha1
// OpenAPIModelName returns the OpenAPI model name for this type.
func (in Foo) OpenAPIModelName() string {
return "io.k8s.sample-controller.pkg.apis.samplecontroller.v1alpha1.Foo"
}
// OpenAPIModelName returns the OpenAPI model name for this type.
func (in FooList) OpenAPIModelName() string {
return "io.k8s.sample-controller.pkg.apis.samplecontroller.v1alpha1.FooList"
}
// OpenAPIModelName returns the OpenAPI model name for this type.
func (in FooSpec) OpenAPIModelName() string {
return "io.k8s.sample-controller.pkg.apis.samplecontroller.v1alpha1.FooSpec"
}
// OpenAPIModelName returns the OpenAPI model name for this type.
func (in FooStatus) OpenAPIModelName() string {
return "io.k8s.sample-controller.pkg.apis.samplecontroller.v1alpha1.FooStatus"
}