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