func (c *FakeArangoBackupPolicies) Create(ctx context.Context, arangoBackupPolicy *backupv1.ArangoBackupPolicy, opts v1.CreateOptions) (result *backupv1.ArangoBackupPolicy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(arangobackuppoliciesResource, c.ns, arangoBackupPolicy), &backupv1.ArangoBackupPolicy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*backupv1.ArangoBackupPolicy), err
}
Create takes the representation of a arangoBackupPolicy and creates it.  Returns the server's representation of the arangoBackupPolicy, and an error, if there is any.
package fake
import (
	"context"
	backupv1 "github.com/arangodb/kube-arangodb/pkg/apis/backup/v1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeArangoBackupPolicies struct {
	Fake *FakeBackupV1
	ns   string
}
var arangobackuppoliciesResource = schema.GroupVersionResource{Group: "backup.arangodb.com", Version: "v1", Resource: "arangobackuppolicies"}
var arangobackuppoliciesKind = schema.GroupVersionKind{Group: "backup.arangodb.com", Version: "v1", Kind: "ArangoBackupPolicy"}
func (c *FakeArangoBackupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *backupv1.ArangoBackupPolicy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(arangobackuppoliciesResource, c.ns, name), &backupv1.ArangoBackupPolicy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*backupv1.ArangoBackupPolicy), err
}
func (c *FakeArangoBackupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *backupv1.ArangoBackupPolicyList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(arangobackuppoliciesResource, arangobackuppoliciesKind, c.ns, opts), &backupv1.ArangoBackupPolicyList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &backupv1.ArangoBackupPolicyList{ListMeta: obj.(*backupv1.ArangoBackupPolicyList).ListMeta}
	for _, item := range obj.(*backupv1.ArangoBackupPolicyList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeArangoBackupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(arangobackuppoliciesResource, c.ns, opts))
}