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

package v1

import (
	context "context"

	userv1 "github.com/openshift/api/user/v1"
	applyconfigurationsuserv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
	scheme "github.com/openshift/client-go/user/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"
)

// UsersGetter has a method to return a UserInterface.
// A group's client should implement this interface.
type UsersGetter interface {
	Users() UserInterface
}

// UserInterface has methods to work with User resources.
type UserInterface interface {
	Create(ctx context.Context, user *userv1.User, opts metav1.CreateOptions) (*userv1.User, error)
	Update(ctx context.Context, user *userv1.User, opts metav1.UpdateOptions) (*userv1.User, 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) (*userv1.User, error)
	List(ctx context.Context, opts metav1.ListOptions) (*userv1.UserList, 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 *userv1.User, err error)
	Apply(ctx context.Context, user *applyconfigurationsuserv1.UserApplyConfiguration, opts metav1.ApplyOptions) (result *userv1.User, err error)
	UserExpansion
}

// users implements UserInterface
type users struct {
	*gentype.ClientWithListAndApply[*userv1.User, *userv1.UserList, *applyconfigurationsuserv1.UserApplyConfiguration]
}

// newUsers returns a Users
func newUsers(c *UserV1Client) *users {
	return &users{
		gentype.NewClientWithListAndApply[*userv1.User, *userv1.UserList, *applyconfigurationsuserv1.UserApplyConfiguration](
			"users",
			c.RESTClient(),
			scheme.ParameterCodec,
			"",
			func() *userv1.User { return &userv1.User{} },
			func() *userv1.UserList { return &userv1.UserList{} },
		),
	}
}
