/// <summary>
 /// Gets a workflow run action.
 /// </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='actionName'>
 /// The workflow action name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WorkflowRunAction> GetAsync(this IWorkflowRunActionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workflowName, runName, actionName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets a list of workflow run actions.
 /// </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='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <WorkflowRunAction> > ListAsync(this IWorkflowRunActionsOperations operations, string resourceGroupName, string workflowName, string runName, ODataQuery <WorkflowRunActionFilter> odataQuery = default(ODataQuery <WorkflowRunActionFilter>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workflowName, runName, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets a list of workflow run actions.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <WorkflowRunAction> > ListNextAsync(this IWorkflowRunActionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets a workflow run action.
 /// </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='actionName'>
 /// The workflow action name.
 /// </param>
 public static WorkflowRunAction Get(this IWorkflowRunActionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName)
 {
     return(operations.GetAsync(resourceGroupName, workflowName, runName, actionName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a list of workflow run actions.
 /// </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='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <WorkflowRunAction> List(this IWorkflowRunActionsOperations operations, string resourceGroupName, string workflowName, string runName, ODataQuery <WorkflowRunActionFilter> odataQuery = default(ODataQuery <WorkflowRunActionFilter>))
 {
     return(operations.ListAsync(resourceGroupName, workflowName, runName, odataQuery).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a list of workflow run actions.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <WorkflowRunAction> ListNext(this IWorkflowRunActionsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists a workflow run expression trace.
 /// </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='actionName'>
 /// The workflow action name.
 /// </param>
 public static IEnumerable <ExpressionRoot> ListExpressionTraces(this IWorkflowRunActionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName)
 {
     return(operations.ListExpressionTracesAsync(resourceGroupName, workflowName, runName, actionName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a workflow run action.
 /// </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='actionName'>
 /// The workflow action name.
 /// </param>
 public static WorkflowRunAction Get(this IWorkflowRunActionsOperations operations, string resourceGroupName, string workflowName, string runName, string actionName)
 {
     return(Task.Factory.StartNew(s => ((IWorkflowRunActionsOperations)s).GetAsync(resourceGroupName, workflowName, runName, actionName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a list of workflow run actions.
 /// </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='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <WorkflowRunAction> List(this IWorkflowRunActionsOperations operations, string resourceGroupName, string workflowName, string runName, ODataQuery <WorkflowRunActionFilter> odataQuery = default(ODataQuery <WorkflowRunActionFilter>))
 {
     return(Task.Factory.StartNew(s => ((IWorkflowRunActionsOperations)s).ListAsync(resourceGroupName, workflowName, runName, odataQuery), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a list of workflow run actions.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <WorkflowRunAction> ListNext(this IWorkflowRunActionsOperations operations, string nextPageLink)
 {
     return(Task.Factory.StartNew(s => ((IWorkflowRunActionsOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }