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

// fakeConsoles implements ConsoleInterface
type fakeConsoles struct {
	*gentype.FakeClientWithListAndApply[*v1.Console, *v1.ConsoleList, *operatorv1.ConsoleApplyConfiguration]
	Fake *FakeOperatorV1
}

func newFakeConsoles(fake *FakeOperatorV1) typedoperatorv1.ConsoleInterface {
	return &fakeConsoles{
		gentype.NewFakeClientWithListAndApply[*v1.Console, *v1.ConsoleList, *operatorv1.ConsoleApplyConfiguration](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("consoles"),
			v1.SchemeGroupVersion.WithKind("Console"),
			func() *v1.Console { return &v1.Console{} },
			func() *v1.ConsoleList { return &v1.ConsoleList{} },
			func(dst, src *v1.ConsoleList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ConsoleList) []*v1.Console { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.ConsoleList, items []*v1.Console) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
