def prepare_request(next_link=None):
    header_parameters = {}
    header_parameters['Accept'] = self._serialize.header('accept', accept, 'str')
    if (not next_link):
        url = self.list.metadata['url']
        path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str')}
        url = self._client.format_url(url, **path_format_arguments)
        query_parameters = {}
        query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
        request = self._client.get(url, query_parameters, header_parameters)
    else:
        url = next_link
        query_parameters = {}
        request = self._client.get(url, query_parameters, header_parameters)
    return request
def prepare_request(next_link=None):
    header_parameters = {}
    header_parameters['Accept'] = self._serialize.header('accept', accept, 'str')
    if (not next_link):
        url = self.list.metadata['url']
        path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str')}
        url = self._client.format_url(url, **path_format_arguments)
        query_parameters = {}
        query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
        request = self._client.get(url, query_parameters, header_parameters)
    else:
        url = next_link
        query_parameters = {}
        request = self._client.get(url, query_parameters, header_parameters)
    return request