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

	configv1alpha1 "go.pinniped.dev/generated/1.33/apis/supervisor/config/v1alpha1"
	scheme "go.pinniped.dev/generated/1.33/client/supervisor/clientset/versioned/scheme"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	gentype "k8s.io/client-go/gentype"
)

// OIDCClientsGetter has a method to return a OIDCClientInterface.
// A group's client should implement this interface.
type OIDCClientsGetter interface {
	OIDCClients(namespace string) OIDCClientInterface
}

// OIDCClientInterface has methods to work with OIDCClient resources.
type OIDCClientInterface interface {
	Create(ctx context.Context, oIDCClient *configv1alpha1.OIDCClient, opts v1.CreateOptions) (*configv1alpha1.OIDCClient, error)
	Update(ctx context.Context, oIDCClient *configv1alpha1.OIDCClient, opts v1.UpdateOptions) (*configv1alpha1.OIDCClient, error)
	// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
	UpdateStatus(ctx context.Context, oIDCClient *configv1alpha1.OIDCClient, opts v1.UpdateOptions) (*configv1alpha1.OIDCClient, error)
	Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
	Get(ctx context.Context, name string, opts v1.GetOptions) (*configv1alpha1.OIDCClient, error)
	List(ctx context.Context, opts v1.ListOptions) (*configv1alpha1.OIDCClientList, error)
	Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configv1alpha1.OIDCClient, err error)
	OIDCClientExpansion
}

// oIDCClients implements OIDCClientInterface
type oIDCClients struct {
	*gentype.ClientWithList[*configv1alpha1.OIDCClient, *configv1alpha1.OIDCClientList]
}

// newOIDCClients returns a OIDCClients
func newOIDCClients(c *ConfigV1alpha1Client, namespace string) *oIDCClients {
	return &oIDCClients{
		gentype.NewClientWithList[*configv1alpha1.OIDCClient, *configv1alpha1.OIDCClientList](
			"oidcclients",
			c.RESTClient(),
			scheme.ParameterCodec,
			namespace,
			func() *configv1alpha1.OIDCClient { return &configv1alpha1.OIDCClient{} },
			func() *configv1alpha1.OIDCClientList { return &configv1alpha1.OIDCClientList{} },
		),
	}
}
