// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium

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

package fake

import (
	v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1"
	ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1"
	gentype "k8s.io/client-go/gentype"
)

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

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