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

package v1

import (
	context "context"

	oauthv1 "github.com/openshift/api/oauth/v1"
	applyconfigurationsoauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
	scheme "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
	metav1 "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"
)

// UserOAuthAccessTokensGetter has a method to return a UserOAuthAccessTokenInterface.
// A group's client should implement this interface.
type UserOAuthAccessTokensGetter interface {
	UserOAuthAccessTokens() UserOAuthAccessTokenInterface
}

// UserOAuthAccessTokenInterface has methods to work with UserOAuthAccessToken resources.
type UserOAuthAccessTokenInterface interface {
	Create(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessToken, opts metav1.CreateOptions) (*oauthv1.UserOAuthAccessToken, error)
	Update(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessToken, opts metav1.UpdateOptions) (*oauthv1.UserOAuthAccessToken, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*oauthv1.UserOAuthAccessToken, error)
	List(ctx context.Context, opts metav1.ListOptions) (*oauthv1.UserOAuthAccessTokenList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *oauthv1.UserOAuthAccessToken, err error)
	Apply(ctx context.Context, userOAuthAccessToken *applyconfigurationsoauthv1.UserOAuthAccessTokenApplyConfiguration, opts metav1.ApplyOptions) (result *oauthv1.UserOAuthAccessToken, err error)
	UserOAuthAccessTokenExpansion
}

// userOAuthAccessTokens implements UserOAuthAccessTokenInterface
type userOAuthAccessTokens struct {
	*gentype.ClientWithListAndApply[*oauthv1.UserOAuthAccessToken, *oauthv1.UserOAuthAccessTokenList, *applyconfigurationsoauthv1.UserOAuthAccessTokenApplyConfiguration]
}

// newUserOAuthAccessTokens returns a UserOAuthAccessTokens
func newUserOAuthAccessTokens(c *OauthV1Client) *userOAuthAccessTokens {
	return &userOAuthAccessTokens{
		gentype.NewClientWithListAndApply[*oauthv1.UserOAuthAccessToken, *oauthv1.UserOAuthAccessTokenList, *applyconfigurationsoauthv1.UserOAuthAccessTokenApplyConfiguration](
			"useroauthaccesstokens",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *oauthv1.UserOAuthAccessToken { return &oauthv1.UserOAuthAccessToken{} },
			func() *oauthv1.UserOAuthAccessTokenList { return &oauthv1.UserOAuthAccessTokenList{} },
		),
	}
}
