func (c *buildJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.BuildJob, err error) {
	result = &v1alpha1.BuildJob{}
	err = c.client.Patch(pt).
		Namespace(c.ns).
		Resource("buildjobs").
		SubResource(subresources...).
		Name(name).
		Body(data).
		Do().
		Into(result)
	return
}
Patch applies the patch and returns the patched buildJob.
package v1alpha1
import (
	v1alpha1 "github.com/containerbuilding/cbi/pkg/apis/cbi/v1alpha1"
	scheme "github.com/containerbuilding/cbi/pkg/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 BuildJobsGetter interface {
	BuildJobs(namespace string) BuildJobInterface
}
type BuildJobInterface interface {
	Create(*v1alpha1.BuildJob) (*v1alpha1.BuildJob, error)
	Update(*v1alpha1.BuildJob) (*v1alpha1.BuildJob, error)
	Delete(name string, options *v1.DeleteOptions) error
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	Get(name string, options v1.GetOptions) (*v1alpha1.BuildJob, error)
	List(opts v1.ListOptions) (*v1alpha1.BuildJobList, error)
	Watch(opts v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.BuildJob, err error)
	BuildJobExpansion
}
type buildJobs struct {
	client rest.Interface
	ns     string
}
func newBuildJobs(c *CbiV1alpha1Client, namespace string) *buildJobs {
	return &buildJobs{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *buildJobs) Get(name string, options v1.GetOptions) (result *v1alpha1.BuildJob, err error) {
	result = &v1alpha1.BuildJob{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("buildjobs").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *buildJobs) List(opts v1.ListOptions) (result *v1alpha1.BuildJobList, err error) {
	result = &v1alpha1.BuildJobList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("buildjobs").
		VersionedParams(&opts, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *buildJobs) Watch(opts v1.ListOptions) (watch.Interface, error) {
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("buildjobs").
		VersionedParams(&opts, scheme.ParameterCodec).
		Watch()
}
func (c *buildJobs) Create(buildJob *v1alpha1.BuildJob) (result *v1alpha1.BuildJob, err error) {
	result = &v1alpha1.BuildJob{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("buildjobs").
		Body(buildJob).
		Do().
		Into(result)
	return
}
func (c *buildJobs) Update(buildJob *v1alpha1.BuildJob) (result *v1alpha1.BuildJob, err error) {
	result = &v1alpha1.BuildJob{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("buildjobs").
		Name(buildJob.Name).
		Body(buildJob).
		Do().
		Into(result)
	return
}
func (c *buildJobs) Delete(name string, options *v1.DeleteOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("buildjobs").
		Name(name).
		Body(options).
		Do().
		Error()
}
func (c *buildJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("buildjobs").
		VersionedParams(&listOptions, scheme.ParameterCodec).
		Body(options).
		Do().
		Error()
}