code: func (a *Client) UpdateVM(params *UpdateVMParams) (*UpdateVMOK, error) {
  	// TODO: Validate the params before sending
  	if params == nil {
  		params = NewUpdateVMParams()
  	}
  
  	result, err := a.transport.Submit(&runtime.ClientOperation{
  		ID:                 "updateVm",
  		Method:             "PUT",
  		PathPattern:        "/vms",
  		ProducesMediaTypes: []string{"application/json"},
  		ConsumesMediaTypes: []string{"application/json"},
  		Schemes:            []string{"http"},
  		Params:             params,
  		Reader:             &UpdateVMReader{formats: a.formats},
  		Context:            params.Context,
  	})
  	if err != nil {
  		return nil, err
  	}
  	return result.(*UpdateVMOK), nil
  
  }
docs: /*
  UpdateVM updates an existing vm
  */