/// <summary> /// Delete the role assignment on this billing account /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='billingRoleAssignmentName'> /// role assignment id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BillingRoleAssignment> DeleteAsync(this IBillingAccountBillingRoleAssignmentOperations operations, string billingAccountName, string billingRoleAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteWithHttpMessagesAsync(billingAccountName, billingRoleAssignmentName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Delete the role assignment on this billing account /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='billingRoleAssignmentName'> /// role assignment id. /// </param> public static BillingRoleAssignment Delete(this IBillingAccountBillingRoleAssignmentOperations operations, string billingAccountName, string billingRoleAssignmentName) { return(operations.DeleteAsync(billingAccountName, billingRoleAssignmentName).GetAwaiter().GetResult()); }
/// <summary> /// The operation to add a role assignment to a billing account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> public static BillingRoleAssignmentListResult Add(this IBillingAccountBillingRoleAssignmentOperations operations, string billingAccountName) { return(operations.AddAsync(billingAccountName).GetAwaiter().GetResult()); }