code: func (c *FakeMiddlewares) Create(middleware *v1alpha1.Middleware) (result *v1alpha1.Middleware, err error) {
  	obj, err := c.Fake.
  		Invokes(testing.NewCreateAction(middlewaresResource, c.ns, middleware), &v1alpha1.Middleware{})
  
  	if obj == nil {
  		return nil, err
  	}
  	return obj.(*v1alpha1.Middleware), err
  }
docs: // Create takes the representation of a middleware and creates it.  Returns the server's representation of the middleware, and an error, if there is any.