code: func (c *networkPolicies) Update(networkPolicy *v1beta1.NetworkPolicy) (result *v1beta1.NetworkPolicy, err error) {
  	result = &v1beta1.NetworkPolicy{}
  	err = c.client.Put().
  		Namespace(c.ns).
  		Resource("networkpolicies").
  		Name(networkPolicy.Name).
  		Body(networkPolicy).
  		Do().
  		Into(result)
  	return
  }
docs: // Update takes the representation of a networkPolicy and updates it. Returns the server's representation of the networkPolicy, and an error, if there is any.