/**
  * Service Call: GetPermissions
  * @param GetPermissionsRequest $getPermissionsRequest
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return Types\Perm\GetPermissionsResponse
  * @throws APIException
  */
 public function GetPermissions($getPermissionsRequest, $apiCredential = NULL)
 {
     $ret = new GetPermissionsResponse();
     $resp = $this->call('Permissions', 'GetPermissions', $getPermissionsRequest, $apiCredential);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }
 /**
  * Service Call: GetPermissions
  * @param GetPermissionsRequest $getPermissionsRequest
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically
  * @return Types\Perm\GetPermissionsResponse
  * @throws APIException
  */
 public function GetPermissions($getPermissionsRequest, $apiCredential = NULL)
 {
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new GetPermissionsResponse();
     $resp = $this->call('Permissions', 'GetPermissions', $getPermissionsRequest, $apiContext, $handlers);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }