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

package fake

import (
	v1 "github.com/openshift/api/machineconfiguration/v1"
	machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
	typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeContainerRuntimeConfigs implements ContainerRuntimeConfigInterface
type fakeContainerRuntimeConfigs struct {
	*gentype.FakeClientWithListAndApply[*v1.ContainerRuntimeConfig, *v1.ContainerRuntimeConfigList, *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration]
	Fake *FakeMachineconfigurationV1
}

func newFakeContainerRuntimeConfigs(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.ContainerRuntimeConfigInterface {
	return &fakeContainerRuntimeConfigs{
		gentype.NewFakeClientWithListAndApply[*v1.ContainerRuntimeConfig, *v1.ContainerRuntimeConfigList, *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("containerruntimeconfigs"),
			v1.SchemeGroupVersion.WithKind("ContainerRuntimeConfig"),
			func() *v1.ContainerRuntimeConfig { return &v1.ContainerRuntimeConfig{} },
			func() *v1.ContainerRuntimeConfigList { return &v1.ContainerRuntimeConfigList{} },
			func(dst, src *v1.ContainerRuntimeConfigList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ContainerRuntimeConfigList) []*v1.ContainerRuntimeConfig {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1.ContainerRuntimeConfigList, items []*v1.ContainerRuntimeConfig) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
