示例#1
0
文件: IsoApi.php 项目: mheydt/scalr
 /**
  * Extracts an ISO
  *
  * @param ExtractIsoData $requestData request data object
  * @return ExtractTemplateResponseData
  */
 public function extractIso(ExtractIsoData $requestData)
 {
     $result = null;
     $response = $this->getClient()->call('extractIso', $requestData->toArray());
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject)) {
             $result = $this->_loadExtractTemplateData($resultObject);
         }
     }
     return $result;
 }
示例#2
0
 /**
  * Extracts an ISO
  *
  * @param ExtractIsoData|array $request request data object
  * @return ExtractTemplateResponseData
  */
 public function extract($request)
 {
     if ($request !== null && !$request instanceof ExtractIsoData) {
         $request = ExtractIsoData::initArray($request);
     }
     return $this->getApiHandler()->extractIso($request);
 }