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