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

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

package v1alpha1

import (
	context "context"

	identityv1alpha1 "go.pinniped.dev/generated/1.33/apis/concierge/identity/v1alpha1"
	scheme "go.pinniped.dev/generated/1.33/client/concierge/clientset/versioned/scheme"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	gentype "k8s.io/client-go/gentype"
)

// WhoAmIRequestsGetter has a method to return a WhoAmIRequestInterface.
// A group's client should implement this interface.
type WhoAmIRequestsGetter interface {
	WhoAmIRequests() WhoAmIRequestInterface
}

// WhoAmIRequestInterface has methods to work with WhoAmIRequest resources.
type WhoAmIRequestInterface interface {
	Create(ctx context.Context, whoAmIRequest *identityv1alpha1.WhoAmIRequest, opts v1.CreateOptions) (*identityv1alpha1.WhoAmIRequest, error)
	WhoAmIRequestExpansion
}

// whoAmIRequests implements WhoAmIRequestInterface
type whoAmIRequests struct {
	*gentype.Client[*identityv1alpha1.WhoAmIRequest]
}

// newWhoAmIRequests returns a WhoAmIRequests
func newWhoAmIRequests(c *IdentityV1alpha1Client) *whoAmIRequests {
	return &whoAmIRequests{
		gentype.NewClient[*identityv1alpha1.WhoAmIRequest](
			"whoamirequests",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *identityv1alpha1.WhoAmIRequest { return &identityv1alpha1.WhoAmIRequest{} },
		),
	}
}
