def METHOD_NAME(next_link=None):
    if not next_link:
        request = build_list_by_elastic_pool_request(
            resource_group_name=resource_group_name,
            server_name=server_name,
            elastic_pool_name=elastic_pool_name,
            subscription_id=self._config.subscription_id,
            api_version=api_version,
            template_url=self.list_by_elastic_pool.metadata["url"],
            headers=_headers,
            params=_params,
        )
        request = _convert_request(request)
        request.url = self._client.format_url(request.url)
    else:
        request = HttpRequest("GET", next_link)
        request = _convert_request(request)
        request.url = self._client.format_url(request.url)
        request.method = "GET"
    return request