def prepare_request(next_link=None):
    if (not next_link):
        request = build_deployments_list_at_subscription_scope_request(subscription_id=self._config.subscription_id, api_version=api_version, filter=filter, top=top, template_url=self.list_at_subscription_scope.metadata['url'])
        request = _convert_request(request)
        request.url = self._client.format_url(request.url)
    else:
        request = build_deployments_list_at_subscription_scope_request(subscription_id=self._config.subscription_id, template_url=next_link)
        request = _convert_request(request)
        request.url = self._client.format_url(request.url)
        request.method = 'GET'
    return request
def prepare_request(next_link=None):
    if (not next_link):
        request = build_deployments_list_at_subscription_scope_request(subscription_id=self._config.subscription_id, api_version=api_version, filter=filter, top=top, template_url=self.list_at_subscription_scope.metadata['url'])
        request = _convert_request(request)
        request.url = self._client.format_url(request.url)
    else:
        request = build_deployments_list_at_subscription_scope_request(subscription_id=self._config.subscription_id, template_url=next_link)
        request = _convert_request(request)
        request.url = self._client.format_url(request.url)
        request.method = 'GET'
    return request