/// <summary>
 /// Lists products by billing account name.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='billingAccountName'>
 /// billing Account Id.
 /// </param>
 /// <param name='filter'>
 /// May be used to filter by product type. The filter supports 'eq', 'lt',
 /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or
 /// 'not'. Tag filter is a key value pair string where key and value is
 /// separated by a colon (:).
 /// </param>
 public static IPage <ProductSummary> ListByBillingAccountName(this IProductsOperations operations, string billingAccountName, string filter = default(string))
 {
     return(operations.ListByBillingAccountNameAsync(billingAccountName, filter).GetAwaiter().GetResult());
 }