func (c *nodeConfigs) Delete(name string, options *metav1.DeleteOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("nodeconfigs").
		Name(name).
		Body(options).
		Do().
		Error()
}
Delete takes name of the nodeConfig and deletes it. Returns an error if one occurs.
package v1
import (
	"time"
	v1 "github.com/contiv/vpp/plugins/crd/pkg/apis/nodeconfig/v1"
	scheme "github.com/contiv/vpp/plugins/crd/pkg/client/clientset/versioned/scheme"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)
type NodeConfigsGetter interface {
	NodeConfigs(namespace string) NodeConfigInterface
}
type NodeConfigInterface interface {
	Create(*v1.NodeConfig) (*v1.NodeConfig, error)
	Update(*v1.NodeConfig) (*v1.NodeConfig, error)
	UpdateStatus(*v1.NodeConfig) (*v1.NodeConfig, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.NodeConfig, error)
	List(opts metav1.ListOptions) (*v1.NodeConfigList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.NodeConfig, err error)
	NodeConfigExpansion
}
type nodeConfigs struct {
	client rest.Interface
	ns     string
}
func newNodeConfigs(c *NodeconfigV1Client, namespace string) *nodeConfigs {
	return &nodeConfigs{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *nodeConfigs) Get(name string, options metav1.GetOptions) (result *v1.NodeConfig, err error) {
	result = &v1.NodeConfig{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("nodeconfigs").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *nodeConfigs) List(opts metav1.ListOptions) (result *v1.NodeConfigList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1.NodeConfigList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("nodeconfigs").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do().
		Into(result)
	return
}
func (c *nodeConfigs) Watch(opts metav1.ListOptions) (watch.Interface, error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("nodeconfigs").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch()
}
func (c *nodeConfigs) Create(nodeConfig *v1.NodeConfig) (result *v1.NodeConfig, err error) {
	result = &v1.NodeConfig{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("nodeconfigs").
		Body(nodeConfig).
		Do().
		Into(result)
	return
}
func (c *nodeConfigs) Update(nodeConfig *v1.NodeConfig) (result *v1.NodeConfig, err error) {
	result = &v1.NodeConfig{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("nodeconfigs").
		Name(nodeConfig.Name).
		Body(nodeConfig).
		Do().
		Into(result)
	return
}
func (c *nodeConfigs) UpdateStatus(nodeConfig *v1.NodeConfig) (result *v1.NodeConfig, err error) {
	result = &v1.NodeConfig{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("nodeconfigs").
		Name(nodeConfig.Name).
		SubResource("status").
		Body(nodeConfig).
		Do().
		Into(result)
	return
}