// Copyright (c) 2025 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/clientset_generated/clientset/typed/projectcalico/v3"
	gentype "k8s.io/client-go/gentype"
)

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

func newFakeIPPools(fake *FakeProjectcalicoV3) projectcalicov3.IPPoolInterface {
	return &fakeIPPools{
		gentype.NewFakeClientWithList[*v3.IPPool, *v3.IPPoolList](
			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,
	}
}
