def METHOD_NAME(
    self,
    location_name,  # type: str
    **kwargs  # type: Any
):
    # type: (...) -> Iterable[_models.OfferingsListResult]
    """Returns the list of all provider offerings available for the given location.
    :param location_name: Location.
    :type location_name: str
    :keyword callable cls: A custom type or function that will be passed the direct response
    :return: An iterator like instance of either OfferingsListResult or the result of cls(response)
    :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.quantum.models.OfferingsListResult]
    :raises: ~azure.core.exceptions.HttpResponseError
    """
    _headers = kwargs.pop("headers", {}) or {}
    _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
    api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-01-10-preview"))  # type: str
    cls = kwargs.pop('cls', None)  # type: ClsType[_models.OfferingsListResult]
    error_map = {
        401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
    }
    error_map.update(kwargs.pop('error_map', {}) or {})
    def prepare_request(next_link=None):
        if not next_link:
            request = build_list_request(
                subscription_id=self._config.subscription_id,
                location_name=location_name,
                api_version=api_version,
                template_url=self.METHOD_NAME.metadata['url'],
                headers=_headers,
                params=_params,
            )
            request = _convert_request(request)
            request.url = self._client.format_url(request.url)  # type: ignore
        else:
            request = build_list_request(
                subscription_id=self._config.subscription_id,
                location_name=location_name,
                api_version=api_version,
                template_url=next_link,
                headers=_headers,
                params=_params,
            )
            request = _convert_request(request)
            request.url = self._client.format_url(request.url)  # type: ignore
            request.method = "GET"
        return request
    def extract_data(pipeline_response):
        deserialized = self._deserialize("OfferingsListResult", pipeline_response)
        list_of_elem = deserialized.value
        if cls:
            list_of_elem = cls(list_of_elem)
        return deserialized.next_link or None, iter(list_of_elem)
    def get_next(next_link=None):
        request = prepare_request(next_link)
        pipeline_response = self._client._pipeline.run(  # pylint: disable=protected-access
            request,
            stream=False,
            **kwargs
        )
        response = pipeline_response.http_response
        if response.status_code not in [200]:
            map_error(status_code=response.status_code, response=response, error_map=error_map)
            error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
            raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
        return pipeline_response
    return ItemPaged(
        get_next, extract_data
    )