Пример #1
0
 /**
  * Create Volume 
  * Initializes an empty volume of a given size
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-CreateVolume.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVolumeRequest request
  * or Amazon_EC2_Model_CreateVolumeRequest object itself
  * @see Amazon_EC2_Model_CreateVolume
  * @return Amazon_EC2_Model_CreateVolumeResponse Amazon_EC2_Model_CreateVolumeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createVolume($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateVolumeRequest) {
         require_once 'Amazon/EC2/Model/CreateVolumeRequest.php';
         $request = new Amazon_EC2_Model_CreateVolumeRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateVolumeResponse.php';
     return Amazon_EC2_Model_CreateVolumeResponse::fromXML($this->_invoke($this->_convertCreateVolume($request)));
 }
Пример #2
0
 /**
  * Create Volume 
  * Initializes an empty volume of a given size
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-CreateVolume.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVolume request or Amazon_EC2_Model_CreateVolume object itself
  * @see Amazon_EC2_Model_CreateVolume
  * @return Amazon_EC2_Model_CreateVolumeResponse Amazon_EC2_Model_CreateVolumeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createVolume($request)
 {
     require_once 'Amazon/EC2/Model/CreateVolumeResponse.php';
     return Amazon_EC2_Model_CreateVolumeResponse::fromXML($this->_invoke('CreateVolume'));
 }