/// <summary>
 /// Lists report records.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IReportsOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='aggregation'>
 /// Required. Report aggregation.
 /// </param>
 /// <param name='query'>
 /// Optional.
 /// </param>
 /// <param name='interval'>
 /// Optional. By time interval. This value is only applicable to ByTime
 /// aggregation. Interval must be multiple of 15 minutes and may not
 /// be zero. The value should be in ISO  8601 format
 /// (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be
 /// used to convert TimSpan to a valid interval string:
 /// XmlConvert.ToString(new TimeSpan(hours, minutes, secconds))
 /// </param>
 /// <returns>
 /// List Report records operation response details.
 /// </returns>
 public static Task <ReportListResponse> ListAsync(this IReportsOperations operations, string resourceGroupName, string serviceName, ReportsAggregation aggregation, QueryParameters query, string interval)
 {
     return(operations.ListAsync(resourceGroupName, serviceName, aggregation, query, interval, CancellationToken.None));
 }