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

// fakeCloudCredentials implements CloudCredentialInterface
type fakeCloudCredentials struct {
	*gentype.FakeClientWithListAndApply[*v1.CloudCredential, *v1.CloudCredentialList, *operatorv1.CloudCredentialApplyConfiguration]
	Fake *FakeOperatorV1
}

func newFakeCloudCredentials(fake *FakeOperatorV1) typedoperatorv1.CloudCredentialInterface {
	return &fakeCloudCredentials{
		gentype.NewFakeClientWithListAndApply[*v1.CloudCredential, *v1.CloudCredentialList, *operatorv1.CloudCredentialApplyConfiguration](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("cloudcredentials"),
			v1.SchemeGroupVersion.WithKind("CloudCredential"),
			func() *v1.CloudCredential { return &v1.CloudCredential{} },
			func() *v1.CloudCredentialList { return &v1.CloudCredentialList{} },
			func(dst, src *v1.CloudCredentialList) { dst.ListMeta = src.ListMeta },
			func(list *v1.CloudCredentialList) []*v1.CloudCredential { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.CloudCredentialList, items []*v1.CloudCredential) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
