/// <summary>
 /// Update source control for user.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.WebSites.ISourceControlOperations.
 /// </param>
 /// <param name='name'>
 /// Required. The name of the source control (can be: GitHub,
 /// Bitbucket, CodePlex, Dropbox)
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Source Control
 /// operation.
 /// </param>
 /// <returns>
 /// The update source control operation response.
 /// </returns>
 public static Task <SourceControlUpdateResponse> UpdateAsync(this ISourceControlOperations operations, string name, SourceControlUpdateParameters parameters)
 {
     return(operations.UpdateAsync(name, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Update a source control.
 /// <see href="http://aka.ms/azureautomationsdk/sourcecontroloperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='sourceControlName'>
 /// The source control name.
 /// </param>
 /// <param name='parameters'>
 /// The parameters supplied to the update source control operation.
 /// </param>
 public static SourceControl Update(this ISourceControlOperations operations, string resourceGroupName, string automationAccountName, string sourceControlName, SourceControlUpdateParameters parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, automationAccountName, sourceControlName, parameters).GetAwaiter().GetResult());
 }