/*
Copyright 2022 The Knative 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 (
	gentype "k8s.io/client-go/gentype"
	v1 "knative.dev/serving/pkg/apis/serving/v1"
	servingv1 "knative.dev/serving/pkg/client/clientset/versioned/typed/serving/v1"
)

// fakeConfigurations implements ConfigurationInterface
type fakeConfigurations struct {
	*gentype.FakeClientWithList[*v1.Configuration, *v1.ConfigurationList]
	Fake *FakeServingV1
}

func newFakeConfigurations(fake *FakeServingV1, namespace string) servingv1.ConfigurationInterface {
	return &fakeConfigurations{
		gentype.NewFakeClientWithList[*v1.Configuration, *v1.ConfigurationList](
			fake.Fake,
			namespace,
			v1.SchemeGroupVersion.WithResource("configurations"),
			v1.SchemeGroupVersion.WithKind("Configuration"),
			func() *v1.Configuration { return &v1.Configuration{} },
			func() *v1.ConfigurationList { return &v1.ConfigurationList{} },
			func(dst, src *v1.ConfigurationList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ConfigurationList) []*v1.Configuration { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.ConfigurationList, items []*v1.Configuration) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
