// Copyright (c) 2025 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"
)

// fakeBGPPeers implements BGPPeerInterface
type fakeBGPPeers struct {
	*gentype.FakeClientWithList[*v3.BGPPeer, *v3.BGPPeerList]
	Fake *FakeProjectcalicoV3
}

func newFakeBGPPeers(fake *FakeProjectcalicoV3) projectcalicov3.BGPPeerInterface {
	return &fakeBGPPeers{
		gentype.NewFakeClientWithList[*v3.BGPPeer, *v3.BGPPeerList](
			fake.Fake,
			"",
			v3.SchemeGroupVersion.WithResource("bgppeers"),
			v3.SchemeGroupVersion.WithKind("BGPPeer"),
			func() *v3.BGPPeer { return &v3.BGPPeer{} },
			func() *v3.BGPPeerList { return &v3.BGPPeerList{} },
			func(dst, src *v3.BGPPeerList) { dst.ListMeta = src.ListMeta },
			func(list *v3.BGPPeerList) []*v3.BGPPeer { return gentype.ToPointerSlice(list.Items) },
			func(list *v3.BGPPeerList, items []*v3.BGPPeer) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
