Exemplo n.º 1
0
 /**
  * Enables static nat for given ip address
  *
  * @param EnableStaticNatData $requestData Enable Nat request data object
  * @return ResponseDeleteData
  */
 public function enableStaticNat(EnableStaticNatData $requestData)
 {
     $result = null;
     $response = $this->getClient()->call('enableStaticNat', $requestData->toArray());
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject)) {
             $result = $this->_loadUpdateData($resultObject);
         }
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * Enables static nat for given ip address
  *
  * @param EnableStaticNatData|array $request Enable Nat request data object
  * @return ResponseDeleteData
  */
 public function enableStaticNat($request)
 {
     if ($request !== null && !$request instanceof EnableStaticNatData) {
         $request = EnableStaticNatData::initArray($request);
     }
     return $this->getApiHandler()->enableStaticNat($request);
 }