/*
Copyright The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

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

package fake

import (
	v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1"
	crv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/cr/v1"
	typedcrv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeExamples implements ExampleInterface
type fakeExamples struct {
	*gentype.FakeClientWithListAndApply[*v1.Example, *v1.ExampleList, *crv1.ExampleApplyConfiguration]
	Fake *FakeCrV1
}

func newFakeExamples(fake *FakeCrV1, namespace string) typedcrv1.ExampleInterface {
	return &fakeExamples{
		gentype.NewFakeClientWithListAndApply[*v1.Example, *v1.ExampleList, *crv1.ExampleApplyConfiguration](
			fake.Fake,
			namespace,
			v1.SchemeGroupVersion.WithResource("examples"),
			v1.SchemeGroupVersion.WithKind("Example"),
			func() *v1.Example { return &v1.Example{} },
			func() *v1.ExampleList { return &v1.ExampleList{} },
			func(dst, src *v1.ExampleList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ExampleList) []*v1.Example { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.ExampleList, items []*v1.Example) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
