// Code generated by client-gen. DO NOT EDIT.

package fake

import (
	v1 "github.com/openshift/api/operator/v1"
	operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
	typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeKubeAPIServers implements KubeAPIServerInterface
type fakeKubeAPIServers struct {
	*gentype.FakeClientWithListAndApply[*v1.KubeAPIServer, *v1.KubeAPIServerList, *operatorv1.KubeAPIServerApplyConfiguration]
	Fake *FakeOperatorV1
}

func newFakeKubeAPIServers(fake *FakeOperatorV1) typedoperatorv1.KubeAPIServerInterface {
	return &fakeKubeAPIServers{
		gentype.NewFakeClientWithListAndApply[*v1.KubeAPIServer, *v1.KubeAPIServerList, *operatorv1.KubeAPIServerApplyConfiguration](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("kubeapiservers"),
			v1.SchemeGroupVersion.WithKind("KubeAPIServer"),
			func() *v1.KubeAPIServer { return &v1.KubeAPIServer{} },
			func() *v1.KubeAPIServerList { return &v1.KubeAPIServerList{} },
			func(dst, src *v1.KubeAPIServerList) { dst.ListMeta = src.ListMeta },
			func(list *v1.KubeAPIServerList) []*v1.KubeAPIServer { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.KubeAPIServerList, items []*v1.KubeAPIServer) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
