/// <summary> /// Lists all billing profiles for a user which that user has access to. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='expand'> /// May be used to expand the invoiceSections. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BillingProfileListResult> ListAsync(this IBillingProfilesByBillingAccountNameOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all billing profiles for a user which that user has access to. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='expand'> /// May be used to expand the invoiceSections. /// </param> public static BillingProfileListResult List(this IBillingProfilesByBillingAccountNameOperations operations, string billingAccountName, string expand = default(string)) { return(operations.ListAsync(billingAccountName, expand).GetAwaiter().GetResult()); }