func (c *arangoDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
	var timeout time.Duration
	if listOpts.TimeoutSeconds != nil {
		timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
	}
	return c.client.Delete().
		Namespace(c.ns).
		Resource("arangodeployments").
		VersionedParams(&listOpts, scheme.ParameterCodec).
		Timeout(timeout).
		Body(&opts).
		Do(ctx).
		Error()
}
DeleteCollection deletes a collection of objects.
package v2alpha1
import (
	"context"
	"time"
	v2alpha1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v2alpha1"
	scheme "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/scheme"
	v1 "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 ArangoDeploymentsGetter interface {
	ArangoDeployments(namespace string) ArangoDeploymentInterface
}
type ArangoDeploymentInterface interface {
	Create(ctx context.Context, arangoDeployment *v2alpha1.ArangoDeployment, opts v1.CreateOptions) (*v2alpha1.ArangoDeployment, error)
	Update(ctx context.Context, arangoDeployment *v2alpha1.ArangoDeployment, opts v1.UpdateOptions) (*v2alpha1.ArangoDeployment, error)
	UpdateStatus(ctx context.Context, arangoDeployment *v2alpha1.ArangoDeployment, opts v1.UpdateOptions) (*v2alpha1.ArangoDeployment, 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) (*v2alpha1.ArangoDeployment, error)
	List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.ArangoDeploymentList, 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 *v2alpha1.ArangoDeployment, err error)
	ArangoDeploymentExpansion
}
type arangoDeployments struct {
	client rest.Interface
	ns     string
}
func newArangoDeployments(c *DatabaseV2alpha1Client, namespace string) *arangoDeployments {
	return &arangoDeployments{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *arangoDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ArangoDeployment, err error) {
	result = &v2alpha1.ArangoDeployment{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("arangodeployments").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeployments) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ArangoDeploymentList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v2alpha1.ArangoDeploymentList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("arangodeployments").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeployments) Watch(ctx context.Context, opts v1.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().
		Namespace(c.ns).
		Resource("arangodeployments").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch(ctx)
}
func (c *arangoDeployments) Create(ctx context.Context, arangoDeployment *v2alpha1.ArangoDeployment, opts v1.CreateOptions) (result *v2alpha1.ArangoDeployment, err error) {
	result = &v2alpha1.ArangoDeployment{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("arangodeployments").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(arangoDeployment).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeployments) Update(ctx context.Context, arangoDeployment *v2alpha1.ArangoDeployment, opts v1.UpdateOptions) (result *v2alpha1.ArangoDeployment, err error) {
	result = &v2alpha1.ArangoDeployment{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("arangodeployments").
		Name(arangoDeployment.Name).
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(arangoDeployment).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeployments) UpdateStatus(ctx context.Context, arangoDeployment *v2alpha1.ArangoDeployment, opts v1.UpdateOptions) (result *v2alpha1.ArangoDeployment, err error) {
	result = &v2alpha1.ArangoDeployment{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("arangodeployments").
		Name(arangoDeployment.Name).
		SubResource("status").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(arangoDeployment).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeployments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("arangodeployments").
		Name(name).
		Body(&opts).
		Do(ctx).
		Error()
}