/// <summary>
 /// The credit summary by billingAccountId and billingProfileId for given start
 /// and end date.
 /// <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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CreditSummary> GetAsync(this ICreditSummaryByBillingProfileOperations operations, string billingAccountId, string billingProfileId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountId, billingProfileId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// The credit summary by billingAccountId and billingProfileId for given start
 /// and end date.
 /// <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>
 public static CreditSummary Get(this ICreditSummaryByBillingProfileOperations operations, string billingAccountId, string billingProfileId)
 {
     return(operations.GetAsync(billingAccountId, billingProfileId).GetAwaiter().GetResult());
 }