// 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/applyconfiguration_generated/projectcalico/v3"
	typedprojectcalicov3 "github.com/projectcalico/api/pkg/client/clientset_generated/clientset/typed/projectcalico/v3"
	gentype "k8s.io/client-go/gentype"
)

// fakeBGPFilters implements BGPFilterInterface
type fakeBGPFilters struct {
	*gentype.FakeClientWithListAndApply[*v3.BGPFilter, *v3.BGPFilterList, *projectcalicov3.BGPFilterApplyConfiguration]
	Fake *FakeProjectcalicoV3
}

func newFakeBGPFilters(fake *FakeProjectcalicoV3) typedprojectcalicov3.BGPFilterInterface {
	return &fakeBGPFilters{
		gentype.NewFakeClientWithListAndApply[*v3.BGPFilter, *v3.BGPFilterList, *projectcalicov3.BGPFilterApplyConfiguration](
			fake.Fake,
			"",
			v3.SchemeGroupVersion.WithResource("bgpfilters"),
			v3.SchemeGroupVersion.WithKind("BGPFilter"),
			func() *v3.BGPFilter { return &v3.BGPFilter{} },
			func() *v3.BGPFilterList { return &v3.BGPFilterList{} },
			func(dst, src *v3.BGPFilterList) { dst.ListMeta = src.ListMeta },
			func(list *v3.BGPFilterList) []*v3.BGPFilter { return gentype.ToPointerSlice(list.Items) },
			func(list *v3.BGPFilterList, items []*v3.BGPFilter) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
