/// <summary>
 /// Lists the charges by billing profile id for given start and end date. Start
 /// and end date are used to determine the billing period. For current month,
 /// the data will be provided from month to date. If there are no chages for a
 /// month then that month will show all zeroes.
 /// <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='billingAccountId'>
 /// BillingAccount ID
 /// </param>
 /// <param name='billingProfileId'>
 /// Billing Profile Id.
 /// </param>
 /// <param name='startDate'>
 /// Start date
 /// </param>
 /// <param name='endDate'>
 /// End date
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ChargesListByBillingProfile> ListAsync(this IChargesByBillingProfileOperations operations, string billingAccountId, string billingProfileId, string startDate, string endDate, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountId, billingProfileId, startDate, endDate, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists the charges by billing profile id for given start and end date. Start
 /// and end date are used to determine the billing period. For current month,
 /// the data will be provided from month to date. If there are no chages for a
 /// month then that month will show all zeroes.
 /// <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='billingAccountId'>
 /// BillingAccount ID
 /// </param>
 /// <param name='billingProfileId'>
 /// Billing Profile Id.
 /// </param>
 /// <param name='startDate'>
 /// Start date
 /// </param>
 /// <param name='endDate'>
 /// End date
 /// </param>
 public static ChargesListByBillingProfile List(this IChargesByBillingProfileOperations operations, string billingAccountId, string billingProfileId, string startDate, string endDate)
 {
     return(operations.ListAsync(billingAccountId, billingProfileId, startDate, endDate).GetAwaiter().GetResult());
 }