/// <summary> /// Gets the number of Compute Nodes in each state, grouped by Pool. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountListPoolNodeCountsOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PoolNodeCounts> > ListPoolNodeCountsAsync(this IAccountOperations operations, AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions = default(AccountListPoolNodeCountsOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListPoolNodeCountsWithHttpMessagesAsync(accountListPoolNodeCountsOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }