func (c *FakeNodeDesires) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(nodedesiresResource, c.ns, name), &v1alpha1.NodeDesire{})
	return err
}
Delete takes name of the nodeDesire and deletes it. Returns an error if one occurs.
package fake
import (
	v1alpha1 "github.com/baetyl/baetyl-cloud/v2/plugin/kube/apis/cloud/v1alpha1"
	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 FakeNodeDesires struct {
	Fake *FakeCloudV1alpha1
	ns   string
}
var nodedesiresResource = schema.GroupVersionResource{Group: "cloud.baetyl.io", Version: "v1alpha1", Resource: "nodedesires"}
var nodedesiresKind = schema.GroupVersionKind{Group: "cloud.baetyl.io", Version: "v1alpha1", Kind: "NodeDesire"}
func (c *FakeNodeDesires) Get(name string, options v1.GetOptions) (result *v1alpha1.NodeDesire, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(nodedesiresResource, c.ns, name), &v1alpha1.NodeDesire{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.NodeDesire), err
}
func (c *FakeNodeDesires) List(opts v1.ListOptions) (result *v1alpha1.NodeDesireList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(nodedesiresResource, nodedesiresKind, c.ns, opts), &v1alpha1.NodeDesireList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.NodeDesireList{ListMeta: obj.(*v1alpha1.NodeDesireList).ListMeta}
	for _, item := range obj.(*v1alpha1.NodeDesireList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeNodeDesires) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(nodedesiresResource, c.ns, opts))
}
func (c *FakeNodeDesires) Create(nodeDesire *v1alpha1.NodeDesire) (result *v1alpha1.NodeDesire, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(nodedesiresResource, c.ns, nodeDesire), &v1alpha1.NodeDesire{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.NodeDesire), err
}
func (c *FakeNodeDesires) Update(nodeDesire *v1alpha1.NodeDesire) (result *v1alpha1.NodeDesire, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(nodedesiresResource, c.ns, nodeDesire), &v1alpha1.NodeDesire{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.NodeDesire), err
}