/*
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 (
	v1alpha3 "k8s.io/api/scheduling/v1alpha3"
	schedulingv1alpha3 "k8s.io/client-go/applyconfigurations/scheduling/v1alpha3"
	gentype "k8s.io/client-go/gentype"
	typedschedulingv1alpha3 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha3"
)

// fakeCompositePodGroups implements CompositePodGroupInterface
type fakeCompositePodGroups struct {
	*gentype.FakeClientWithListAndApply[*v1alpha3.CompositePodGroup, *v1alpha3.CompositePodGroupList, *schedulingv1alpha3.CompositePodGroupApplyConfiguration]
	Fake *FakeSchedulingV1alpha3
}

func newFakeCompositePodGroups(fake *FakeSchedulingV1alpha3, namespace string) typedschedulingv1alpha3.CompositePodGroupInterface {
	return &fakeCompositePodGroups{
		gentype.NewFakeClientWithListAndApply[*v1alpha3.CompositePodGroup, *v1alpha3.CompositePodGroupList, *schedulingv1alpha3.CompositePodGroupApplyConfiguration](
			fake.Fake,
			namespace,
			v1alpha3.SchemeGroupVersion.WithResource("compositepodgroups"),
			v1alpha3.SchemeGroupVersion.WithKind("CompositePodGroup"),
			func() *v1alpha3.CompositePodGroup { return &v1alpha3.CompositePodGroup{} },
			func() *v1alpha3.CompositePodGroupList { return &v1alpha3.CompositePodGroupList{} },
			func(dst, src *v1alpha3.CompositePodGroupList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha3.CompositePodGroupList) []*v1alpha3.CompositePodGroup {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha3.CompositePodGroupList, items []*v1alpha3.CompositePodGroup) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
