// Copyright Contributors to the Open Cluster Management project
// Code generated by client-gen. DO NOT EDIT.

package fake

import (
	gentype "k8s.io/client-go/gentype"
	operatorv1 "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
	v1 "open-cluster-management.io/api/operator/v1"
)

// fakeClusterManagers implements ClusterManagerInterface
type fakeClusterManagers struct {
	*gentype.FakeClientWithList[*v1.ClusterManager, *v1.ClusterManagerList]
	Fake *FakeOperatorV1
}

func newFakeClusterManagers(fake *FakeOperatorV1) operatorv1.ClusterManagerInterface {
	return &fakeClusterManagers{
		gentype.NewFakeClientWithList[*v1.ClusterManager, *v1.ClusterManagerList](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("clustermanagers"),
			v1.SchemeGroupVersion.WithKind("ClusterManager"),
			func() *v1.ClusterManager { return &v1.ClusterManager{} },
			func() *v1.ClusterManagerList { return &v1.ClusterManagerList{} },
			func(dst, src *v1.ClusterManagerList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ClusterManagerList) []*v1.ClusterManager { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.ClusterManagerList, items []*v1.ClusterManager) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
