// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium

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

package fake

import (
	v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2"
	ciliumiov2 "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2"
	gentype "k8s.io/client-go/gentype"
)

// fakeCiliumPodIPPools implements CiliumPodIPPoolInterface
type fakeCiliumPodIPPools struct {
	*gentype.FakeClientWithList[*v2.CiliumPodIPPool, *v2.CiliumPodIPPoolList]
	Fake *FakeCiliumV2
}

func newFakeCiliumPodIPPools(fake *FakeCiliumV2) ciliumiov2.CiliumPodIPPoolInterface {
	return &fakeCiliumPodIPPools{
		gentype.NewFakeClientWithList[*v2.CiliumPodIPPool, *v2.CiliumPodIPPoolList](
			fake.Fake,
			"",
			v2.SchemeGroupVersion.WithResource("ciliumpodippools"),
			v2.SchemeGroupVersion.WithKind("CiliumPodIPPool"),
			func() *v2.CiliumPodIPPool { return &v2.CiliumPodIPPool{} },
			func() *v2.CiliumPodIPPoolList { return &v2.CiliumPodIPPoolList{} },
			func(dst, src *v2.CiliumPodIPPoolList) { dst.ListMeta = src.ListMeta },
			func(list *v2.CiliumPodIPPoolList) []*v2.CiliumPodIPPool { return gentype.ToPointerSlice(list.Items) },
			func(list *v2.CiliumPodIPPoolList, items []*v2.CiliumPodIPPool) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
