/// <summary> /// The List operation lists the usage metrics for the /// resource.<br>**WARNING**: This operation will be *deprecated* in the /// next release. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceUri'> /// The identifier of the resource. /// </param> /// <param name='apiVersion'> /// Client Api Version. NOTE: This is not a client property, it must be /// explicit in the call and there is no default value. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <UsageMetricInner> > ListAsync(this IUsageMetricsOperations operations, string resourceUri, string apiVersion, ODataQuery <UsageMetricInner> odataQuery = default(ODataQuery <UsageMetricInner>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceUri, apiVersion, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// The List operation lists the usage metrics 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='apiVersion'> /// The client Api Version. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <System.Collections.Generic.IEnumerable <UsageMetric> > ListAsync(this IUsageMetricsOperations operations, string resourceUri, string apiVersion, Microsoft.Rest.Azure.OData.ODataQuery <UsageMetric> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery <UsageMetric>), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceUri, apiVersion, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }