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

// fakeGitHubIdentityProviders implements GitHubIdentityProviderInterface
type fakeGitHubIdentityProviders struct {
	*gentype.FakeClientWithList[*v1alpha1.GitHubIdentityProvider, *v1alpha1.GitHubIdentityProviderList]
	Fake *FakeIDPV1alpha1
}

func newFakeGitHubIdentityProviders(fake *FakeIDPV1alpha1, namespace string) idpv1alpha1.GitHubIdentityProviderInterface {
	return &fakeGitHubIdentityProviders{
		gentype.NewFakeClientWithList[*v1alpha1.GitHubIdentityProvider, *v1alpha1.GitHubIdentityProviderList](
			fake.Fake,
			namespace,
			v1alpha1.SchemeGroupVersion.WithResource("githubidentityproviders"),
			v1alpha1.SchemeGroupVersion.WithKind("GitHubIdentityProvider"),
			func() *v1alpha1.GitHubIdentityProvider { return &v1alpha1.GitHubIdentityProvider{} },
			func() *v1alpha1.GitHubIdentityProviderList { return &v1alpha1.GitHubIdentityProviderList{} },
			func(dst, src *v1alpha1.GitHubIdentityProviderList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha1.GitHubIdentityProviderList) []*v1alpha1.GitHubIdentityProvider {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha1.GitHubIdentityProviderList, items []*v1alpha1.GitHubIdentityProvider) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
