/** * Removes vpn user * * @param RemoveVpnUserData $requestData Remove request data object * @return ResponseDeleteData */ public function removeVpnUser(RemoveVpnUserData $requestData) { $result = null; $response = $this->getClient()->call('removeVpnUser', $requestData->toArray()); if ($response->hasError() === false) { $resultObject = $response->getResult(); if (!empty($resultObject)) { $result = $this->_loadUpdateData($resultObject); } } return $result; }
/** * Removes vpn user * * @param RemoveVpnUserData|array $request Remove request data object * @return ResponseDeleteData */ public function removeUser($request) { if ($request !== null && !$request instanceof RemoveVpnUserData) { $request = RemoveVpnUserData::initArray($request); } return $this->getApiHandler()->removeVpnUser($request); }