code: func (c *FakeNetworkPolicies) Update(networkPolicy *v1beta1.NetworkPolicy) (result *v1beta1.NetworkPolicy, err error) {
  	obj, err := c.Fake.
  		Invokes(testing.NewUpdateAction(networkpoliciesResource, c.ns, networkPolicy), &v1beta1.NetworkPolicy{})
  
  	if obj == nil {
  		return nil, err
  	}
  	return obj.(*v1beta1.NetworkPolicy), err
  }
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.