func (c *builds) Update(build *v1alpha1.Build) (result *v1alpha1.Build, err error) {
	result = &v1alpha1.Build{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("builds").
		Name(build.Name).
		Body(build).
		Do().
		Into(result)
	return
}
Update takes the representation of a build and updates it. Returns the server's representation of the build, and an error, if there is any.
package v1alpha1
import (
	v1alpha1 "github.com/knative/build/pkg/apis/build/v1alpha1"
	scheme "github.com/knative/build/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 BuildsGetter interface {
	Builds(namespace string) BuildInterface
}
type BuildInterface interface {
	Create(*v1alpha1.Build) (*v1alpha1.Build, error)
	Update(*v1alpha1.Build) (*v1alpha1.Build, error)
	Delete(name string, options *v1.DeleteOptions) error
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	Get(name string, options v1.GetOptions) (*v1alpha1.Build, error)
	List(opts v1.ListOptions) (*v1alpha1.BuildList, error)
	Watch(opts v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Build, err error)
	BuildExpansion
}
type builds struct {
	client rest.Interface
	ns     string
}
func newBuilds(c *BuildV1alpha1Client, namespace string) *builds {
	return &builds{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *builds) Get(name string, options v1.GetOptions) (result *v1alpha1.Build, err error) {
	result = &v1alpha1.Build{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("builds").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *builds) List(opts v1.ListOptions) (result *v1alpha1.BuildList, err error) {
	result = &v1alpha1.BuildList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("builds").
		VersionedParams(&opts, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *builds) Watch(opts v1.ListOptions) (watch.Interface, error) {
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("builds").
		VersionedParams(&opts, scheme.ParameterCodec).
		Watch()
}
func (c *builds) Create(build *v1alpha1.Build) (result *v1alpha1.Build, err error) {
	result = &v1alpha1.Build{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("builds").
		Body(build).
		Do().
		Into(result)
	return
}