/// <summary>
 /// Patch the run properties.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to which the container registry belongs.
 /// </param>
 /// <param name='registryName'>
 /// The name of the container registry.
 /// </param>
 /// <param name='runId'>
 /// The run ID.
 /// </param>
 /// <param name='isArchiveEnabled'>
 /// The value that indicates whether archiving is enabled or not.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <Run> UpdateAsync(this IRunsOperations operations, string resourceGroupName, string registryName, string runId, bool?isArchiveEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, runId, isArchiveEnabled, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }