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

// fakeCiliumBGPPeerConfigs implements CiliumBGPPeerConfigInterface
type fakeCiliumBGPPeerConfigs struct {
	*gentype.FakeClientWithList[*v2.CiliumBGPPeerConfig, *v2.CiliumBGPPeerConfigList]
	Fake *FakeCiliumV2
}

func newFakeCiliumBGPPeerConfigs(fake *FakeCiliumV2) ciliumiov2.CiliumBGPPeerConfigInterface {
	return &fakeCiliumBGPPeerConfigs{
		gentype.NewFakeClientWithList[*v2.CiliumBGPPeerConfig, *v2.CiliumBGPPeerConfigList](
			fake.Fake,
			"",
			v2.SchemeGroupVersion.WithResource("ciliumbgppeerconfigs"),
			v2.SchemeGroupVersion.WithKind("CiliumBGPPeerConfig"),
			func() *v2.CiliumBGPPeerConfig { return &v2.CiliumBGPPeerConfig{} },
			func() *v2.CiliumBGPPeerConfigList { return &v2.CiliumBGPPeerConfigList{} },
			func(dst, src *v2.CiliumBGPPeerConfigList) { dst.ListMeta = src.ListMeta },
			func(list *v2.CiliumBGPPeerConfigList) []*v2.CiliumBGPPeerConfig {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v2.CiliumBGPPeerConfigList, items []*v2.CiliumBGPPeerConfig) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
