func (c *policyBindings) Delete(name string, options *meta_v1.DeleteOptions) error {
	return c.client.Delete().
		Namespace(c.ns).
		Resource("policybindings").
		Name(name).
		Body(options).
		Do().
		Error()
}
Delete takes name of the policyBinding and deletes it. Returns an error if one occurs.
package v1
import (
	v1 "github.com/openshift/api/authorization/v1"
	scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
	meta_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 PolicyBindingsGetter interface {
	PolicyBindings(namespace string) PolicyBindingInterface
}
type PolicyBindingInterface interface {
	Create(*v1.PolicyBinding) (*v1.PolicyBinding, error)
	Update(*v1.PolicyBinding) (*v1.PolicyBinding, error)
	Delete(name string, options *meta_v1.DeleteOptions) error
	DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error
	Get(name string, options meta_v1.GetOptions) (*v1.PolicyBinding, error)
	List(opts meta_v1.ListOptions) (*v1.PolicyBindingList, error)
	Watch(opts meta_v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.PolicyBinding, err error)
	PolicyBindingExpansion
}
type policyBindings struct {
	client rest.Interface
	ns     string
}
func newPolicyBindings(c *AuthorizationV1Client, namespace string) *policyBindings {
	return &policyBindings{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *policyBindings) Get(name string, options meta_v1.GetOptions) (result *v1.PolicyBinding, err error) {
	result = &v1.PolicyBinding{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("policybindings").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *policyBindings) List(opts meta_v1.ListOptions) (result *v1.PolicyBindingList, err error) {
	result = &v1.PolicyBindingList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("policybindings").
		VersionedParams(&opts, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}
func (c *policyBindings) Watch(opts meta_v1.ListOptions) (watch.Interface, error) {
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("policybindings").
		VersionedParams(&opts, scheme.ParameterCodec).
		Watch()
}
func (c *policyBindings) Create(policyBinding *v1.PolicyBinding) (result *v1.PolicyBinding, err error) {
	result = &v1.PolicyBinding{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("policybindings").
		Body(policyBinding).
		Do().
		Into(result)
	return
}
func (c *policyBindings) Update(policyBinding *v1.PolicyBinding) (result *v1.PolicyBinding, err error) {
	result = &v1.PolicyBinding{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("policybindings").
		Name(policyBinding.Name).
		Body(policyBinding).
		Do().
		Into(result)
	return
}