func (c *revisions) Delete(name string, options *v1.DeleteOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("revisions").
		Name(name).
		Body(options).
		Do().
		Error()
}
Delete takes name of the revision and deletes it. Returns an error if one occurs.
package v1alpha1
import (
	v1alpha1 "github.com/knative/serving/pkg/apis/serving/v1alpha1"
	scheme "github.com/knative/serving/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 RevisionsGetter interface {
	Revisions(namespace string) RevisionInterface
}
type RevisionInterface interface {
	Create(*v1alpha1.Revision) (*v1alpha1.Revision, error)
	Update(*v1alpha1.Revision) (*v1alpha1.Revision, error)
	UpdateStatus(*v1alpha1.Revision) (*v1alpha1.Revision, error)
	Delete(name string, options *v1.DeleteOptions) error
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	Get(name string, options v1.GetOptions) (*v1alpha1.Revision, error)
	List(opts v1.ListOptions) (*v1alpha1.RevisionList, error)
	Watch(opts v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Revision, err error)
	RevisionExpansion
}
type revisions struct {
	client rest.Interface
	ns     string
}
func newRevisions(c *ServingV1alpha1Client, namespace string) *revisions {
	return &revisions{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *revisions) Get(name string, options v1.GetOptions) (result *v1alpha1.Revision, err error) {
	result = &v1alpha1.Revision{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("revisions").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *revisions) List(opts v1.ListOptions) (result *v1alpha1.RevisionList, err error) {
	result = &v1alpha1.RevisionList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("revisions").
		VersionedParams(&opts, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *revisions) Watch(opts v1.ListOptions) (watch.Interface, error) {
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("revisions").
		VersionedParams(&opts, scheme.ParameterCodec).
		Watch()
}
func (c *revisions) Create(revision *v1alpha1.Revision) (result *v1alpha1.Revision, err error) {
	result = &v1alpha1.Revision{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("revisions").
		Body(revision).
		Do().
		Into(result)
	return
}
func (c *revisions) Update(revision *v1alpha1.Revision) (result *v1alpha1.Revision, err error) {
	result = &v1alpha1.Revision{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("revisions").
		Name(revision.Name).
		Body(revision).
		Do().
		Into(result)
	return
}
func (c *revisions) UpdateStatus(revision *v1alpha1.Revision) (result *v1alpha1.Revision, err error) {
	result = &v1alpha1.Revision{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("revisions").
		Name(revision.Name).
		SubResource("status").
		Body(revision).
		Do().
		Into(result)
	return
}