/// <summary> /// Get the role assignment for the caller on the invoice Section /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='invoiceSectionName'> /// InvoiceSection Id. /// </param> /// <param name='billingRoleAssignmentName'> /// role assignment id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BillingRoleAssignment> GetAsync(this IInvoiceSectionBillingRoleAssignmentOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, invoiceSectionName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Delete the role assignment on this invoice Section /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='invoiceSectionName'> /// InvoiceSection Id. /// </param> /// <param name='billingRoleAssignmentName'> /// role assignment id. /// </param> public static BillingRoleAssignment Delete(this IInvoiceSectionBillingRoleAssignmentOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleAssignmentName) { return(operations.DeleteAsync(billingAccountName, invoiceSectionName, billingRoleAssignmentName).GetAwaiter().GetResult()); }