/// <summary> /// Lists the products for a customer. These don't include products billed /// based on usage.The operation is supported only for billing accounts with /// agreement type Microsoft Partner Agreement. /// <see href="https://docs.microsoft.com/en-us/rest/api/billing/" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// The ID that uniquely identifies a billing account. /// </param> /// <param name='customerName'> /// The ID that uniquely identifies a customer. /// </param> public static IPage <Product> ListByCustomer(this IProductsOperations operations, string billingAccountName, string customerName) { return(operations.ListByCustomerAsync(billingAccountName, customerName).GetAwaiter().GetResult()); }
/// <summary> /// Lists products by customer id. /// <see href="https://docs.microsoft.com/en-us/rest/api/billing/" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='customerName'> /// Customer name. /// </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 ProductsListResult ListByCustomer(this IProductsOperations operations, string billingAccountName, string customerName, string filter = default(string)) { return(operations.ListByCustomerAsync(billingAccountName, customerName, filter).GetAwaiter().GetResult()); }