func (c *FakeIPInstances) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(ipinstancesResource, c.ns, name), &networkingv1.IPInstance{})
	return err
}
Delete takes name of the iPInstance and deletes it. Returns an error if one occurs.
package fake
import (
	"context"
	networkingv1 "github.com/alibaba/hybridnet/pkg/apis/networking/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 FakeIPInstances struct {
	Fake *FakeNetworkingV1
	ns   string
}
var ipinstancesResource = schema.GroupVersionResource{Group: "networking.alibaba.com", Version: "v1", Resource: "ipinstances"}
var ipinstancesKind = schema.GroupVersionKind{Group: "networking.alibaba.com", Version: "v1", Kind: "IPInstance"}
func (c *FakeIPInstances) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.IPInstance, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(ipinstancesResource, c.ns, name), &networkingv1.IPInstance{})
	if obj == nil {
		return nil, err
	}
	return obj.(*networkingv1.IPInstance), err
}
func (c *FakeIPInstances) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.IPInstanceList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(ipinstancesResource, ipinstancesKind, c.ns, opts), &networkingv1.IPInstanceList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &networkingv1.IPInstanceList{ListMeta: obj.(*networkingv1.IPInstanceList).ListMeta}
	for _, item := range obj.(*networkingv1.IPInstanceList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeIPInstances) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(ipinstancesResource, c.ns, opts))
}
func (c *FakeIPInstances) Create(ctx context.Context, iPInstance *networkingv1.IPInstance, opts v1.CreateOptions) (result *networkingv1.IPInstance, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(ipinstancesResource, c.ns, iPInstance), &networkingv1.IPInstance{})
	if obj == nil {
		return nil, err
	}
	return obj.(*networkingv1.IPInstance), err
}
func (c *FakeIPInstances) Update(ctx context.Context, iPInstance *networkingv1.IPInstance, opts v1.UpdateOptions) (result *networkingv1.IPInstance, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(ipinstancesResource, c.ns, iPInstance), &networkingv1.IPInstance{})
	if obj == nil {
		return nil, err
	}
	return obj.(*networkingv1.IPInstance), err
}
func (c *FakeIPInstances) UpdateStatus(ctx context.Context, iPInstance *networkingv1.IPInstance, opts v1.UpdateOptions) (*networkingv1.IPInstance, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(ipinstancesResource, "status", c.ns, iPInstance), &networkingv1.IPInstance{})
	if obj == nil {
		return nil, err
	}
	return obj.(*networkingv1.IPInstance), err
}