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

// fakeCiliumCIDRGroups implements CiliumCIDRGroupInterface
type fakeCiliumCIDRGroups struct {
	*gentype.FakeClientWithList[*v2alpha1.CiliumCIDRGroup, *v2alpha1.CiliumCIDRGroupList]
	Fake *FakeCiliumV2alpha1
}

func newFakeCiliumCIDRGroups(fake *FakeCiliumV2alpha1) ciliumiov2alpha1.CiliumCIDRGroupInterface {
	return &fakeCiliumCIDRGroups{
		gentype.NewFakeClientWithList[*v2alpha1.CiliumCIDRGroup, *v2alpha1.CiliumCIDRGroupList](
			fake.Fake,
			"",
			v2alpha1.SchemeGroupVersion.WithResource("ciliumcidrgroups"),
			v2alpha1.SchemeGroupVersion.WithKind("CiliumCIDRGroup"),
			func() *v2alpha1.CiliumCIDRGroup { return &v2alpha1.CiliumCIDRGroup{} },
			func() *v2alpha1.CiliumCIDRGroupList { return &v2alpha1.CiliumCIDRGroupList{} },
			func(dst, src *v2alpha1.CiliumCIDRGroupList) { dst.ListMeta = src.ListMeta },
			func(list *v2alpha1.CiliumCIDRGroupList) []*v2alpha1.CiliumCIDRGroup {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v2alpha1.CiliumCIDRGroupList, items []*v2alpha1.CiliumCIDRGroup) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
