/// <summary>
 /// Lists the metric namespaces for the resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceUri'>
 /// The identifier of the resource.
 /// </param>
 /// <param name='startTime'>
 /// The ISO 8601 conform Date start time from which to query for metric
 /// namespaces.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <MetricNamespace> > ListAsync(this IMetricNamespacesOperations operations, string resourceUri, string startTime = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceUri, startTime, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists the metric namespaces for the resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceUri'>
 /// The identifier of the resource.
 /// </param>
 /// <param name='startTime'>
 /// The ISO 8601 conform Date start time from which to query for metric
 /// namespaces.
 /// </param>
 public static IEnumerable <MetricNamespace> List(this IMetricNamespacesOperations operations, string resourceUri, string startTime = default(string))
 {
     return(operations.ListAsync(resourceUri, startTime).GetAwaiter().GetResult());
 }