func (c *arangoDeploymentReplications) 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("arangodeploymentreplications").
		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/replication/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 ArangoDeploymentReplicationsGetter interface {
	ArangoDeploymentReplications(namespace string) ArangoDeploymentReplicationInterface
}
type ArangoDeploymentReplicationInterface interface {
	Create(ctx context.Context, arangoDeploymentReplication *v2alpha1.ArangoDeploymentReplication, opts v1.CreateOptions) (*v2alpha1.ArangoDeploymentReplication, error)
	Update(ctx context.Context, arangoDeploymentReplication *v2alpha1.ArangoDeploymentReplication, opts v1.UpdateOptions) (*v2alpha1.ArangoDeploymentReplication, error)
	UpdateStatus(ctx context.Context, arangoDeploymentReplication *v2alpha1.ArangoDeploymentReplication, opts v1.UpdateOptions) (*v2alpha1.ArangoDeploymentReplication, 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.ArangoDeploymentReplication, error)
	List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.ArangoDeploymentReplicationList, 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.ArangoDeploymentReplication, err error)
	ArangoDeploymentReplicationExpansion
}
type arangoDeploymentReplications struct {
	client rest.Interface
	ns     string
}
func newArangoDeploymentReplications(c *ReplicationV2alpha1Client, namespace string) *arangoDeploymentReplications {
	return &arangoDeploymentReplications{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *arangoDeploymentReplications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ArangoDeploymentReplication, err error) {
	result = &v2alpha1.ArangoDeploymentReplication{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("arangodeploymentreplications").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeploymentReplications) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ArangoDeploymentReplicationList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v2alpha1.ArangoDeploymentReplicationList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("arangodeploymentreplications").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeploymentReplications) 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("arangodeploymentreplications").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch(ctx)
}
func (c *arangoDeploymentReplications) Create(ctx context.Context, arangoDeploymentReplication *v2alpha1.ArangoDeploymentReplication, opts v1.CreateOptions) (result *v2alpha1.ArangoDeploymentReplication, err error) {
	result = &v2alpha1.ArangoDeploymentReplication{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("arangodeploymentreplications").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(arangoDeploymentReplication).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeploymentReplications) Update(ctx context.Context, arangoDeploymentReplication *v2alpha1.ArangoDeploymentReplication, opts v1.UpdateOptions) (result *v2alpha1.ArangoDeploymentReplication, err error) {
	result = &v2alpha1.ArangoDeploymentReplication{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("arangodeploymentreplications").
		Name(arangoDeploymentReplication.Name).
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(arangoDeploymentReplication).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeploymentReplications) UpdateStatus(ctx context.Context, arangoDeploymentReplication *v2alpha1.ArangoDeploymentReplication, opts v1.UpdateOptions) (result *v2alpha1.ArangoDeploymentReplication, err error) {
	result = &v2alpha1.ArangoDeploymentReplication{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("arangodeploymentreplications").
		Name(arangoDeploymentReplication.Name).
		SubResource("status").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(arangoDeploymentReplication).
		Do(ctx).
		Into(result)
	return
}
func (c *arangoDeploymentReplications) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("arangodeploymentreplications").
		Name(name).
		Body(&opts).
		Do(ctx).
		Error()
}