code: func (c *FakeFoos) Update(foo *v1alpha1.Foo) (result *v1alpha1.Foo, err error) {
  	obj, err := c.Fake.
  		Invokes(testing.NewUpdateAction(foosResource, c.ns, foo), &v1alpha1.Foo{})
  
  	if obj == nil {
  		return nil, err
  	}
  	return obj.(*v1alpha1.Foo), err
  }
docs: // Update takes the representation of a foo and updates it. Returns the server's representation of the foo, and an error, if there is any.