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

package fake

import (
	v1 "github.com/openshift/api/config/v1"
	configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
	typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeNetworks implements NetworkInterface
type fakeNetworks struct {
	*gentype.FakeClientWithListAndApply[*v1.Network, *v1.NetworkList, *configv1.NetworkApplyConfiguration]
	Fake *FakeConfigV1
}

func newFakeNetworks(fake *FakeConfigV1) typedconfigv1.NetworkInterface {
	return &fakeNetworks{
		gentype.NewFakeClientWithListAndApply[*v1.Network, *v1.NetworkList, *configv1.NetworkApplyConfiguration](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("networks"),
			v1.SchemeGroupVersion.WithKind("Network"),
			func() *v1.Network { return &v1.Network{} },
			func() *v1.NetworkList { return &v1.NetworkList{} },
			func(dst, src *v1.NetworkList) { dst.ListMeta = src.ListMeta },
			func(list *v1.NetworkList) []*v1.Network { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.NetworkList, items []*v1.Network) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
