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

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

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