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

package fake

import (
	v1 "github.com/openshift/api/config/v1"
	configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
	typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeClusterImagePolicies implements ClusterImagePolicyInterface
type fakeClusterImagePolicies struct {
	*gentype.FakeClientWithListAndApply[*v1.ClusterImagePolicy, *v1.ClusterImagePolicyList, *configv1.ClusterImagePolicyApplyConfiguration]
	Fake *FakeConfigV1
}

func newFakeClusterImagePolicies(fake *FakeConfigV1) typedconfigv1.ClusterImagePolicyInterface {
	return &fakeClusterImagePolicies{
		gentype.NewFakeClientWithListAndApply[*v1.ClusterImagePolicy, *v1.ClusterImagePolicyList, *configv1.ClusterImagePolicyApplyConfiguration](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("clusterimagepolicies"),
			v1.SchemeGroupVersion.WithKind("ClusterImagePolicy"),
			func() *v1.ClusterImagePolicy { return &v1.ClusterImagePolicy{} },
			func() *v1.ClusterImagePolicyList { return &v1.ClusterImagePolicyList{} },
			func(dst, src *v1.ClusterImagePolicyList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ClusterImagePolicyList) []*v1.ClusterImagePolicy {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1.ClusterImagePolicyList, items []*v1.ClusterImagePolicy) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
