func (c *FakeDataVolumes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(datavolumesResource, c.ns, name), &v1alpha1.DataVolume{})
	return err
}
Delete takes name of the dataVolume and deletes it. Returns an error if one occurs.
package fake
import (
	"context"
	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"
	v1alpha1 "kubevirt.io/containerized-data-importer/pkg/apis/core/v1alpha1"
)
type FakeDataVolumes struct {
	Fake *FakeCdiV1alpha1
	ns   string
}
var datavolumesResource = schema.GroupVersionResource{Group: "cdi.kubevirt.io", Version: "v1alpha1", Resource: "datavolumes"}
var datavolumesKind = schema.GroupVersionKind{Group: "cdi.kubevirt.io", Version: "v1alpha1", Kind: "DataVolume"}
func (c *FakeDataVolumes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.DataVolume, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(datavolumesResource, c.ns, name), &v1alpha1.DataVolume{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.DataVolume), err
}
func (c *FakeDataVolumes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DataVolumeList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(datavolumesResource, datavolumesKind, c.ns, opts), &v1alpha1.DataVolumeList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.DataVolumeList{ListMeta: obj.(*v1alpha1.DataVolumeList).ListMeta}
	for _, item := range obj.(*v1alpha1.DataVolumeList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeDataVolumes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(datavolumesResource, c.ns, opts))
}
func (c *FakeDataVolumes) Create(ctx context.Context, dataVolume *v1alpha1.DataVolume, opts v1.CreateOptions) (result *v1alpha1.DataVolume, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(datavolumesResource, c.ns, dataVolume), &v1alpha1.DataVolume{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.DataVolume), err
}
func (c *FakeDataVolumes) Update(ctx context.Context, dataVolume *v1alpha1.DataVolume, opts v1.UpdateOptions) (result *v1alpha1.DataVolume, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(datavolumesResource, c.ns, dataVolume), &v1alpha1.DataVolume{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.DataVolume), err
}
func (c *FakeDataVolumes) UpdateStatus(ctx context.Context, dataVolume *v1alpha1.DataVolume, opts v1.UpdateOptions) (*v1alpha1.DataVolume, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(datavolumesResource, "status", c.ns, dataVolume), &v1alpha1.DataVolume{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.DataVolume), err
}