/// <summary> /// Lists all billing accounts with create invoiceSection permission for a /// user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// May be used to expand the invoiceSections and billingProfiles. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BillingAccountListResult> ListAsync(this IBillingAccountsWithCreateInvoiceSectionPermissionOperations operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all billing accounts with create invoiceSection permission for a /// user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// May be used to expand the invoiceSections and billingProfiles. /// </param> public static BillingAccountListResult List(this IBillingAccountsWithCreateInvoiceSectionPermissionOperations operations, string expand = default(string)) { return(operations.ListAsync(expand).GetAwaiter().GetResult()); }