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

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

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