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

// WorkflowEventBindingsGetter has a method to return a WorkflowEventBindingInterface.
// A group's client should implement this interface.
type WorkflowEventBindingsGetter interface {
	WorkflowEventBindings(namespace string) WorkflowEventBindingInterface
}

// WorkflowEventBindingInterface has methods to work with WorkflowEventBinding resources.
type WorkflowEventBindingInterface interface {
	Create(ctx context.Context, workflowEventBinding *workflowv1alpha1.WorkflowEventBinding, opts v1.CreateOptions) (*workflowv1alpha1.WorkflowEventBinding, error)
	Update(ctx context.Context, workflowEventBinding *workflowv1alpha1.WorkflowEventBinding, opts v1.UpdateOptions) (*workflowv1alpha1.WorkflowEventBinding, 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.WorkflowEventBinding, error)
	List(ctx context.Context, opts v1.ListOptions) (*workflowv1alpha1.WorkflowEventBindingList, 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.WorkflowEventBinding, err error)
	WorkflowEventBindingExpansion
}

// workflowEventBindings implements WorkflowEventBindingInterface
type workflowEventBindings struct {
	*gentype.ClientWithList[*workflowv1alpha1.WorkflowEventBinding, *workflowv1alpha1.WorkflowEventBindingList]
}

// newWorkflowEventBindings returns a WorkflowEventBindings
func newWorkflowEventBindings(c *ArgoprojV1alpha1Client, namespace string) *workflowEventBindings {
	return &workflowEventBindings{
		gentype.NewClientWithList[*workflowv1alpha1.WorkflowEventBinding, *workflowv1alpha1.WorkflowEventBindingList](
			"workfloweventbindings",
			c.RESTClient(),
			scheme.ParameterCodec,
			namespace,
			func() *workflowv1alpha1.WorkflowEventBinding { return &workflowv1alpha1.WorkflowEventBinding{} },
			func() *workflowv1alpha1.WorkflowEventBindingList { return &workflowv1alpha1.WorkflowEventBindingList{} },
		),
	}
}
