// 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"

	loginv1alpha1 "go.pinniped.dev/generated/1.33/apis/concierge/login/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"
)

// TokenCredentialRequestsGetter has a method to return a TokenCredentialRequestInterface.
// A group's client should implement this interface.
type TokenCredentialRequestsGetter interface {
	TokenCredentialRequests() TokenCredentialRequestInterface
}

// TokenCredentialRequestInterface has methods to work with TokenCredentialRequest resources.
type TokenCredentialRequestInterface interface {
	Create(ctx context.Context, tokenCredentialRequest *loginv1alpha1.TokenCredentialRequest, opts v1.CreateOptions) (*loginv1alpha1.TokenCredentialRequest, error)
	TokenCredentialRequestExpansion
}

// tokenCredentialRequests implements TokenCredentialRequestInterface
type tokenCredentialRequests struct {
	*gentype.Client[*loginv1alpha1.TokenCredentialRequest]
}

// newTokenCredentialRequests returns a TokenCredentialRequests
func newTokenCredentialRequests(c *LoginV1alpha1Client) *tokenCredentialRequests {
	return &tokenCredentialRequests{
		gentype.NewClient[*loginv1alpha1.TokenCredentialRequest](
			"tokencredentialrequests",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *loginv1alpha1.TokenCredentialRequest { return &loginv1alpha1.TokenCredentialRequest{} },
		),
	}
}
