/// <summary> /// Gets a list of usage metrics for a workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to get. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> public static IEnumerable <UsageMetric> ListUsages(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName) { return(operations.ListUsagesAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult()); }