// 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.32/apis/supervisor/idp/v1alpha1"
	idpv1alpha1 "go.pinniped.dev/generated/1.32/client/supervisor/clientset/versioned/typed/idp/v1alpha1"
	gentype "k8s.io/client-go/gentype"
)

// fakeActiveDirectoryIdentityProviders implements ActiveDirectoryIdentityProviderInterface
type fakeActiveDirectoryIdentityProviders struct {
	*gentype.FakeClientWithList[*v1alpha1.ActiveDirectoryIdentityProvider, *v1alpha1.ActiveDirectoryIdentityProviderList]
	Fake *FakeIDPV1alpha1
}

func newFakeActiveDirectoryIdentityProviders(fake *FakeIDPV1alpha1, namespace string) idpv1alpha1.ActiveDirectoryIdentityProviderInterface {
	return &fakeActiveDirectoryIdentityProviders{
		gentype.NewFakeClientWithList[*v1alpha1.ActiveDirectoryIdentityProvider, *v1alpha1.ActiveDirectoryIdentityProviderList](
			fake.Fake,
			namespace,
			v1alpha1.SchemeGroupVersion.WithResource("activedirectoryidentityproviders"),
			v1alpha1.SchemeGroupVersion.WithKind("ActiveDirectoryIdentityProvider"),
			func() *v1alpha1.ActiveDirectoryIdentityProvider { return &v1alpha1.ActiveDirectoryIdentityProvider{} },
			func() *v1alpha1.ActiveDirectoryIdentityProviderList {
				return &v1alpha1.ActiveDirectoryIdentityProviderList{}
			},
			func(dst, src *v1alpha1.ActiveDirectoryIdentityProviderList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha1.ActiveDirectoryIdentityProviderList) []*v1alpha1.ActiveDirectoryIdentityProvider {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha1.ActiveDirectoryIdentityProviderList, items []*v1alpha1.ActiveDirectoryIdentityProvider) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
