func (c *nuclioAPIGateways) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.NuclioAPIGateway, err error) {
	result = &v1beta1.NuclioAPIGateway{}
	err = c.client.Patch(pt).
		Namespace(c.ns).
		Resource("nuclioapigateways").
		SubResource(subresources...).
		Name(name).
		Body(data).
		Do().
		Into(result)
	return
}
Patch applies the patch and returns the patched nuclioAPIGateway.
package v1beta1
import (
	"time"
	v1beta1 "github.com/nuclio/nuclio/pkg/platform/kube/apis/nuclio.io/v1beta1"
	scheme "github.com/nuclio/nuclio/pkg/platform/kube/client/clientset/versioned/scheme"
	v1 "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 NuclioAPIGatewaysGetter interface {
	NuclioAPIGateways(namespace string) NuclioAPIGatewayInterface
}
type NuclioAPIGatewayInterface interface {
	Create(*v1beta1.NuclioAPIGateway) (*v1beta1.NuclioAPIGateway, error)
	Update(*v1beta1.NuclioAPIGateway) (*v1beta1.NuclioAPIGateway, error)
	Delete(name string, options *v1.DeleteOptions) error
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	Get(name string, options v1.GetOptions) (*v1beta1.NuclioAPIGateway, error)
	List(opts v1.ListOptions) (*v1beta1.NuclioAPIGatewayList, error)
	Watch(opts v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.NuclioAPIGateway, err error)
	NuclioAPIGatewayExpansion
}
type nuclioAPIGateways struct {
	client rest.Interface
	ns     string
}
func newNuclioAPIGateways(c *NuclioV1beta1Client, namespace string) *nuclioAPIGateways {
	return &nuclioAPIGateways{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *nuclioAPIGateways) Get(name string, options v1.GetOptions) (result *v1beta1.NuclioAPIGateway, err error) {
	result = &v1beta1.NuclioAPIGateway{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("nuclioapigateways").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *nuclioAPIGateways) List(opts v1.ListOptions) (result *v1beta1.NuclioAPIGatewayList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1beta1.NuclioAPIGatewayList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("nuclioapigateways").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do().
		Into(result)
	return
}
func (c *nuclioAPIGateways) Watch(opts v1.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("nuclioapigateways").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch()
}
func (c *nuclioAPIGateways) Create(nuclioAPIGateway *v1beta1.NuclioAPIGateway) (result *v1beta1.NuclioAPIGateway, err error) {
	result = &v1beta1.NuclioAPIGateway{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("nuclioapigateways").
		Body(nuclioAPIGateway).
		Do().
		Into(result)
	return
}
func (c *nuclioAPIGateways) Update(nuclioAPIGateway *v1beta1.NuclioAPIGateway) (result *v1beta1.NuclioAPIGateway, err error) {
	result = &v1beta1.NuclioAPIGateway{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("nuclioapigateways").
		Name(nuclioAPIGateway.Name).
		Body(nuclioAPIGateway).
		Do().
		Into(result)
	return
}
func (c *nuclioAPIGateways) Delete(name string, options *v1.DeleteOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("nuclioapigateways").
		Name(name).
		Body(options).
		Do().
		Error()
}
func (c *nuclioAPIGateways) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	var timeout time.Duration
	if listOptions.TimeoutSeconds != nil {
		timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
	}
	return c.client.Delete().
		Namespace(c.ns).
		Resource("nuclioapigateways").
		VersionedParams(&listOptions, scheme.ParameterCodec).
		Timeout(timeout).
		Body(options).
		Do().
		Error()
}