From bd5e1fea555e72e91f29267fd739657a4a92137c Mon Sep 17 00:00:00 2001 From: Viren Baraiya Date: Mon, 29 Jan 2024 20:47:49 -0800 Subject: [PATCH] reformat the file --- Conductor/Api/WorkflowResourceApi.cs | 1150 ++++++++++++++++++-------- 1 file changed, 807 insertions(+), 343 deletions(-) diff --git a/Conductor/Api/WorkflowResourceApi.cs b/Conductor/Api/WorkflowResourceApi.cs index 409632a..515b692 100644 --- a/Conductor/Api/WorkflowResourceApi.cs +++ b/Conductor/Api/WorkflowResourceApi.cs @@ -13,6 +13,7 @@ namespace Conductor.Api public interface IWorkflowResourceApi : IApiAccessor { #region Synchronous Operations + /// /// Starts the decision task for a workflow /// @@ -34,6 +35,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DecideWithHttpInfo(string workflowId); + /// /// Removes the workflow from the system /// @@ -57,6 +59,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to true) /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo(string workflowId, bool? archiveWorkflow = null); + /// /// Execute a workflow synchronously /// @@ -70,7 +73,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// (optional) /// WorkflowRun - WorkflowRun ExecuteWorkflow(StartWorkflowRequest body, string requestId, string name, int? version, string waitUntilTaskRef = null); + WorkflowRun ExecuteWorkflow(StartWorkflowRequest body, string requestId, string name, int? version, + string waitUntilTaskRef = null); /// /// Update the value of the workflow variables for the given workflow id @@ -78,6 +82,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of Object(void) Object UpdateWorkflowVariables(Workflow workflow); + /// /// Execute a workflow synchronously /// @@ -91,7 +96,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// (optional) /// ApiResponse of WorkflowRun - ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest body, string requestId, string name, int? version, string waitUntilTaskRef = null); + ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest body, string requestId, string name, + int? version, string waitUntilTaskRef = null); + /// /// Gets the workflow by workflow id /// @@ -116,7 +123,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to true) /// (optional, default to false) /// ApiResponse of Workflow - ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, bool? includeTasks = null, bool? summarize = null); + ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, bool? includeTasks = null, + bool? summarize = null); + /// /// Gets the workflow tasks by workflow id /// @@ -129,7 +138,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to 15) /// (optional) /// TaskListSearchResultSummary - TaskListSearchResultSummary GetExecutionStatusTaskList(string workflowId, int? start = null, int? count = null, string status = null); + TaskListSearchResultSummary GetExecutionStatusTaskList(string workflowId, int? start = null, int? count = null, + string status = null); /// /// Gets the workflow tasks by workflow id @@ -143,7 +153,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to 15) /// (optional) /// ApiResponse of TaskListSearchResultSummary - ApiResponse GetExecutionStatusTaskListWithHttpInfo(string workflowId, int? start = null, int? count = null, string status = null); + ApiResponse GetExecutionStatusTaskListWithHttpInfo(string workflowId, + int? start = null, int? count = null, string status = null); + /// /// Get the uri and path of the external storage where the workflow payload is to be stored /// @@ -168,7 +180,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// /// ApiResponse of ExternalStorageLocation - ApiResponse GetExternalStorageLocationWithHttpInfo(string path, string operation, string payloadType); + ApiResponse GetExternalStorageLocationWithHttpInfo(string path, string operation, + string payloadType); + /// /// Retrieve all the running workflows /// @@ -195,7 +209,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional) /// (optional) /// ApiResponse of List<string> - ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int? version = null, long? startTime = null, long? endTime = null); + ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int? version = null, + long? startTime = null, long? endTime = null); + /// /// Gets the workflow by workflow id /// @@ -207,7 +223,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// WorkflowStatus - WorkflowStatus GetWorkflowStatusSummary(string workflowId, bool? includeOutput = null, bool? includeVariables = null); + WorkflowStatus GetWorkflowStatusSummary(string workflowId, bool? includeOutput = null, + bool? includeVariables = null); /// /// Gets the workflow by workflow id @@ -220,7 +237,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// ApiResponse of WorkflowStatus - ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string workflowId, bool? includeOutput = null, bool? includeVariables = null); + ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string workflowId, bool? includeOutput = null, + bool? includeVariables = null); + /// /// Lists workflows for the given correlation id list /// @@ -233,7 +252,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// Dictionary<string, List<Workflow>> - Dictionary> GetWorkflows(List body, string name, bool? includeClosed = null, bool? includeTasks = null); + Dictionary> GetWorkflows(List body, string name, bool? includeClosed = null, + bool? includeTasks = null); /// /// Lists workflows for the given correlation id list @@ -247,7 +267,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// ApiResponse of Dictionary<string, List<Workflow>> - ApiResponse>> GetWorkflowsWithHttpInfo(List body, string name, bool? includeClosed = null, bool? includeTasks = null); + ApiResponse>> GetWorkflowsWithHttpInfo(List body, string name, + bool? includeClosed = null, bool? includeTasks = null); + /// /// Lists workflows for the given correlation id list and workflow name list /// @@ -259,7 +281,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// Dictionary<string, List<Workflow>> - Dictionary> GetWorkflows(CorrelationIdsSearchRequest body, bool? includeClosed = null, bool? includeTasks = null); + Dictionary> GetWorkflows(CorrelationIdsSearchRequest body, bool? includeClosed = null, + bool? includeTasks = null); /// /// Lists workflows for the given correlation id list and workflow name list @@ -272,7 +295,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// ApiResponse of Dictionary<string, List<Workflow>> - ApiResponse>> GetWorkflowsWithHttpInfo(CorrelationIdsSearchRequest body, bool? includeClosed = null, bool? includeTasks = null); + ApiResponse>> GetWorkflowsWithHttpInfo(CorrelationIdsSearchRequest body, + bool? includeClosed = null, bool? includeTasks = null); + /// /// Lists workflows for the given correlation id /// @@ -285,7 +310,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// List<Workflow> - List GetWorkflows(string name, string correlationId, bool? includeClosed = null, bool? includeTasks = null); + List GetWorkflows(string name, string correlationId, bool? includeClosed = null, + bool? includeTasks = null); /// /// Lists workflows for the given correlation id @@ -299,7 +325,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// (optional, default to false) /// ApiResponse of List<Workflow> - ApiResponse> GetWorkflowsWithHttpInfo(string name, string correlationId, bool? includeClosed = null, bool? includeTasks = null); + ApiResponse> GetWorkflowsWithHttpInfo(string name, string correlationId, + bool? includeClosed = null, bool? includeTasks = null); + /// /// Pauses the workflow /// @@ -321,6 +349,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse PauseWorkflowWithHttpInfo(string workflowId); + /// /// Jump workflow execution to given task /// @@ -345,7 +374,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// (optional) /// ApiResponse of Object(void) - ApiResponse JumpToTaskWithHttpInfo(Dictionary body, string workflowId, string taskReferenceName = null); + ApiResponse JumpToTaskWithHttpInfo(Dictionary body, string workflowId, + string taskReferenceName = null); /// /// Reruns the workflow from a specific task @@ -370,6 +400,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of string ApiResponse RerunWithHttpInfo(RerunWorkflowRequest body, string workflowId); + /// /// Resets callback times of all non-terminal SIMPLE tasks to 0 /// @@ -391,6 +422,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse ResetWorkflowWithHttpInfo(string workflowId); + /// /// Restarts a completed workflow /// @@ -414,6 +446,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// ApiResponse of Object(void) ApiResponse RestartWithHttpInfo(string workflowId, bool? useLatestDefinitions = null); + /// /// Resumes the workflow /// @@ -435,6 +468,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse ResumeWorkflowWithHttpInfo(string workflowId); + /// /// Retries the last failed task /// @@ -458,6 +492,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to false) /// ApiResponse of Object(void) ApiResponse RetryWithHttpInfo(string workflowId, bool? resumeSubworkflowTasks = null); + /// /// Search for workflows based on payload and other parameters /// @@ -473,7 +508,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional) /// (optional, default to false) /// ScrollableSearchResultWorkflowSummary - ScrollableSearchResultWorkflowSummary Search(string queryId = null, int? start = null, int? size = null, string sort = null, string freeText = null, string query = null, bool? skipCache = null); + ScrollableSearchResultWorkflowSummary Search(string queryId = null, int? start = null, int? size = null, + string sort = null, string freeText = null, string query = null, bool? skipCache = null); /// /// Search for workflows based on payload and other parameters @@ -490,7 +526,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional) /// (optional, default to false) /// ApiResponse of ScrollableSearchResultWorkflowSummary - ApiResponse SearchWithHttpInfo(string queryId = null, int? start = null, int? size = null, string sort = null, string freeText = null, string query = null, bool? skipCache = null); + ApiResponse SearchWithHttpInfo(string queryId = null, int? start = null, + int? size = null, string sort = null, string freeText = null, string query = null, bool? skipCache = null); + /// /// Search for workflows based on payload and other parameters /// @@ -504,7 +542,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to *) /// (optional) /// SearchResultWorkflow - SearchResultWorkflow SearchV2(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null); + SearchResultWorkflow SearchV2(int? start = null, int? size = null, string sort = null, string freeText = null, + string query = null); /// /// Search for workflows based on payload and other parameters @@ -519,7 +558,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to *) /// (optional) /// ApiResponse of SearchResultWorkflow - ApiResponse SearchV2WithHttpInfo(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null); + ApiResponse SearchV2WithHttpInfo(int? start = null, int? size = null, string sort = null, + string freeText = null, string query = null); + /// /// Search for workflows based on task parameters /// @@ -533,7 +574,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to *) /// (optional) /// SearchResultWorkflowSummary - SearchResultWorkflowSummary SearchWorkflowsByTasks(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null); + SearchResultWorkflowSummary SearchWorkflowsByTasks(int? start = null, int? size = null, string sort = null, + string freeText = null, string query = null); /// /// Search for workflows based on task parameters @@ -548,7 +590,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to *) /// (optional) /// ApiResponse of SearchResultWorkflowSummary - ApiResponse SearchWorkflowsByTasksWithHttpInfo(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null); + ApiResponse SearchWorkflowsByTasksWithHttpInfo(int? start = null, int? size = null, + string sort = null, string freeText = null, string query = null); + /// /// Search for workflows based on task parameters /// @@ -562,7 +606,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to *) /// (optional) /// SearchResultWorkflow - SearchResultWorkflow SearchWorkflowsByTasksV2(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null); + SearchResultWorkflow SearchWorkflowsByTasksV2(int? start = null, int? size = null, string sort = null, + string freeText = null, string query = null); /// /// Search for workflows based on task parameters @@ -577,7 +622,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional, default to *) /// (optional) /// ApiResponse of SearchResultWorkflow - ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null); + ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(int? start = null, int? size = null, + string sort = null, string freeText = null, string query = null); + /// /// Skips a given task from a current running workflow /// @@ -602,7 +649,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// /// ApiResponse of Object(void) - ApiResponse SkipTaskFromWorkflowWithHttpInfo(string workflowId, string taskReferenceName, SkipTaskRequest skipTaskRequest); + ApiResponse SkipTaskFromWorkflowWithHttpInfo(string workflowId, string taskReferenceName, + SkipTaskRequest skipTaskRequest); + /// /// Start a new workflow with StartWorkflowRequest, which allows task to be executed in a domain /// @@ -624,6 +673,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of string ApiResponse StartWorkflowWithHttpInfo(StartWorkflowRequest body); + /// /// Start a new workflow. Returns the ID of the workflow instance that can be later used for tracking /// @@ -637,7 +687,8 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional) /// (optional, default to 0) /// string - string StartWorkflow(string name, Dictionary body, int? version = null, string correlationId = null, int? priority = null); + string StartWorkflow(string name, Dictionary body, int? version = null, + string correlationId = null, int? priority = null); /// /// Start a new workflow. Returns the ID of the workflow instance that can be later used for tracking @@ -652,7 +703,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional) /// (optional, default to 0) /// ApiResponse of string - ApiResponse StartWorkflowWithHttpInfo(string name, Dictionary body, int? version = null, string correlationId = null, int? priority = null); + ApiResponse StartWorkflowWithHttpInfo(string name, Dictionary body, int? version = null, + string correlationId = null, int? priority = null); + /// /// Terminate workflow execution /// @@ -677,7 +730,9 @@ public interface IWorkflowResourceApi : IApiAccessor /// (optional) /// (optional, default to false) /// ApiResponse of Object(void) - ApiResponse TerminateWithHttpInfo(string workflowId, string reason = null, bool? triggerFailureWorkflow = null); + ApiResponse TerminateWithHttpInfo(string workflowId, string reason = null, + bool? triggerFailureWorkflow = null); + /// /// Test workflow execution using mock data /// @@ -699,6 +754,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// /// ApiResponse of Workflow ApiResponse TestWorkflowWithHttpInfo(WorkflowTestRequest body); + /// /// Force upload all completed workflows to document store /// @@ -718,6 +774,7 @@ public interface IWorkflowResourceApi : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of Object ApiResponse UploadCompletedWorkflowsWithHttpInfo(); + #endregion Synchronous Operations } @@ -792,6 +849,7 @@ public Conductor.Client.ExceptionFactory ExceptionFactory { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } + return _exceptionFactory; } set { _exceptionFactory = value; } @@ -818,7 +876,8 @@ public ApiResponse DecideWithHttpInfo(string workflowId) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Decide"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Decide"); var localVarPath = "/workflow/decide/{workflowId}"; var localVarPathParams = new Dictionary(); @@ -829,18 +888,24 @@ public ApiResponse DecideWithHttpInfo(string workflowId) Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -849,7 +914,8 @@ public ApiResponse DecideWithHttpInfo(string workflowId) // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -888,7 +954,8 @@ public ApiResponse DeleteWithHttpInfo(string workflowId, bool? archiveWo { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Delete"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Delete"); var localVarPath = "/workflow/{workflowId}/remove"; var localVarPathParams = new Dictionary(); @@ -899,19 +966,28 @@ public ApiResponse DeleteWithHttpInfo(string workflowId, bool? archiveWo Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (archiveWorkflow != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "archiveWorkflow", archiveWorkflow)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (archiveWorkflow != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "archiveWorkflow", + archiveWorkflow)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -920,7 +996,8 @@ public ApiResponse DeleteWithHttpInfo(string workflowId, bool? archiveWo // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -946,9 +1023,11 @@ public ApiResponse DeleteWithHttpInfo(string workflowId, bool? archiveWo /// /// (optional) /// WorkflowRun - public WorkflowRun ExecuteWorkflow(StartWorkflowRequest body, string requestId, string name, int? version, string waitUntilTaskRef = null) + public WorkflowRun ExecuteWorkflow(StartWorkflowRequest body, string requestId, string name, int? version, + string waitUntilTaskRef = null) { - ApiResponse localVarResponse = ExecuteWorkflowWithHttpInfo(body, requestId, name, version, waitUntilTaskRef); + ApiResponse localVarResponse = + ExecuteWorkflowWithHttpInfo(body, requestId, name, version, waitUntilTaskRef); return localVarResponse.Data; } @@ -962,20 +1041,25 @@ public WorkflowRun ExecuteWorkflow(StartWorkflowRequest body, string requestId, /// /// (optional) /// ApiResponse of WorkflowRun - public ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest body, string requestId, string name, int? version, string waitUntilTaskRef = null) + public ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest body, string requestId, + string name, int? version, string waitUntilTaskRef = null) { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->ExecuteWorkflow"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->ExecuteWorkflow"); // verify the required parameter 'requestId' is set if (requestId == null) - throw new ApiException(400, "Missing required parameter 'requestId' when calling WorkflowResourceApi->ExecuteWorkflow"); + throw new ApiException(400, + "Missing required parameter 'requestId' when calling WorkflowResourceApi->ExecuteWorkflow"); // verify the required parameter 'name' is set if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling WorkflowResourceApi->ExecuteWorkflow"); + throw new ApiException(400, + "Missing required parameter 'name' when calling WorkflowResourceApi->ExecuteWorkflow"); // verify the required parameter 'version' is set if (version == null) - throw new ApiException(400, "Missing required parameter 'version' when calling WorkflowResourceApi->ExecuteWorkflow"); + throw new ApiException(400, + "Missing required parameter 'version' when calling WorkflowResourceApi->ExecuteWorkflow"); var localVarPath = "/workflow/execute/{name}/{version}"; var localVarPathParams = new Dictionary(); @@ -986,23 +1070,36 @@ public ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "application/json" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (version != null) localVarPathParams.Add("version", this.Configuration.ApiClient.ParameterToString(version)); // path parameter - if (requestId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "requestId", requestId)); // query parameter - if (waitUntilTaskRef != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "waitUntilTaskRef", waitUntilTaskRef)); // query parameter + if (name != null) + localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter + if (version != null) + localVarPathParams.Add("version", + this.Configuration.ApiClient.ParameterToString(version)); // path parameter + if (requestId != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "requestId", + requestId)); // query parameter + if (waitUntilTaskRef != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "waitUntilTaskRef", + waitUntilTaskRef)); // query parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter @@ -1011,6 +1108,7 @@ public ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest { localVarPostBody = body; // byte array } + // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1019,7 +1117,8 @@ public ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1045,13 +1144,16 @@ public ApiResponse UpdateWorkflowVariablesWithHttpInfo(Workflow workflow { // verify the required parameter 'body' is set if (workflow == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->Update"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->Update"); if (string.IsNullOrEmpty(workflow.WorkflowId)) - throw new ApiException(400, "Missing required parameter 'WorkflowId' when calling WorkflowResourceApi->Update"); + throw new ApiException(400, + "Missing required parameter 'WorkflowId' when calling WorkflowResourceApi->Update"); if (workflow.Variables == null) - throw new ApiException(400, "Missing required parameter 'Variables' when calling WorkflowResourceApi->Update"); + throw new ApiException(400, + "Missing required parameter 'Variables' when calling WorkflowResourceApi->Update"); var localVarPath = $"/workflow/{workflow.WorkflowId}/variables"; var localVarPathParams = new Dictionary(); @@ -1062,16 +1164,20 @@ public ApiResponse UpdateWorkflowVariablesWithHttpInfo(Workflow workflow Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); @@ -1087,7 +1193,8 @@ public ApiResponse UpdateWorkflowVariablesWithHttpInfo(Workflow workflow } IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1112,7 +1219,8 @@ public ApiResponse UpdateWorkflowVariablesWithHttpInfo(Workflow workflow /// Workflow public Workflow GetExecutionStatus(string workflowId, bool? includeTasks = null, bool? summarize = null) { - ApiResponse localVarResponse = GetExecutionStatusWithHttpInfo(workflowId, includeTasks, summarize); + ApiResponse localVarResponse = + GetExecutionStatusWithHttpInfo(workflowId, includeTasks, summarize); return localVarResponse.Data; } @@ -1124,11 +1232,13 @@ public Workflow GetExecutionStatus(string workflowId, bool? includeTasks = null, /// (optional, default to true) /// (optional, default to false) /// ApiResponse of Workflow - public ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, bool? includeTasks = null, bool? summarize = null) + public ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, bool? includeTasks = null, + bool? summarize = null) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->GetExecutionStatus"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->GetExecutionStatus"); var localVarPath = "/workflow/{workflowId}"; var localVarPathParams = new Dictionary(); @@ -1139,21 +1249,33 @@ public ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, b Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (includeTasks != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", includeTasks)); // query parameter - if (summarize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "summarize", summarize)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (includeTasks != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", + includeTasks)); // query parameter + if (summarize != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "summarize", + summarize)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1162,7 +1284,8 @@ public ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, b // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1187,9 +1310,11 @@ public ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, b /// (optional, default to 15) /// (optional) /// TaskListSearchResultSummary - public TaskListSearchResultSummary GetExecutionStatusTaskList(string workflowId, int? start = null, int? count = null, string status = null) + public TaskListSearchResultSummary GetExecutionStatusTaskList(string workflowId, int? start = null, + int? count = null, string status = null) { - ApiResponse localVarResponse = GetExecutionStatusTaskListWithHttpInfo(workflowId, start, count, status); + ApiResponse localVarResponse = + GetExecutionStatusTaskListWithHttpInfo(workflowId, start, count, status); return localVarResponse.Data; } @@ -1202,11 +1327,13 @@ public TaskListSearchResultSummary GetExecutionStatusTaskList(string workflowId, /// (optional, default to 15) /// (optional) /// ApiResponse of TaskListSearchResultSummary - public ApiResponse GetExecutionStatusTaskListWithHttpInfo(string workflowId, int? start = null, int? count = null, string status = null) + public ApiResponse GetExecutionStatusTaskListWithHttpInfo(string workflowId, + int? start = null, int? count = null, string status = null) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->GetExecutionStatusTaskList"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->GetExecutionStatusTaskList"); var localVarPath = "/workflow/{workflowId}/tasks"; var localVarPathParams = new Dictionary(); @@ -1217,22 +1344,34 @@ public ApiResponse GetExecutionStatusTaskListWithHt Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter - if (count != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "count", count)); // query parameter - if (status != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "status", status)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (start != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (count != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "count", count)); // query parameter + if (status != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "status", status)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1241,7 +1380,8 @@ public ApiResponse GetExecutionStatusTaskListWithHt // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1254,7 +1394,8 @@ public ApiResponse GetExecutionStatusTaskListWithHt return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (TaskListSearchResultSummary)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TaskListSearchResultSummary))); + (TaskListSearchResultSummary)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(TaskListSearchResultSummary))); } /// @@ -1267,7 +1408,8 @@ public ApiResponse GetExecutionStatusTaskListWithHt /// ExternalStorageLocation public ExternalStorageLocation GetExternalStorageLocation(string path, string operation, string payloadType) { - ApiResponse localVarResponse = GetExternalStorageLocationWithHttpInfo(path, operation, payloadType); + ApiResponse localVarResponse = + GetExternalStorageLocationWithHttpInfo(path, operation, payloadType); return localVarResponse.Data; } @@ -1279,17 +1421,21 @@ public ExternalStorageLocation GetExternalStorageLocation(string path, string op /// /// /// ApiResponse of ExternalStorageLocation - public ApiResponse GetExternalStorageLocationWithHttpInfo(string path, string operation, string payloadType) + public ApiResponse GetExternalStorageLocationWithHttpInfo(string path, + string operation, string payloadType) { // verify the required parameter 'path' is set if (path == null) - throw new ApiException(400, "Missing required parameter 'path' when calling WorkflowResourceApi->GetExternalStorageLocation"); + throw new ApiException(400, + "Missing required parameter 'path' when calling WorkflowResourceApi->GetExternalStorageLocation"); // verify the required parameter 'operation' is set if (operation == null) - throw new ApiException(400, "Missing required parameter 'operation' when calling WorkflowResourceApi->GetExternalStorageLocation"); + throw new ApiException(400, + "Missing required parameter 'operation' when calling WorkflowResourceApi->GetExternalStorageLocation"); // verify the required parameter 'payloadType' is set if (payloadType == null) - throw new ApiException(400, "Missing required parameter 'payloadType' when calling WorkflowResourceApi->GetExternalStorageLocation"); + throw new ApiException(400, + "Missing required parameter 'payloadType' when calling WorkflowResourceApi->GetExternalStorageLocation"); var localVarPath = "/workflow/externalstoragelocation"; var localVarPathParams = new Dictionary(); @@ -1300,21 +1446,33 @@ public ApiResponse GetExternalStorageLocationWithHttpIn Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (path != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "path", path)); // query parameter - if (operation != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "operation", operation)); // query parameter - if (payloadType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "payloadType", payloadType)); // query parameter + if (path != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "path", path)); // query parameter + if (operation != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "operation", + operation)); // query parameter + if (payloadType != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "payloadType", + payloadType)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1323,7 +1481,8 @@ public ApiResponse GetExternalStorageLocationWithHttpIn // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1336,7 +1495,8 @@ public ApiResponse GetExternalStorageLocationWithHttpIn return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (ExternalStorageLocation)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalStorageLocation))); + (ExternalStorageLocation)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(ExternalStorageLocation))); } /// @@ -1348,9 +1508,11 @@ public ApiResponse GetExternalStorageLocationWithHttpIn /// (optional) /// (optional) /// List<string> - public List GetRunningWorkflow(string name, int? version = null, long? startTime = null, long? endTime = null) + public List GetRunningWorkflow(string name, int? version = null, long? startTime = null, + long? endTime = null) { - ApiResponse> localVarResponse = GetRunningWorkflowWithHttpInfo(name, version, startTime, endTime); + ApiResponse> localVarResponse = + GetRunningWorkflowWithHttpInfo(name, version, startTime, endTime); return localVarResponse.Data; } @@ -1363,11 +1525,13 @@ public List GetRunningWorkflow(string name, int? version = null, long? s /// (optional) /// (optional) /// ApiResponse of List<string> - public ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int? version = null, long? startTime = null, long? endTime = null) + public ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int? version = null, + long? startTime = null, long? endTime = null) { // verify the required parameter 'name' is set if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling WorkflowResourceApi->GetRunningWorkflow"); + throw new ApiException(400, + "Missing required parameter 'name' when calling WorkflowResourceApi->GetRunningWorkflow"); var localVarPath = "/workflow/running/{name}"; var localVarPathParams = new Dictionary(); @@ -1378,22 +1542,34 @@ public ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter - if (startTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startTime", startTime)); // query parameter - if (endTime != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endTime", endTime)); // query parameter + if (name != null) + localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter + if (version != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (startTime != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startTime", + startTime)); // query parameter + if (endTime != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endTime", endTime)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1402,7 +1578,8 @@ public ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1426,9 +1603,11 @@ public ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int /// (optional, default to false) /// (optional, default to false) /// WorkflowStatus - public WorkflowStatus GetWorkflowStatusSummary(string workflowId, bool? includeOutput = null, bool? includeVariables = null) + public WorkflowStatus GetWorkflowStatusSummary(string workflowId, bool? includeOutput = null, + bool? includeVariables = null) { - ApiResponse localVarResponse = GetWorkflowStatusSummaryWithHttpInfo(workflowId, includeOutput, includeVariables); + ApiResponse localVarResponse = + GetWorkflowStatusSummaryWithHttpInfo(workflowId, includeOutput, includeVariables); return localVarResponse.Data; } @@ -1440,11 +1619,13 @@ public WorkflowStatus GetWorkflowStatusSummary(string workflowId, bool? includeO /// (optional, default to false) /// (optional, default to false) /// ApiResponse of WorkflowStatus - public ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string workflowId, bool? includeOutput = null, bool? includeVariables = null) + public ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string workflowId, + bool? includeOutput = null, bool? includeVariables = null) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->GetWorkflowStatusSummary"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->GetWorkflowStatusSummary"); var localVarPath = "/workflow/{workflowId}/status"; var localVarPathParams = new Dictionary(); @@ -1455,21 +1636,33 @@ public ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string w Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (includeOutput != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeOutput", includeOutput)); // query parameter - if (includeVariables != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeVariables", includeVariables)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (includeOutput != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeOutput", + includeOutput)); // query parameter + if (includeVariables != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeVariables", + includeVariables)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1478,7 +1671,8 @@ public ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string w // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1503,9 +1697,11 @@ public ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string w /// (optional, default to false) /// (optional, default to false) /// Dictionary<string, List<Workflow>> - public Dictionary> GetWorkflows(List body, string name, bool? includeClosed = null, bool? includeTasks = null) + public Dictionary> GetWorkflows(List body, string name, + bool? includeClosed = null, bool? includeTasks = null) { - ApiResponse>> localVarResponse = GetWorkflowsWithHttpInfo(body, name, includeClosed, includeTasks); + ApiResponse>> localVarResponse = + GetWorkflowsWithHttpInfo(body, name, includeClosed, includeTasks); return localVarResponse.Data; } @@ -1518,14 +1714,17 @@ public Dictionary> GetWorkflows(List body, string /// (optional, default to false) /// (optional, default to false) /// ApiResponse of Dictionary<string, List<Workflow>> - public ApiResponse>> GetWorkflowsWithHttpInfo(List body, string name, bool? includeClosed = null, bool? includeTasks = null) + public ApiResponse>> GetWorkflowsWithHttpInfo(List body, string name, + bool? includeClosed = null, bool? includeTasks = null) { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->GetWorkflows"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->GetWorkflows"); // verify the required parameter 'name' is set if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling WorkflowResourceApi->GetWorkflows"); + throw new ApiException(400, + "Missing required parameter 'name' when calling WorkflowResourceApi->GetWorkflows"); var localVarPath = "/workflow/{name}/correlated"; var localVarPathParams = new Dictionary(); @@ -1536,22 +1735,33 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (includeClosed != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeClosed", includeClosed)); // query parameter - if (includeTasks != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", includeTasks)); // query parameter + if (name != null) + localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter + if (includeClosed != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeClosed", + includeClosed)); // query parameter + if (includeTasks != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", + includeTasks)); // query parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter @@ -1560,6 +1770,7 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( { localVarPostBody = body; // byte array } + // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1568,7 +1779,8 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1581,7 +1793,8 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( return new ApiResponse>>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Dictionary>)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary>))); + (Dictionary>)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(Dictionary>))); } /// @@ -1592,9 +1805,11 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( /// (optional, default to false) /// (optional, default to false) /// Dictionary<string, List<Workflow>> - public Dictionary> GetWorkflows(CorrelationIdsSearchRequest body, bool? includeClosed = null, bool? includeTasks = null) + public Dictionary> GetWorkflows(CorrelationIdsSearchRequest body, + bool? includeClosed = null, bool? includeTasks = null) { - ApiResponse>> localVarResponse = GetWorkflowsWithHttpInfo(body, includeClosed, includeTasks); + ApiResponse>> localVarResponse = + GetWorkflowsWithHttpInfo(body, includeClosed, includeTasks); return localVarResponse.Data; } @@ -1606,11 +1821,13 @@ public Dictionary> GetWorkflows(CorrelationIdsSearchReque /// (optional, default to false) /// (optional, default to false) /// ApiResponse of Dictionary<string, List<Workflow>> - public ApiResponse>> GetWorkflowsWithHttpInfo(CorrelationIdsSearchRequest body, bool? includeClosed = null, bool? includeTasks = null) + public ApiResponse>> GetWorkflowsWithHttpInfo( + CorrelationIdsSearchRequest body, bool? includeClosed = null, bool? includeTasks = null) { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->GetWorkflows"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->GetWorkflows"); var localVarPath = "/workflow/correlated/batch"; var localVarPathParams = new Dictionary(); @@ -1621,21 +1838,31 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (includeClosed != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeClosed", includeClosed)); // query parameter - if (includeTasks != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", includeTasks)); // query parameter + if (includeClosed != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeClosed", + includeClosed)); // query parameter + if (includeTasks != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", + includeTasks)); // query parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter @@ -1644,6 +1871,7 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( { localVarPostBody = body; // byte array } + // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1652,7 +1880,8 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1665,7 +1894,8 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( return new ApiResponse>>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Dictionary>)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary>))); + (Dictionary>)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(Dictionary>))); } /// @@ -1677,9 +1907,11 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( /// (optional, default to false) /// (optional, default to false) /// List<Workflow> - public List GetWorkflows(string name, string correlationId, bool? includeClosed = null, bool? includeTasks = null) + public List GetWorkflows(string name, string correlationId, bool? includeClosed = null, + bool? includeTasks = null) { - ApiResponse> localVarResponse = GetWorkflowsWithHttpInfo(name, correlationId, includeClosed, includeTasks); + ApiResponse> localVarResponse = + GetWorkflowsWithHttpInfo(name, correlationId, includeClosed, includeTasks); return localVarResponse.Data; } @@ -1692,14 +1924,17 @@ public List GetWorkflows(string name, string correlationId, bool? incl /// (optional, default to false) /// (optional, default to false) /// ApiResponse of List<Workflow> - public ApiResponse> GetWorkflowsWithHttpInfo(string name, string correlationId, bool? includeClosed = null, bool? includeTasks = null) + public ApiResponse> GetWorkflowsWithHttpInfo(string name, string correlationId, + bool? includeClosed = null, bool? includeTasks = null) { // verify the required parameter 'name' is set if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling WorkflowResourceApi->GetWorkflows"); + throw new ApiException(400, + "Missing required parameter 'name' when calling WorkflowResourceApi->GetWorkflows"); // verify the required parameter 'correlationId' is set if (correlationId == null) - throw new ApiException(400, "Missing required parameter 'correlationId' when calling WorkflowResourceApi->GetWorkflows"); + throw new ApiException(400, + "Missing required parameter 'correlationId' when calling WorkflowResourceApi->GetWorkflows"); var localVarPath = "/workflow/{name}/correlated/{correlationId}"; var localVarPathParams = new Dictionary(); @@ -1710,22 +1945,35 @@ public ApiResponse> GetWorkflowsWithHttpInfo(string name, string Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (name != null) localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter - if (correlationId != null) localVarPathParams.Add("correlationId", this.Configuration.ApiClient.ParameterToString(correlationId)); // path parameter - if (includeClosed != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeClosed", includeClosed)); // query parameter - if (includeTasks != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", includeTasks)); // query parameter + if (name != null) + localVarPathParams.Add("name", this.Configuration.ApiClient.ParameterToString(name)); // path parameter + if (correlationId != null) + localVarPathParams.Add("correlationId", + this.Configuration.ApiClient.ParameterToString(correlationId)); // path parameter + if (includeClosed != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeClosed", + includeClosed)); // query parameter + if (includeTasks != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeTasks", + includeTasks)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1734,7 +1982,8 @@ public ApiResponse> GetWorkflowsWithHttpInfo(string name, string // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1771,7 +2020,8 @@ public ApiResponse PauseWorkflowWithHttpInfo(string workflowId) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->PauseWorkflow"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->PauseWorkflow"); var localVarPath = "/workflow/{workflowId}/pause"; var localVarPathParams = new Dictionary(); @@ -1782,18 +2032,24 @@ public ApiResponse PauseWorkflowWithHttpInfo(string workflowId) Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1802,7 +2058,8 @@ public ApiResponse PauseWorkflowWithHttpInfo(string workflowId) // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1841,14 +2098,17 @@ public void JumpToTask(string workflowId, Dictionary input, stri /// /// (optional) /// ApiResponse of Object(void) - public ApiResponse JumpToTaskWithHttpInfo(Dictionary body, string workflowId, string taskReferenceName = null) + public ApiResponse JumpToTaskWithHttpInfo(Dictionary body, string workflowId, + string taskReferenceName = null) { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'input' when calling WorkflowResourceApi->JumpToTask"); + throw new ApiException(400, + "Missing required parameter 'input' when calling WorkflowResourceApi->JumpToTask"); // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->JumpToTask"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->JumpToTask"); var localVarPath = "/workflow/{workflowId}/jump/{taskReferenceName}"; var localVarPathParams = new Dictionary(); @@ -1859,20 +2119,29 @@ public ApiResponse JumpToTaskWithHttpInfo(Dictionary bod Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (taskReferenceName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "taskReferenceName", taskReferenceName)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (taskReferenceName != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "taskReferenceName", + taskReferenceName)); // query parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter @@ -1881,6 +2150,7 @@ public ApiResponse JumpToTaskWithHttpInfo(Dictionary bod { localVarPostBody = body; // byte array } + // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1889,7 +2159,8 @@ public ApiResponse JumpToTaskWithHttpInfo(Dictionary bod // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1930,10 +2201,12 @@ public ApiResponse RerunWithHttpInfo(RerunWorkflowRequest body, string w { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->Rerun"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->Rerun"); // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Rerun"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Rerun"); var localVarPath = "/workflow/{workflowId}/rerun"; var localVarPathParams = new Dictionary(); @@ -1944,20 +2217,26 @@ public ApiResponse RerunWithHttpInfo(RerunWorkflowRequest body, string w Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "text/plain" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter @@ -1966,6 +2245,7 @@ public ApiResponse RerunWithHttpInfo(RerunWorkflowRequest body, string w { localVarPostBody = body; // byte array } + // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -1974,7 +2254,8 @@ public ApiResponse RerunWithHttpInfo(RerunWorkflowRequest body, string w // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2011,7 +2292,8 @@ public ApiResponse ResetWorkflowWithHttpInfo(string workflowId) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->ResetWorkflow"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->ResetWorkflow"); var localVarPath = "/workflow/{workflowId}/resetcallbacks"; var localVarPathParams = new Dictionary(); @@ -2022,18 +2304,24 @@ public ApiResponse ResetWorkflowWithHttpInfo(string workflowId) Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2042,7 +2330,8 @@ public ApiResponse ResetWorkflowWithHttpInfo(string workflowId) // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2081,7 +2370,8 @@ public ApiResponse RestartWithHttpInfo(string workflowId, bool? useLates { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Restart"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Restart"); var localVarPath = "/workflow/{workflowId}/restart"; var localVarPathParams = new Dictionary(); @@ -2092,19 +2382,28 @@ public ApiResponse RestartWithHttpInfo(string workflowId, bool? useLates Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (useLatestDefinitions != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "useLatestDefinitions", useLatestDefinitions)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (useLatestDefinitions != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "useLatestDefinitions", + useLatestDefinitions)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2113,7 +2412,8 @@ public ApiResponse RestartWithHttpInfo(string workflowId, bool? useLates // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2150,7 +2450,8 @@ public ApiResponse ResumeWorkflowWithHttpInfo(string workflowId) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->ResumeWorkflow"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->ResumeWorkflow"); var localVarPath = "/workflow/{workflowId}/resume"; var localVarPathParams = new Dictionary(); @@ -2161,18 +2462,24 @@ public ApiResponse ResumeWorkflowWithHttpInfo(string workflowId) Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2181,7 +2488,8 @@ public ApiResponse ResumeWorkflowWithHttpInfo(string workflowId) // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2220,7 +2528,8 @@ public ApiResponse RetryWithHttpInfo(string workflowId, bool? resumeSubw { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Retry"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Retry"); var localVarPath = "/workflow/{workflowId}/retry"; var localVarPathParams = new Dictionary(); @@ -2231,19 +2540,28 @@ public ApiResponse RetryWithHttpInfo(string workflowId, bool? resumeSubw Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (resumeSubworkflowTasks != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "resumeSubworkflowTasks", resumeSubworkflowTasks)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (resumeSubworkflowTasks != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "resumeSubworkflowTasks", + resumeSubworkflowTasks)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2252,7 +2570,8 @@ public ApiResponse RetryWithHttpInfo(string workflowId, bool? resumeSubw // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2280,9 +2599,11 @@ public ApiResponse RetryWithHttpInfo(string workflowId, bool? resumeSubw /// (optional) /// (optional, default to false) /// ScrollableSearchResultWorkflowSummary - public ScrollableSearchResultWorkflowSummary Search(string queryId = null, int? start = null, int? size = null, string sort = null, string freeText = null, string query = null, bool? skipCache = null) + public ScrollableSearchResultWorkflowSummary Search(string queryId = null, int? start = null, int? size = null, + string sort = null, string freeText = null, string query = null, bool? skipCache = null) { - ApiResponse localVarResponse = SearchWithHttpInfo(queryId, start, size, sort, freeText, query, skipCache); + ApiResponse localVarResponse = + SearchWithHttpInfo(queryId, start, size, sort, freeText, query, skipCache); return localVarResponse.Data; } @@ -2298,9 +2619,10 @@ public ScrollableSearchResultWorkflowSummary Search(string queryId = null, int? /// (optional) /// (optional, default to false) /// ApiResponse of ScrollableSearchResultWorkflowSummary - public ApiResponse SearchWithHttpInfo(string queryId = null, int? start = null, int? size = null, string sort = null, string freeText = null, string query = null, bool? skipCache = null) + public ApiResponse SearchWithHttpInfo(string queryId = null, + int? start = null, int? size = null, string sort = null, string freeText = null, string query = null, + bool? skipCache = null) { - var localVarPath = "/workflow/search"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); @@ -2310,25 +2632,44 @@ public ApiResponse SearchWithHttpInfo(str Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (queryId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queryId", queryId)); // query parameter - if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter - if (size != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter - if (sort != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter - if (freeText != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter - if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter - if (skipCache != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skipCache", skipCache)); // query parameter + if (queryId != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "queryId", queryId)); // query parameter + if (start != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (size != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter + if (sort != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter + if (freeText != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter + if (query != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter + if (skipCache != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skipCache", + skipCache)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2337,7 +2678,8 @@ public ApiResponse SearchWithHttpInfo(str // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2350,7 +2692,8 @@ public ApiResponse SearchWithHttpInfo(str return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (ScrollableSearchResultWorkflowSummary)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ScrollableSearchResultWorkflowSummary))); + (ScrollableSearchResultWorkflowSummary)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(ScrollableSearchResultWorkflowSummary))); } /// @@ -2363,9 +2706,11 @@ public ApiResponse SearchWithHttpInfo(str /// (optional, default to *) /// (optional) /// SearchResultWorkflow - public SearchResultWorkflow SearchV2(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null) + public SearchResultWorkflow SearchV2(int? start = null, int? size = null, string sort = null, + string freeText = null, string query = null) { - ApiResponse localVarResponse = SearchV2WithHttpInfo(start, size, sort, freeText, query); + ApiResponse localVarResponse = + SearchV2WithHttpInfo(start, size, sort, freeText, query); return localVarResponse.Data; } @@ -2379,9 +2724,9 @@ public SearchResultWorkflow SearchV2(int? start = null, int? size = null, string /// (optional, default to *) /// (optional) /// ApiResponse of SearchResultWorkflow - public ApiResponse SearchV2WithHttpInfo(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null) + public ApiResponse SearchV2WithHttpInfo(int? start = null, int? size = null, + string sort = null, string freeText = null, string query = null) { - var localVarPath = "/workflow/search-v2"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); @@ -2391,23 +2736,37 @@ public ApiResponse SearchV2WithHttpInfo(int? start = null, Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter - if (size != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter - if (sort != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter - if (freeText != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter - if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter + if (start != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (size != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter + if (sort != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter + if (freeText != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter + if (query != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2416,7 +2775,8 @@ public ApiResponse SearchV2WithHttpInfo(int? start = null, // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2429,7 +2789,8 @@ public ApiResponse SearchV2WithHttpInfo(int? start = null, return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (SearchResultWorkflow)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchResultWorkflow))); + (SearchResultWorkflow)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(SearchResultWorkflow))); } /// @@ -2442,9 +2803,11 @@ public ApiResponse SearchV2WithHttpInfo(int? start = null, /// (optional, default to *) /// (optional) /// SearchResultWorkflowSummary - public SearchResultWorkflowSummary SearchWorkflowsByTasks(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null) + public SearchResultWorkflowSummary SearchWorkflowsByTasks(int? start = null, int? size = null, + string sort = null, string freeText = null, string query = null) { - ApiResponse localVarResponse = SearchWorkflowsByTasksWithHttpInfo(start, size, sort, freeText, query); + ApiResponse localVarResponse = + SearchWorkflowsByTasksWithHttpInfo(start, size, sort, freeText, query); return localVarResponse.Data; } @@ -2458,9 +2821,9 @@ public SearchResultWorkflowSummary SearchWorkflowsByTasks(int? start = null, int /// (optional, default to *) /// (optional) /// ApiResponse of SearchResultWorkflowSummary - public ApiResponse SearchWorkflowsByTasksWithHttpInfo(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null) + public ApiResponse SearchWorkflowsByTasksWithHttpInfo(int? start = null, + int? size = null, string sort = null, string freeText = null, string query = null) { - var localVarPath = "/workflow/search-by-tasks"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); @@ -2470,23 +2833,37 @@ public ApiResponse SearchWorkflowsByTasksWithHttpIn Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter - if (size != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter - if (sort != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter - if (freeText != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter - if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter + if (start != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (size != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter + if (sort != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter + if (freeText != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter + if (query != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2495,7 +2872,8 @@ public ApiResponse SearchWorkflowsByTasksWithHttpIn // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2508,7 +2886,8 @@ public ApiResponse SearchWorkflowsByTasksWithHttpIn return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (SearchResultWorkflowSummary)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchResultWorkflowSummary))); + (SearchResultWorkflowSummary)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(SearchResultWorkflowSummary))); } /// @@ -2521,9 +2900,11 @@ public ApiResponse SearchWorkflowsByTasksWithHttpIn /// (optional, default to *) /// (optional) /// SearchResultWorkflow - public SearchResultWorkflow SearchWorkflowsByTasksV2(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null) + public SearchResultWorkflow SearchWorkflowsByTasksV2(int? start = null, int? size = null, string sort = null, + string freeText = null, string query = null) { - ApiResponse localVarResponse = SearchWorkflowsByTasksV2WithHttpInfo(start, size, sort, freeText, query); + ApiResponse localVarResponse = + SearchWorkflowsByTasksV2WithHttpInfo(start, size, sort, freeText, query); return localVarResponse.Data; } @@ -2537,9 +2918,9 @@ public SearchResultWorkflow SearchWorkflowsByTasksV2(int? start = null, int? siz /// (optional, default to *) /// (optional) /// ApiResponse of SearchResultWorkflow - public ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(int? start = null, int? size = null, string sort = null, string freeText = null, string query = null) + public ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(int? start = null, + int? size = null, string sort = null, string freeText = null, string query = null) { - var localVarPath = "/workflow/search-by-tasks-v2"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); @@ -2549,23 +2930,37 @@ public ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(in Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter - if (size != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter - if (sort != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter - if (freeText != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter - if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter + if (start != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter + if (size != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "size", size)); // query parameter + if (sort != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sort", sort)); // query parameter + if (freeText != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeText", freeText)); // query parameter + if (query != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2574,7 +2969,8 @@ public ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(in // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2587,7 +2983,8 @@ public ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(in return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (SearchResultWorkflow)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchResultWorkflow))); + (SearchResultWorkflow)this.Configuration.ApiClient.Deserialize(localVarResponse, + typeof(SearchResultWorkflow))); } /// @@ -2611,17 +3008,21 @@ public void SkipTaskFromWorkflow(string workflowId, string taskReferenceName, Sk /// /// /// ApiResponse of Object(void) - public ApiResponse SkipTaskFromWorkflowWithHttpInfo(string workflowId, string taskReferenceName, SkipTaskRequest skipTaskRequest) + public ApiResponse SkipTaskFromWorkflowWithHttpInfo(string workflowId, string taskReferenceName, + SkipTaskRequest skipTaskRequest) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->SkipTaskFromWorkflow"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->SkipTaskFromWorkflow"); // verify the required parameter 'taskReferenceName' is set if (taskReferenceName == null) - throw new ApiException(400, "Missing required parameter 'taskReferenceName' when calling WorkflowResourceApi->SkipTaskFromWorkflow"); + throw new ApiException(400, + "Missing required parameter 'taskReferenceName' when calling WorkflowResourceApi->SkipTaskFromWorkflow"); // verify the required parameter 'skipTaskRequest' is set if (skipTaskRequest == null) - throw new ApiException(400, "Missing required parameter 'skipTaskRequest' when calling WorkflowResourceApi->SkipTaskFromWorkflow"); + throw new ApiException(400, + "Missing required parameter 'skipTaskRequest' when calling WorkflowResourceApi->SkipTaskFromWorkflow"); var localVarPath = "/workflow/{workflowId}/skiptask/{taskReferenceName}"; var localVarPathParams = new Dictionary(); @@ -2632,20 +3033,31 @@ public ApiResponse SkipTaskFromWorkflowWithHttpInfo(string workflowId, s Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (taskReferenceName != null) localVarPathParams.Add("taskReferenceName", this.Configuration.ApiClient.ParameterToString(taskReferenceName)); // path parameter - if (skipTaskRequest != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skipTaskRequest", skipTaskRequest)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (taskReferenceName != null) + localVarPathParams.Add("taskReferenceName", + this.Configuration.ApiClient.ParameterToString(taskReferenceName)); // path parameter + if (skipTaskRequest != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "skipTaskRequest", + skipTaskRequest)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2654,7 +3066,8 @@ public ApiResponse SkipTaskFromWorkflowWithHttpInfo(string workflowId, s // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2692,7 +3105,8 @@ public ApiResponse StartWorkflowWithHttpInfo(StartWorkflowRequest body) { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->StartWorkflow"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->StartWorkflow"); var localVarPath = "/workflow"; var localVarPathParams = new Dictionary(); @@ -2703,16 +3117,20 @@ public ApiResponse StartWorkflowWithHttpInfo(StartWorkflowRequest body) Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "text/plain" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); @@ -2724,6 +3142,7 @@ public ApiResponse StartWorkflowWithHttpInfo(StartWorkflowRequest body) { localVarPostBody = body; // byte array } + // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2732,7 +3151,8 @@ public ApiResponse StartWorkflowWithHttpInfo(StartWorkflowRequest body) // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2758,9 +3178,11 @@ public ApiResponse StartWorkflowWithHttpInfo(StartWorkflowRequest body) /// (optional) /// (optional, default to 0) /// string - public string StartWorkflow(string name, Dictionary body, int? version = null, string correlationId = null, int? priority = null) + public string StartWorkflow(string name, Dictionary body, int? version = null, + string correlationId = null, int? priority = null) { - ApiResponse localVarResponse = StartWorkflowWithHttpInfo(name, body, version, correlationId, priority); + ApiResponse localVarResponse = + StartWorkflowWithHttpInfo(name, body, version, correlationId, priority); return localVarResponse.Data; } @@ -2774,14 +3196,17 @@ public string StartWorkflow(string name, Dictionary body, int? v /// (optional) /// (optional, default to 0) /// ApiResponse of string - public ApiResponse StartWorkflowWithHttpInfo(string name, Dictionary body, int? version = null, string correlationId = null, int? priority = null) + public ApiResponse StartWorkflowWithHttpInfo(string name, Dictionary body, + int? version = null, string correlationId = null, int? priority = null) { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->StartWorkflow"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->StartWorkflow"); // verify the required parameter 'name' is set if (name == null) - throw new ApiException(400, "Missing required parameter 'name' when calling WorkflowResourceApi->StartWorkflow"); + throw new ApiException(400, + "Missing required parameter 'name' when calling WorkflowResourceApi->StartWorkflow"); var localVarPath = "/workflow/{name}"; var localVarPathParams = new Dictionary(); @@ -2792,23 +3217,35 @@ public ApiResponse StartWorkflowWithHttpInfo(string name, Dictionary StartWorkflowWithHttpInfo(string name, Dictionary StartWorkflowWithHttpInfo(string name, Dictionary (optional) /// (optional, default to false) /// ApiResponse of Object(void) - public ApiResponse TerminateWithHttpInfo(string workflowId, string reason = null, bool? triggerFailureWorkflow = null) + public ApiResponse TerminateWithHttpInfo(string workflowId, string reason = null, + bool? triggerFailureWorkflow = null) { // verify the required parameter 'workflowId' is set if (workflowId == null) - throw new ApiException(400, "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Terminate"); + throw new ApiException(400, + "Missing required parameter 'workflowId' when calling WorkflowResourceApi->Terminate"); var localVarPath = "/workflow/{workflowId}"; var localVarPathParams = new Dictionary(); @@ -2877,20 +3318,31 @@ public ApiResponse TerminateWithHttpInfo(string workflowId, string reaso Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (workflowId != null) localVarPathParams.Add("workflowId", this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter - if (reason != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "reason", reason)); // query parameter - if (triggerFailureWorkflow != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "triggerFailureWorkflow", triggerFailureWorkflow)); // query parameter + if (workflowId != null) + localVarPathParams.Add("workflowId", + this.Configuration.ApiClient.ParameterToString(workflowId)); // path parameter + if (reason != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "reason", reason)); // query parameter + if (triggerFailureWorkflow != null) + localVarQueryParams.AddRange( + this.Configuration.ApiClient.ParameterToKeyValuePairs("", "triggerFailureWorkflow", + triggerFailureWorkflow)); // query parameter // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2899,7 +3351,8 @@ public ApiResponse TerminateWithHttpInfo(string workflowId, string reaso // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2937,7 +3390,8 @@ public ApiResponse TestWorkflowWithHttpInfo(WorkflowTestRequest body) { // verify the required parameter 'body' is set if (body == null) - throw new ApiException(400, "Missing required parameter 'body' when calling WorkflowResourceApi->TestWorkflow"); + throw new ApiException(400, + "Missing required parameter 'body' when calling WorkflowResourceApi->TestWorkflow"); var localVarPath = "/workflow/test"; var localVarPathParams = new Dictionary(); @@ -2948,16 +3402,20 @@ public ApiResponse TestWorkflowWithHttpInfo(WorkflowTestRequest body) Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { "application/json" }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "application/json" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); @@ -2969,6 +3427,7 @@ public ApiResponse TestWorkflowWithHttpInfo(WorkflowTestRequest body) { localVarPostBody = body; // byte array } + // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { @@ -2977,7 +3436,8 @@ public ApiResponse TestWorkflowWithHttpInfo(WorkflowTestRequest body) // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3011,7 +3471,6 @@ public Object UploadCompletedWorkflows() /// ApiResponse of Object public ApiResponse UploadCompletedWorkflowsWithHttpInfo() { - var localVarPath = "/workflow/document-store/upload"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); @@ -3021,15 +3480,19 @@ public ApiResponse UploadCompletedWorkflowsWithHttpInfo() Object localVarPostBody = null; // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { + String[] localVarHttpContentTypes = new String[] + { }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + String localVarHttpContentType = + this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { + String[] localVarHttpHeaderAccepts = new String[] + { "*/*" }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + String localVarHttpHeaderAccept = + this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); @@ -3041,7 +3504,8 @@ public ApiResponse UploadCompletedWorkflowsWithHttpInfo() // make the HTTP request IRestResponse localVarResponse = (IRestResponse)this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, + localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -3057,4 +3521,4 @@ public ApiResponse UploadCompletedWorkflowsWithHttpInfo() (Object)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } } -} +} \ No newline at end of file