// Copyright 2025 Antrea 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 (
	v1alpha2 "antrea.io/antrea/multicluster/apis/multicluster/v1alpha2"
	multiclusterv1alpha2 "antrea.io/antrea/multicluster/pkg/client/clientset/versioned/typed/multicluster/v1alpha2"
	gentype "k8s.io/client-go/gentype"
)

// fakeClusterClaims implements ClusterClaimInterface
type fakeClusterClaims struct {
	*gentype.FakeClientWithList[*v1alpha2.ClusterClaim, *v1alpha2.ClusterClaimList]
	Fake *FakeMulticlusterV1alpha2
}

func newFakeClusterClaims(fake *FakeMulticlusterV1alpha2, namespace string) multiclusterv1alpha2.ClusterClaimInterface {
	return &fakeClusterClaims{
		gentype.NewFakeClientWithList[*v1alpha2.ClusterClaim, *v1alpha2.ClusterClaimList](
			fake.Fake,
			namespace,
			v1alpha2.SchemeGroupVersion.WithResource("clusterclaims"),
			v1alpha2.SchemeGroupVersion.WithKind("ClusterClaim"),
			func() *v1alpha2.ClusterClaim { return &v1alpha2.ClusterClaim{} },
			func() *v1alpha2.ClusterClaimList { return &v1alpha2.ClusterClaimList{} },
			func(dst, src *v1alpha2.ClusterClaimList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha2.ClusterClaimList) []*v1alpha2.ClusterClaim {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha2.ClusterClaimList, items []*v1alpha2.ClusterClaim) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
