private function listEntitiesWithoutCps(PagerInterface $pager = null, array $query_params = [], string $key_provider = 'id'): array
    {
        $query_params = [
                'expand' => 'true',
            ] + $query_params;

        $uri = $this->getBaseEndpointUri()->withQuery(http_build_query($query_params));
        $response = $this->getClient()->get($uri);
        $responseArray = $this->responseToArray($response);
        // Ignore entity type key from response, ex.: apiProduct.
        $responseArray = reset($responseArray);

        $entities = $this->responseArrayToArrayOfEntities($responseArray, $key_provider);

        return $pager ? $this->simulateCpsPagination($pager, $entities, array_keys($entities)) : $entities;
    }
private function listEntitiesWithoutCps(PagerInterface $pager = null, array $query_params = [], string $key_provider = 'id'): array
    {
        $query_params = [
                'expand' => 'true',
            ] + $query_params;

        $uri = $this->getBaseEndpointUri()->withQuery(http_build_query($query_params));
        $response = $this->getClient()->get($uri);
        $responseArray = $this->responseToArray($response);
        // Ignore entity type key from response, ex.: apiProduct.
        $responseArray = reset($responseArray);

        $entities = $this->responseArrayToArrayOfEntities($responseArray, $key_provider);

        return $pager ? $this->simulateCpsPagination($pager, $entities, array_keys($entities)) : $entities;
    }
private function listEntitiesWithoutCps ( PagerInterface $ pager = null , array $ query_params = [ ] , string $ key_provider = 'id' ) : array { $ query_params = [ 'expand' => 'true' , ] + $ query_params ; $ uri = $ this -> getBaseEndpointUri ( ) -> withQuery ( http_build_query ( $ query_params ) ) ; $ response = $ this -> getClient ( ) -> get ( $ uri ) ; $ responseArray = $ this -> responseToArray ( $ response ) ; // Ignore entity type key from response, ex.: apiProduct. $ responseArray = reset ( $ responseArray ) ; $ entities = $ this -> responseArrayToArrayOfEntities ( $ responseArray , $ key_provider ) ; return $ pager ? $ this -> simulateCpsPagination ( $ pager , $ entities , array_keys ( $ entities ) ) : $ entities ; }
Simulates paginated entity listing on organization without CPS support.

For example, on on-prem installations.

@param \Apigee\Edge\Structure\PagerInterface|null $pager
Pager.
@param array $query_params
Additional query parameters.
@param string $key_provider
Getter method on the entity that should provide a unique array key.

@return \Apigee\Edge\Entity\EntityInterface[]
Array of entity objects.
Simulates paginated entity listing on organization without CPS support .