func (c *authBackends) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
	var timeout time.Duration
	if listOptions.TimeoutSeconds != nil {
		timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
	}
	return c.client.Delete().
		Resource("authbackends").
		VersionedParams(&listOptions, scheme.ParameterCodec).
		Timeout(timeout).
		Body(options).
		Do().
		Error()
}
DeleteCollection deletes a collection of objects.
package v1
import (
	"time"
	v1 "github.com/slok/bilrost/pkg/apis/auth/v1"
	scheme "github.com/slok/bilrost/pkg/kubernetes/gen/clientset/versioned/scheme"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)
type AuthBackendsGetter interface {
	AuthBackends() AuthBackendInterface
}
type AuthBackendInterface interface {
	Create(*v1.AuthBackend) (*v1.AuthBackend, error)
	Update(*v1.AuthBackend) (*v1.AuthBackend, error)
	UpdateStatus(*v1.AuthBackend) (*v1.AuthBackend, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.AuthBackend, error)
	List(opts metav1.ListOptions) (*v1.AuthBackendList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.AuthBackend, err error)
	AuthBackendExpansion
}
type authBackends struct {
	client rest.Interface
}
func newAuthBackends(c *AuthV1Client) *authBackends {
	return &authBackends{
		client: c.RESTClient(),
	}
}
func (c *authBackends) Get(name string, options metav1.GetOptions) (result *v1.AuthBackend, err error) {
	result = &v1.AuthBackend{}
	err = c.client.Get().
		Resource("authbackends").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *authBackends) List(opts metav1.ListOptions) (result *v1.AuthBackendList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1.AuthBackendList{}
	err = c.client.Get().
		Resource("authbackends").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do().
		Into(result)
	return
}
func (c *authBackends) Watch(opts metav1.ListOptions) (watch.Interface, error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	opts.Watch = true
	return c.client.Get().
		Resource("authbackends").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch()
}
func (c *authBackends) Create(authBackend *v1.AuthBackend) (result *v1.AuthBackend, err error) {
	result = &v1.AuthBackend{}
	err = c.client.Post().
		Resource("authbackends").
		Body(authBackend).
		Do().
		Into(result)
	return
}
func (c *authBackends) Update(authBackend *v1.AuthBackend) (result *v1.AuthBackend, err error) {
	result = &v1.AuthBackend{}
	err = c.client.Put().
		Resource("authbackends").
		Name(authBackend.Name).
		Body(authBackend).
		Do().
		Into(result)
	return
}
func (c *authBackends) UpdateStatus(authBackend *v1.AuthBackend) (result *v1.AuthBackend, err error) {
	result = &v1.AuthBackend{}
	err = c.client.Put().
		Resource("authbackends").
		Name(authBackend.Name).
		SubResource("status").
		Body(authBackend).
		Do().
		Into(result)
	return
}
func (c *authBackends) Delete(name string, options *metav1.DeleteOptions) error {
	return c.client.Delete().
		Resource("authbackends").
		Name(name).
		Body(options).
		Do().
		Error()
}