/// <summary> /// Gets the metric definitions for the specified volume. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='volumeContainerName'> /// The volume container name. /// </param> /// <param name='volumeName'> /// The volume name. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static IEnumerable <MetricDefinition> ListMetricDefinition(this IVolumesOperations operations, string deviceName, string volumeContainerName, string volumeName, string resourceGroupName, string managerName) { return(operations.ListMetricDefinitionAsync(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName).GetAwaiter().GetResult()); }