Пример #1
0
 /**
  * Reset Image Attribute 
  * The ResetImageAttribute operation resets an attribute of an AMI to its default
  * value.
  * Note:
  * The productCodes attribute cannot be reset.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-ResetImageAttribute.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_ResetImageAttributeRequest request
  * or Amazon_EC2_Model_ResetImageAttributeRequest object itself
  * @see Amazon_EC2_Model_ResetImageAttribute
  * @return Amazon_EC2_Model_ResetImageAttributeResponse Amazon_EC2_Model_ResetImageAttributeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function resetImageAttribute($request)
 {
     if (!$request instanceof Amazon_EC2_Model_ResetImageAttributeRequest) {
         require_once 'Amazon/EC2/Model/ResetImageAttributeRequest.php';
         $request = new Amazon_EC2_Model_ResetImageAttributeRequest($request);
     }
     require_once 'Amazon/EC2/Model/ResetImageAttributeResponse.php';
     return Amazon_EC2_Model_ResetImageAttributeResponse::fromXML($this->_invoke($this->_convertResetImageAttribute($request)));
 }
Пример #2
0
 /**
  * Reset Image Attribute 
  * The ResetImageAttribute operation resets an attribute of an AMI to its default
  * value.
  * Note:
  * The productCodes attribute cannot be reset.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-ResetImageAttribute.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_ResetImageAttribute request or Amazon_EC2_Model_ResetImageAttribute object itself
  * @see Amazon_EC2_Model_ResetImageAttribute
  * @return Amazon_EC2_Model_ResetImageAttributeResponse Amazon_EC2_Model_ResetImageAttributeResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function resetImageAttribute($request)
 {
     require_once 'Amazon/EC2/Model/ResetImageAttributeResponse.php';
     return Amazon_EC2_Model_ResetImageAttributeResponse::fromXML($this->_invoke('ResetImageAttribute'));
 }