/// <summary>
 /// Cancel an existing run.
 /// </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>
 public static void Cancel(this IRunsOperations operations, string resourceGroupName, string registryName, string runId)
 {
     operations.CancelAsync(resourceGroupName, registryName, runId).GetAwaiter().GetResult();
 }