// Copyright (c) 2026 Tigera, Inc. All rights reserved.

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

package fake

import (
	v3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	projectcalicov3 "github.com/projectcalico/api/pkg/client/clientset_generated/clientset/typed/projectcalico/v3"
	gentype "k8s.io/client-go/gentype"
)

// fakeNetworkSets implements NetworkSetInterface
type fakeNetworkSets struct {
	*gentype.FakeClientWithList[*v3.NetworkSet, *v3.NetworkSetList]
	Fake *FakeProjectcalicoV3
}

func newFakeNetworkSets(fake *FakeProjectcalicoV3, namespace string) projectcalicov3.NetworkSetInterface {
	return &fakeNetworkSets{
		gentype.NewFakeClientWithList[*v3.NetworkSet, *v3.NetworkSetList](
			fake.Fake,
			namespace,
			v3.SchemeGroupVersion.WithResource("networksets"),
			v3.SchemeGroupVersion.WithKind("NetworkSet"),
			func() *v3.NetworkSet { return &v3.NetworkSet{} },
			func() *v3.NetworkSetList { return &v3.NetworkSetList{} },
			func(dst, src *v3.NetworkSetList) { dst.ListMeta = src.ListMeta },
			func(list *v3.NetworkSetList) []*v3.NetworkSet { return gentype.ToPointerSlice(list.Items) },
			func(list *v3.NetworkSetList, items []*v3.NetworkSet) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
