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

package fake

import (
	v1alpha1 "github.com/openshift/api/operator/v1alpha1"
	operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
	typedoperatorv1alpha1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1alpha1"
	gentype "k8s.io/client-go/gentype"
)

// fakeImageContentSourcePolicies implements ImageContentSourcePolicyInterface
type fakeImageContentSourcePolicies struct {
	*gentype.FakeClientWithListAndApply[*v1alpha1.ImageContentSourcePolicy, *v1alpha1.ImageContentSourcePolicyList, *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration]
	Fake *FakeOperatorV1alpha1
}

func newFakeImageContentSourcePolicies(fake *FakeOperatorV1alpha1) typedoperatorv1alpha1.ImageContentSourcePolicyInterface {
	return &fakeImageContentSourcePolicies{
		gentype.NewFakeClientWithListAndApply[*v1alpha1.ImageContentSourcePolicy, *v1alpha1.ImageContentSourcePolicyList, *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration](
			fake.Fake,
			"",
			v1alpha1.SchemeGroupVersion.WithResource("imagecontentsourcepolicies"),
			v1alpha1.SchemeGroupVersion.WithKind("ImageContentSourcePolicy"),
			func() *v1alpha1.ImageContentSourcePolicy { return &v1alpha1.ImageContentSourcePolicy{} },
			func() *v1alpha1.ImageContentSourcePolicyList { return &v1alpha1.ImageContentSourcePolicyList{} },
			func(dst, src *v1alpha1.ImageContentSourcePolicyList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha1.ImageContentSourcePolicyList) []*v1alpha1.ImageContentSourcePolicy {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha1.ImageContentSourcePolicyList, items []*v1alpha1.ImageContentSourcePolicy) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
