def METHOD_NAME(
    self,
    **kwargs  # type: Any
):
    # type: (...) -> "_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.v2019_05_01_preview.models.AvailableRuntimeVersions
    :raises: ~azure.core.exceptions.HttpResponseError
    """
    cls = kwargs.pop('cls', None)  # type: ClsType["_models.AvailableRuntimeVersions"]
    error_map = {
        401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
    }
    error_map.update(kwargs.pop('error_map', {}))
    api_version = "2019-05-01-preview"
    accept = "application/json"
    # Construct URL
    url = self.METHOD_NAME.metadata['url']  # type: ignore
    # Construct parameters
    query_parameters = {}  # type: Dict[str, Any]
    query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
    # Construct headers
    header_parameters = {}  # type: Dict[str, Any]
    header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
    request = self._client.get(url, query_parameters, header_parameters)
    pipeline_response = self._client._pipeline.run(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)
        raise HttpResponseError(response=response, error_format=ARMErrorFormat)
    deserialized = self._deserialize('AvailableRuntimeVersions', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized