/// <summary>
 /// Gets an operation for a run.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='workflowName'>
 /// The workflow name.
 /// </param>
 /// <param name='runName'>
 /// The workflow run name.
 /// </param>
 /// <param name='operationId'>
 /// The workflow operation id.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WorkflowRun> GetAsync(this IWorkflowRunOperations operations, string resourceGroupName, string workflowName, string runName, string operationId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workflowName, runName, operationId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets an operation for a run.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='workflowName'>
 /// The workflow name.
 /// </param>
 /// <param name='runName'>
 /// The workflow run name.
 /// </param>
 /// <param name='operationId'>
 /// The workflow operation id.
 /// </param>
 public static WorkflowRun Get(this IWorkflowRunOperations operations, string resourceGroupName, string workflowName, string runName, string operationId)
 {
     return(operations.GetAsync(resourceGroupName, workflowName, runName, operationId).GetAwaiter().GetResult());
 }