Ejemplo n.º 1
0
 /**
  * Delete Snapshot 
  * Deletes the snapshot identitied by snapshotId.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DeleteSnapshot.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteSnapshotRequest request
  * or Amazon_EC2_Model_DeleteSnapshotRequest object itself
  * @see Amazon_EC2_Model_DeleteSnapshot
  * @return Amazon_EC2_Model_DeleteSnapshotResponse Amazon_EC2_Model_DeleteSnapshotResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteSnapshot($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DeleteSnapshotRequest) {
         require_once 'Amazon/EC2/Model/DeleteSnapshotRequest.php';
         $request = new Amazon_EC2_Model_DeleteSnapshotRequest($request);
     }
     require_once 'Amazon/EC2/Model/DeleteSnapshotResponse.php';
     return Amazon_EC2_Model_DeleteSnapshotResponse::fromXML($this->_invoke($this->_convertDeleteSnapshot($request)));
 }
Ejemplo n.º 2
0
 /**
  * Delete Snapshot 
  * Deletes the snapshot identitied by snapshotId.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DeleteSnapshot.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteSnapshot request or Amazon_EC2_Model_DeleteSnapshot object itself
  * @see Amazon_EC2_Model_DeleteSnapshot
  * @return Amazon_EC2_Model_DeleteSnapshotResponse Amazon_EC2_Model_DeleteSnapshotResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteSnapshot($request)
 {
     require_once 'Amazon/EC2/Model/DeleteSnapshotResponse.php';
     return Amazon_EC2_Model_DeleteSnapshotResponse::fromXML($this->_invoke('DeleteSnapshot'));
 }