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

package v1alpha1

import (
	context "context"

	workflowv1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1"
	scheme "github.com/argoproj/argo-workflows/v4/pkg/client/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"
)

// WorkflowArtifactGCTasksGetter has a method to return a WorkflowArtifactGCTaskInterface.
// A group's client should implement this interface.
type WorkflowArtifactGCTasksGetter interface {
	WorkflowArtifactGCTasks(namespace string) WorkflowArtifactGCTaskInterface
}

// WorkflowArtifactGCTaskInterface has methods to work with WorkflowArtifactGCTask resources.
type WorkflowArtifactGCTaskInterface interface {
	Create(ctx context.Context, workflowArtifactGCTask *workflowv1alpha1.WorkflowArtifactGCTask, opts v1.CreateOptions) (*workflowv1alpha1.WorkflowArtifactGCTask, error)
	Update(ctx context.Context, workflowArtifactGCTask *workflowv1alpha1.WorkflowArtifactGCTask, opts v1.UpdateOptions) (*workflowv1alpha1.WorkflowArtifactGCTask, error)
	// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
	UpdateStatus(ctx context.Context, workflowArtifactGCTask *workflowv1alpha1.WorkflowArtifactGCTask, opts v1.UpdateOptions) (*workflowv1alpha1.WorkflowArtifactGCTask, 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) (*workflowv1alpha1.WorkflowArtifactGCTask, error)
	List(ctx context.Context, opts v1.ListOptions) (*workflowv1alpha1.WorkflowArtifactGCTaskList, 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 *workflowv1alpha1.WorkflowArtifactGCTask, err error)
	WorkflowArtifactGCTaskExpansion
}

// workflowArtifactGCTasks implements WorkflowArtifactGCTaskInterface
type workflowArtifactGCTasks struct {
	*gentype.ClientWithList[*workflowv1alpha1.WorkflowArtifactGCTask, *workflowv1alpha1.WorkflowArtifactGCTaskList]
}

// newWorkflowArtifactGCTasks returns a WorkflowArtifactGCTasks
func newWorkflowArtifactGCTasks(c *ArgoprojV1alpha1Client, namespace string) *workflowArtifactGCTasks {
	return &workflowArtifactGCTasks{
		gentype.NewClientWithList[*workflowv1alpha1.WorkflowArtifactGCTask, *workflowv1alpha1.WorkflowArtifactGCTaskList](
			"workflowartifactgctasks",
			c.RESTClient(),
			scheme.ParameterCodec,
			namespace,
			func() *workflowv1alpha1.WorkflowArtifactGCTask { return &workflowv1alpha1.WorkflowArtifactGCTask{} },
			func() *workflowv1alpha1.WorkflowArtifactGCTaskList {
				return &workflowv1alpha1.WorkflowArtifactGCTaskList{}
			},
		),
	}
}
