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

package fake

import (
	v1alpha1 "github.com/openshift/api/config/v1alpha1"
	configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
	typedconfigv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
	gentype "k8s.io/client-go/gentype"
)

// fakeBackups implements BackupInterface
type fakeBackups struct {
	*gentype.FakeClientWithListAndApply[*v1alpha1.Backup, *v1alpha1.BackupList, *configv1alpha1.BackupApplyConfiguration]
	Fake *FakeConfigV1alpha1
}

func newFakeBackups(fake *FakeConfigV1alpha1) typedconfigv1alpha1.BackupInterface {
	return &fakeBackups{
		gentype.NewFakeClientWithListAndApply[*v1alpha1.Backup, *v1alpha1.BackupList, *configv1alpha1.BackupApplyConfiguration](
			fake.Fake,
			"",
			v1alpha1.SchemeGroupVersion.WithResource("backups"),
			v1alpha1.SchemeGroupVersion.WithKind("Backup"),
			func() *v1alpha1.Backup { return &v1alpha1.Backup{} },
			func() *v1alpha1.BackupList { return &v1alpha1.BackupList{} },
			func(dst, src *v1alpha1.BackupList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha1.BackupList) []*v1alpha1.Backup { return gentype.ToPointerSlice(list.Items) },
			func(list *v1alpha1.BackupList, items []*v1alpha1.Backup) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
