// Copyright 2020-2026 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

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

package fake

import (
	v1alpha1 "go.pinniped.dev/generated/1.34/apis/supervisor/config/v1alpha1"
	configv1alpha1 "go.pinniped.dev/generated/1.34/client/supervisor/clientset/versioned/typed/config/v1alpha1"
	gentype "k8s.io/client-go/gentype"
)

// fakeOIDCClients implements OIDCClientInterface
type fakeOIDCClients struct {
	*gentype.FakeClientWithList[*v1alpha1.OIDCClient, *v1alpha1.OIDCClientList]
	Fake *FakeConfigV1alpha1
}

func newFakeOIDCClients(fake *FakeConfigV1alpha1, namespace string) configv1alpha1.OIDCClientInterface {
	return &fakeOIDCClients{
		gentype.NewFakeClientWithList[*v1alpha1.OIDCClient, *v1alpha1.OIDCClientList](
			fake.Fake,
			namespace,
			v1alpha1.SchemeGroupVersion.WithResource("oidcclients"),
			v1alpha1.SchemeGroupVersion.WithKind("OIDCClient"),
			func() *v1alpha1.OIDCClient { return &v1alpha1.OIDCClient{} },
			func() *v1alpha1.OIDCClientList { return &v1alpha1.OIDCClientList{} },
			func(dst, src *v1alpha1.OIDCClientList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha1.OIDCClientList) []*v1alpha1.OIDCClient { return gentype.ToPointerSlice(list.Items) },
			func(list *v1alpha1.OIDCClientList, items []*v1alpha1.OIDCClient) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
