Beispiel #1
0
 /**
  * Lists remote access vpns
  *
  * @param ListRemoteAccessData|array   $filter List remote access request data object
  * @param PaginationType               $pagination  Pagination
  * @return RemoteAccessResponseList|null
  */
 public function describe($filter = null, PaginationType $pagination = null)
 {
     if ($filter !== null && !$filter instanceof ListRemoteAccessData) {
         $filter = ListRemoteAccessData::initArray($filter);
     }
     return $this->getApiHandler()->listRemoteAccessVpns($filter, $pagination);
 }
Beispiel #2
0
 /**
  * Lists remote access vpns
  *
  * @param ListRemoteAccessData   $requestData List remote access request data object
  * @param PaginationType         $pagination  Pagination
  * @return RemoteAccessResponseList|null
  */
 public function listRemoteAccessVpns(ListRemoteAccessData $requestData = null, PaginationType $pagination = null)
 {
     $result = null;
     $args = array();
     if ($requestData !== null) {
         $args = $requestData->toArray();
     }
     if ($pagination !== null) {
         array_push($args, $pagination->toArray());
     }
     $response = $this->getClient()->call('listRemoteAccessVpns', $args);
     if ($response->hasError() === false) {
         $resultObject = $response->getResult();
         if (!empty($resultObject) && property_exists($resultObject, 'count') && $resultObject->count > 0) {
             $result = $this->_loadRemoteAccessList($resultObject->remoteaccessvpn);
         }
     }
     return $result;
 }