def METHOD_NAME(self, **kwargs: Any) -> _models.AvailableRuntimeVersions:
    """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider.
    :keyword callable cls: A custom type or function that will be passed the direct response
    :return: AvailableRuntimeVersions or the result of cls(response)
    :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AvailableRuntimeVersions
    :raises ~azure.core.exceptions.HttpResponseError:
    """
    error_map = {
        401: ClientAuthenticationError,
        404: ResourceNotFoundError,
        409: ResourceExistsError,
        304: ResourceNotModifiedError,
    }
    error_map.update(kwargs.pop("error_map", {}) or {})
    _headers = kwargs.pop("headers", {}) or {}
    _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
    api_version: Literal["2022-09-01-preview"] = kwargs.pop(
        "api_version", _params.pop("api-version", "2022-09-01-preview")
    )
    cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None)
    request = build_list_runtime_versions_request(
        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)
    _stream = False
    pipeline_response: PipelineResponse = self._client._pipeline.run(  # pylint: disable=protected-access
        request, stream=_stream, **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)
        raise HttpResponseError(response=response, error_format=ARMErrorFormat)
    deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized