// 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"
)

// fakeServiceCAs implements ServiceCAInterface
type fakeServiceCAs struct {
	*gentype.FakeClientWithListAndApply[*v1.ServiceCA, *v1.ServiceCAList, *operatorv1.ServiceCAApplyConfiguration]
	Fake *FakeOperatorV1
}

func newFakeServiceCAs(fake *FakeOperatorV1) typedoperatorv1.ServiceCAInterface {
	return &fakeServiceCAs{
		gentype.NewFakeClientWithListAndApply[*v1.ServiceCA, *v1.ServiceCAList, *operatorv1.ServiceCAApplyConfiguration](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("servicecas"),
			v1.SchemeGroupVersion.WithKind("ServiceCA"),
			func() *v1.ServiceCA { return &v1.ServiceCA{} },
			func() *v1.ServiceCAList { return &v1.ServiceCAList{} },
			func(dst, src *v1.ServiceCAList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ServiceCAList) []*v1.ServiceCA { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.ServiceCAList, items []*v1.ServiceCA) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
