func (c *FakeCDIs) Update(ctx context.Context, cDI *v1alpha1.CDI, opts v1.UpdateOptions) (result *v1alpha1.CDI, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootUpdateAction(cdisResource, cDI), &v1alpha1.CDI{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.CDI), err
}
Update takes the representation of a cDI and updates it. Returns the server's representation of the cDI, and an error, if there is any.
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 FakeCDIs struct {
	Fake *FakeCdiV1alpha1
}
var cdisResource = schema.GroupVersionResource{Group: "cdi.kubevirt.io", Version: "v1alpha1", Resource: "cdis"}
var cdisKind = schema.GroupVersionKind{Group: "cdi.kubevirt.io", Version: "v1alpha1", Kind: "CDI"}
func (c *FakeCDIs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CDI, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootGetAction(cdisResource, name), &v1alpha1.CDI{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.CDI), err
}
func (c *FakeCDIs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CDIList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootListAction(cdisResource, cdisKind, opts), &v1alpha1.CDIList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.CDIList{ListMeta: obj.(*v1alpha1.CDIList).ListMeta}
	for _, item := range obj.(*v1alpha1.CDIList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeCDIs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewRootWatchAction(cdisResource, opts))
}
func (c *FakeCDIs) Create(ctx context.Context, cDI *v1alpha1.CDI, opts v1.CreateOptions) (result *v1alpha1.CDI, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootCreateAction(cdisResource, cDI), &v1alpha1.CDI{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.CDI), err
}