Beispiel #1
0
 /**
  * Creates a l2tp/ipsec remote access vpn
  *
  * @param CreateRemoteAccessData $requestData Remote access request data object
  * @return RemoteAccessResponseData
  */
 public function createRemoteAccessVpn(CreateRemoteAccessData $requestData)
 {
     $result = null;
     $response = $this->getClient()->call('createRemoteAccessVpn', $requestData->toArray());
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject)) {
             $result = $this->_loadRemoteAccessData($resultObject);
         }
     }
     return $result;
 }
Beispiel #2
0
 /**
  * Creates a l2tp/ipsec remote access vpn
  *
  * @param CreateRemoteAccessData|array $request Remote access request data object
  * @return RemoteAccessResponseData
  */
 public function create($request)
 {
     if ($request !== null && !$request instanceof CreateRemoteAccessData) {
         $request = CreateRemoteAccessData::initArray($request);
     }
     return $this->getApiHandler()->createRemoteAccessVpn($request);
 }