/// <summary> /// Lists all billingPermissions for the caller has for a billing account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BillingPermissionsListResult> ListAsync(this IBillingAccountBillingPermissionsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all billingPermissions for the caller has for a billing account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> public static BillingPermissionsListResult List(this IBillingAccountBillingPermissionsOperations operations, string billingAccountName) { return(operations.ListAsync(billingAccountName).GetAwaiter().GetResult()); }