/// <summary>
 /// Create or update account credential assignment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// </param>
 /// <param name='account'>
 /// Name of CEF account
 /// </param>
 /// <param name='credentialAssignment'>
 /// Account credential assignment
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <EmailCredentialAssignment> > CreateOrUpdateCredentialAssignmentAsync(this IEmailOperations operations, string apiVersion, string account, EmailCredentialAssignment credentialAssignment, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateCredentialAssignmentWithHttpMessagesAsync(apiVersion, account, credentialAssignment, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create or update account credential assignment
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// </param>
 /// <param name='account'>
 /// Name of CEF account
 /// </param>
 /// <param name='credentialAssignment'>
 /// Account credential assignment
 /// </param>
 public static IList <EmailCredentialAssignment> CreateOrUpdateCredentialAssignment(this IEmailOperations operations, string apiVersion, string account, EmailCredentialAssignment credentialAssignment)
 {
     return(operations.CreateOrUpdateCredentialAssignmentAsync(apiVersion, account, credentialAssignment).GetAwaiter().GetResult());
 }