/// <summary> /// Gets a workflow version. /// </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='versionId'> /// The workflow versionId. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <WorkflowVersionInner> GetAsync(this IWorkflowVersionsOperations operations, string resourceGroupName, string workflowName, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workflowName, versionId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of workflow versions. /// </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='top'> /// The number of items to be included in the result. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <WorkflowVersion> > ListAsync(this IWorkflowVersionsOperations operations, string resourceGroupName, string workflowName, int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workflowName, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of workflow versions. /// </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 <WorkflowVersionInner> > ListNextAsync(this IWorkflowVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the callback URL for a trigger of a workflow version. /// </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='versionId'> /// The workflow versionId. /// </param> /// <param name='triggerName'> /// The workflow trigger name. /// </param> /// <param name='parameters'> /// The callback URL parameters. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <WorkflowTriggerCallbackUrlInner> ListCallbackUrlAsync(this IWorkflowVersionsOperations operations, string resourceGroupName, string workflowName, string versionId, string triggerName, GetCallbackUrlParametersInner parameters = default(GetCallbackUrlParametersInner), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListCallbackUrlWithHttpMessagesAsync(resourceGroupName, workflowName, versionId, triggerName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a workflow version. /// </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='versionId'> /// The workflow versionId. /// </param> public static WorkflowVersion Get(this IWorkflowVersionsOperations operations, string resourceGroupName, string workflowName, string versionId) { return(Task.Factory.StartNew(s => ((IWorkflowVersionsOperations)s).GetAsync(resourceGroupName, workflowName, versionId), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow versions. /// </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='top'> /// The number of items to be included in the result. /// </param> public static IPage <WorkflowVersion> List(this IWorkflowVersionsOperations operations, string resourceGroupName, string workflowName, int?top = default(int?)) { return(Task.Factory.StartNew(s => ((IWorkflowVersionsOperations)s).ListAsync(resourceGroupName, workflowName, top), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow versions. /// </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 <WorkflowVersion> ListNext(this IWorkflowVersionsOperations operations, string nextPageLink) { return(Task.Factory.StartNew(s => ((IWorkflowVersionsOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets a workflow version. /// </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='versionId'> /// The workflow versionId. /// </param> public static WorkflowVersion Get(this IWorkflowVersionsOperations operations, string resourceGroupName, string workflowName, string versionId) { return(operations.GetAsync(resourceGroupName, workflowName, versionId).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow versions. /// </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='top'> /// The number of items to be included in the result. /// </param> public static IPage <WorkflowVersion> List(this IWorkflowVersionsOperations operations, string resourceGroupName, string workflowName, int?top = default(int?)) { return(operations.ListAsync(resourceGroupName, workflowName, top).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workflow versions. /// </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 <WorkflowVersion> ListNext(this IWorkflowVersionsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }