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

// fakeCiliumLoadBalancerIPPools implements CiliumLoadBalancerIPPoolInterface
type fakeCiliumLoadBalancerIPPools struct {
	*gentype.FakeClientWithList[*v2.CiliumLoadBalancerIPPool, *v2.CiliumLoadBalancerIPPoolList]
	Fake *FakeCiliumV2
}

func newFakeCiliumLoadBalancerIPPools(fake *FakeCiliumV2) ciliumiov2.CiliumLoadBalancerIPPoolInterface {
	return &fakeCiliumLoadBalancerIPPools{
		gentype.NewFakeClientWithList[*v2.CiliumLoadBalancerIPPool, *v2.CiliumLoadBalancerIPPoolList](
			fake.Fake,
			"",
			v2.SchemeGroupVersion.WithResource("ciliumloadbalancerippools"),
			v2.SchemeGroupVersion.WithKind("CiliumLoadBalancerIPPool"),
			func() *v2.CiliumLoadBalancerIPPool { return &v2.CiliumLoadBalancerIPPool{} },
			func() *v2.CiliumLoadBalancerIPPoolList { return &v2.CiliumLoadBalancerIPPoolList{} },
			func(dst, src *v2.CiliumLoadBalancerIPPoolList) { dst.ListMeta = src.ListMeta },
			func(list *v2.CiliumLoadBalancerIPPoolList) []*v2.CiliumLoadBalancerIPPool {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v2.CiliumLoadBalancerIPPoolList, items []*v2.CiliumLoadBalancerIPPool) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
