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

// fakeCiliumBGPNodeConfigOverrides implements CiliumBGPNodeConfigOverrideInterface
type fakeCiliumBGPNodeConfigOverrides struct {
	*gentype.FakeClientWithList[*v2.CiliumBGPNodeConfigOverride, *v2.CiliumBGPNodeConfigOverrideList]
	Fake *FakeCiliumV2
}

func newFakeCiliumBGPNodeConfigOverrides(fake *FakeCiliumV2) ciliumiov2.CiliumBGPNodeConfigOverrideInterface {
	return &fakeCiliumBGPNodeConfigOverrides{
		gentype.NewFakeClientWithList[*v2.CiliumBGPNodeConfigOverride, *v2.CiliumBGPNodeConfigOverrideList](
			fake.Fake,
			"",
			v2.SchemeGroupVersion.WithResource("ciliumbgpnodeconfigoverrides"),
			v2.SchemeGroupVersion.WithKind("CiliumBGPNodeConfigOverride"),
			func() *v2.CiliumBGPNodeConfigOverride { return &v2.CiliumBGPNodeConfigOverride{} },
			func() *v2.CiliumBGPNodeConfigOverrideList { return &v2.CiliumBGPNodeConfigOverrideList{} },
			func(dst, src *v2.CiliumBGPNodeConfigOverrideList) { dst.ListMeta = src.ListMeta },
			func(list *v2.CiliumBGPNodeConfigOverrideList) []*v2.CiliumBGPNodeConfigOverride {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v2.CiliumBGPNodeConfigOverrideList, items []*v2.CiliumBGPNodeConfigOverride) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
