Exemplo n.º 1
0
 /**
  * Delete Volume 
  * Deletes a  previously created volume. Once successfully deleted, a new volume  can be created with the same name.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DeleteVolume.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVolumeRequest request
  * or Amazon_EC2_Model_DeleteVolumeRequest object itself
  * @see Amazon_EC2_Model_DeleteVolume
  * @return Amazon_EC2_Model_DeleteVolumeResponse Amazon_EC2_Model_DeleteVolumeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVolume($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DeleteVolumeRequest) {
         require_once 'Amazon/EC2/Model/DeleteVolumeRequest.php';
         $request = new Amazon_EC2_Model_DeleteVolumeRequest($request);
     }
     require_once 'Amazon/EC2/Model/DeleteVolumeResponse.php';
     return Amazon_EC2_Model_DeleteVolumeResponse::fromXML($this->_invoke($this->_convertDeleteVolume($request)));
 }
Exemplo n.º 2
0
 /**
  * Delete Volume 
  * Deletes a  previously created volume. Once successfully deleted, a new volume  can be created with the same name.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DeleteVolume.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVolume request or Amazon_EC2_Model_DeleteVolume object itself
  * @see Amazon_EC2_Model_DeleteVolume
  * @return Amazon_EC2_Model_DeleteVolumeResponse Amazon_EC2_Model_DeleteVolumeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVolume($request)
 {
     require_once 'Amazon/EC2/Model/DeleteVolumeResponse.php';
     return Amazon_EC2_Model_DeleteVolumeResponse::fromXML($this->_invoke('DeleteVolume'));
 }