Exemplo n.º 1
0
 /**
  * Detach Volume 
  * Detach a previously attached volume from a running instance.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DetachVolume.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DetachVolumeRequest request
  * or Amazon_EC2_Model_DetachVolumeRequest object itself
  * @see Amazon_EC2_Model_DetachVolume
  * @return Amazon_EC2_Model_DetachVolumeResponse Amazon_EC2_Model_DetachVolumeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function detachVolume($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DetachVolumeRequest) {
         require_once 'Amazon/EC2/Model/DetachVolumeRequest.php';
         $request = new Amazon_EC2_Model_DetachVolumeRequest($request);
     }
     require_once 'Amazon/EC2/Model/DetachVolumeResponse.php';
     return Amazon_EC2_Model_DetachVolumeResponse::fromXML($this->_invoke($this->_convertDetachVolume($request)));
 }
Exemplo n.º 2
0
 /**
  * Detach Volume 
  * Detach a previously attached volume from a running instance.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DetachVolume.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DetachVolume request or Amazon_EC2_Model_DetachVolume object itself
  * @see Amazon_EC2_Model_DetachVolume
  * @return Amazon_EC2_Model_DetachVolumeResponse Amazon_EC2_Model_DetachVolumeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function detachVolume($request)
 {
     require_once 'Amazon/EC2/Model/DetachVolumeResponse.php';
     return Amazon_EC2_Model_DetachVolumeResponse::fromXML($this->_invoke('DetachVolume'));
 }