// Copyright (c) 2026 Tigera, Inc. All rights reserved.

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

package fake

import (
	v3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	projectcalicov3 "github.com/projectcalico/api/pkg/client/applyconfiguration_generated/projectcalico/v3"
	typedprojectcalicov3 "github.com/projectcalico/api/pkg/client/clientset_generated/clientset/typed/projectcalico/v3"
	gentype "k8s.io/client-go/gentype"
)

// fakeIPPools implements IPPoolInterface
type fakeIPPools struct {
	*gentype.FakeClientWithListAndApply[*v3.IPPool, *v3.IPPoolList, *projectcalicov3.IPPoolApplyConfiguration]
	Fake *FakeProjectcalicoV3
}

func newFakeIPPools(fake *FakeProjectcalicoV3) typedprojectcalicov3.IPPoolInterface {
	return &fakeIPPools{
		gentype.NewFakeClientWithListAndApply[*v3.IPPool, *v3.IPPoolList, *projectcalicov3.IPPoolApplyConfiguration](
			fake.Fake,
			"",
			v3.SchemeGroupVersion.WithResource("ippools"),
			v3.SchemeGroupVersion.WithKind("IPPool"),
			func() *v3.IPPool { return &v3.IPPool{} },
			func() *v3.IPPoolList { return &v3.IPPoolList{} },
			func(dst, src *v3.IPPoolList) { dst.ListMeta = src.ListMeta },
			func(list *v3.IPPoolList) []*v3.IPPool { return gentype.ToPointerSlice(list.Items) },
			func(list *v3.IPPoolList, items []*v3.IPPool) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
