func (c *jobs) Update(job *extensions.Job) (result *extensions.Job, err error) {
	result = &extensions.Job{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("jobs").
		Name(job.Name).
		Body(job).
		Do().
		Into(result)
	return
}
Update takes the representation of a job and updates it. Returns the server's representation of the job, and an error, if there is any.
package unversioned
import (
	api "k8s.io/kubernetes/pkg/api"
	extensions "k8s.io/kubernetes/pkg/apis/extensions"
	watch "k8s.io/kubernetes/pkg/watch"
)
type JobsGetter interface {
	Jobs(namespace string) JobInterface
}
type JobInterface interface {
	Create(*extensions.Job) (*extensions.Job, error)
	Update(*extensions.Job) (*extensions.Job, error)
	UpdateStatus(*extensions.Job) (*extensions.Job, error)
	Delete(name string, options *api.DeleteOptions) error
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
	Get(name string) (*extensions.Job, error)
	List(opts api.ListOptions) (*extensions.JobList, error)
	Watch(opts api.ListOptions) (watch.Interface, error)
	JobExpansion
}
type jobs struct {
	client *ExtensionsClient
	ns     string
}
func newJobs(c *ExtensionsClient, namespace string) *jobs {
	return &jobs{
		client: c,
		ns:     namespace,
	}
}
func (c *jobs) Create(job *extensions.Job) (result *extensions.Job, err error) {
	result = &extensions.Job{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("jobs").
		Body(job).
		Do().
		Into(result)
	return
}