code: func (c *FakeFoos) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Foo, err error) {
  	obj, err := c.Fake.
  		Invokes(testing.NewPatchSubresourceAction(foosResource, c.ns, name, pt, data, subresources...), &v1alpha1.Foo{})
  
  	if obj == nil {
  		return nil, err
  	}
  	return obj.(*v1alpha1.Foo), err
  }
docs: // Patch applies the patch and returns the patched foo.