Пример #1
0
 /**
  * Registers an existing ISO into the Cloud.com Cloud.
  *
  * @param RegisterIsoData $requestData Register Iso request data
  * @return TemplateResponseData
  */
 public function registerIso(RegisterIsoData $requestData)
 {
     $result = null;
     $response = $this->getClient()->call('registerIso', $requestData->toArray());
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject)) {
             $result = $this->_loadTemplateResponseData($resultObject);
         }
     }
     return $result;
 }
Пример #2
0
 /**
  * Registers an existing ISO into the Cloud.com Cloud.
  *
  * @param RegisterIsoData|array $request Register Iso request data
  * @return TemplateResponseData
  */
 public function register($request)
 {
     if ($request !== null && !$request instanceof RegisterIsoData) {
         $request = RegisterIsoData::initArray($request);
     }
     return $this->getApiHandler()->registerIso($request);
 }