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

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

package fake

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

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

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