/*
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 (
	gentype "k8s.io/client-go/gentype"
	v1alpha3 "sigs.k8s.io/gateway-api/apis/v1alpha3"
	apisv1alpha3 "sigs.k8s.io/gateway-api/applyconfiguration/apis/v1alpha3"
	typedapisv1alpha3 "sigs.k8s.io/gateway-api/pkg/client/clientset/versioned/typed/apis/v1alpha3"
)

// fakeBackendTLSPolicies implements BackendTLSPolicyInterface
type fakeBackendTLSPolicies struct {
	*gentype.FakeClientWithListAndApply[*v1alpha3.BackendTLSPolicy, *v1alpha3.BackendTLSPolicyList, *apisv1alpha3.BackendTLSPolicyApplyConfiguration]
	Fake *FakeGatewayV1alpha3
}

func newFakeBackendTLSPolicies(fake *FakeGatewayV1alpha3, namespace string) typedapisv1alpha3.BackendTLSPolicyInterface {
	return &fakeBackendTLSPolicies{
		gentype.NewFakeClientWithListAndApply[*v1alpha3.BackendTLSPolicy, *v1alpha3.BackendTLSPolicyList, *apisv1alpha3.BackendTLSPolicyApplyConfiguration](
			fake.Fake,
			namespace,
			v1alpha3.SchemeGroupVersion.WithResource("backendtlspolicies"),
			v1alpha3.SchemeGroupVersion.WithKind("BackendTLSPolicy"),
			func() *v1alpha3.BackendTLSPolicy { return &v1alpha3.BackendTLSPolicy{} },
			func() *v1alpha3.BackendTLSPolicyList { return &v1alpha3.BackendTLSPolicyList{} },
			func(dst, src *v1alpha3.BackendTLSPolicyList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha3.BackendTLSPolicyList) []*v1alpha3.BackendTLSPolicy {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha3.BackendTLSPolicyList, items []*v1alpha3.BackendTLSPolicy) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
