private function listEntityIdsWithCps(PagerInterface $pager = null, array $query_params = []): array
    {
        $query_params = [
                'expand' => 'false',
            ] + $query_params;
        if ($pager) {
            return $this->getResultsInRange($pager, $query_params);
        } else {
            $ids = $this->getResultsInRange($this->createPager(), $query_params);
            if (empty($ids)) {
                return [];
            }
            $lastId = end($ids);
            do {
                $tmp = $this->getResultsInRange($this->createPager(0, $lastId), $query_params);
                // Remove the first item from the list because it is the same
                // as the current last item of $ids.
                // Apigee Edge response always starts with the requested entity
                // id (startKey).
                array_shift($tmp);

                if (count($tmp) > 0) {
                    $ids = array_merge($ids, $tmp);
                    $lastId = end($tmp);
                } else {
                    $lastId = false;
                }
            } while ($lastId);

            return $ids;
        }
    }
private function listEntityIdsWithCps(PagerInterface $pager = null, array $query_params = []): array
    {
        $query_params = [
                'expand' => 'false',
            ] + $query_params;
        if ($pager) {
            return $this->getResultsInRange($pager, $query_params);
        } else {
            $ids = $this->getResultsInRange($this->createPager(), $query_params);
            if (empty($ids)) {
                return [];
            }
            $lastId = end($ids);
            do {
                $tmp = $this->getResultsInRange($this->createPager(0, $lastId), $query_params);
                // Remove the first item from the list because it is the same
                // as the current last item of $ids.
                // Apigee Edge response always starts with the requested entity
                // id (startKey).
                array_shift($tmp);

                if (count($tmp) > 0) {
                    $ids = array_merge($ids, $tmp);
                    $lastId = end($tmp);
                } else {
                    $lastId = false;
                }
            } while ($lastId);

            return $ids;
        }
    }
private function listEntityIdsWithCps ( PagerInterface $ pager = null , array $ query_params = [ ] ) : array { $ query_params = [ 'expand' => 'false' , ] + $ query_params ; if ( $ pager ) { return $ this -> getResultsInRange ( $ pager , $ query_params ) ; } else { $ ids = $ this -> getResultsInRange ( $ this -> createPager ( ) , $ query_params ) ; if ( empty ( $ ids ) ) { return [ ] ; } $ lastId = end ( $ ids ) ; do { $ tmp = $ this -> getResultsInRange ( $ this -> createPager ( 0 , $ lastId ) , $ query_params ) ; // Remove the first item from the list because it is the same // as the current last item of $ids. // Apigee Edge response always starts with the requested entity // id (startKey). array_shift ( $ tmp ) ; if ( count ( $ tmp ) > 0 ) { $ ids = array_merge ( $ ids , $ tmp ) ; $ lastId = end ( $ tmp ) ; } else { $ lastId = false ; } } while ( $ lastId ) ; return $ ids ; } }
Real paginated entity id listing on organization with CPS support.

@param \Apigee\Edge\Structure\PagerInterface|null $pager
Pager.
@param array $query_params
Additional query parameters.

@return string[]
Array of entity ids.
Real paginated entity id listing on organization with CPS support .