From 04c1c3b95c97f716f720e4633b5615be985aac64 Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Thu, 22 Feb 2024 16:56:41 +0530 Subject: [PATCH 1/8] Added token refresh logic when token expired while calling api --- Conductor/Api/ApplicationResourceApi.cs | 30 +++++----- Conductor/Api/AuthorizationResourceApi.cs | 6 +- Conductor/Api/EventResourceApi.cs | 18 +++--- Conductor/Api/GroupResourceApi.cs | 20 +++---- Conductor/Api/MetadataResourceApi.cs | 22 +++---- Conductor/Api/SchedulerResourceApi.cs | 30 +++++----- Conductor/Api/SecretResourceApi.cs | 20 +++---- Conductor/Api/TagsApi.cs | 18 +++--- Conductor/Api/TaskResourceApi.cs | 34 +++++------ Conductor/Api/TokenResourceApi.cs | 4 +- Conductor/Api/UserResourceApi.cs | 12 ++-- Conductor/Api/WorkflowBulkResourceApi.cs | 10 ++-- Conductor/Api/WorkflowResourceApi.cs | 60 +++++++++---------- Conductor/Client/ApiClient.cs | 56 ++++++++++++----- .../Client/Authentication/TokenHandler.cs | 2 +- Conductor/Client/Configuration.cs | 10 ++++ Conductor/Client/IReadableConfiguration.cs | 8 ++- 17 files changed, 201 insertions(+), 159 deletions(-) diff --git a/Conductor/Api/ApplicationResourceApi.cs b/Conductor/Api/ApplicationResourceApi.cs index f7e789d..bd848f7 100644 --- a/Conductor/Api/ApplicationResourceApi.cs +++ b/Conductor/Api/ApplicationResourceApi.cs @@ -159,7 +159,7 @@ public ApiResponse AddRoleToApplicationUserWithHttpInfo(string applicati // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -241,7 +241,7 @@ public ApiResponse CreateAccessKeyWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -331,7 +331,7 @@ public ApiResponse CreateApplicationWithHttpInfo(CreateOrUpdateApplicati // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -420,7 +420,7 @@ public ApiResponse DeleteAccessKeyWithHttpInfo(string applicationId, str // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -502,7 +502,7 @@ public ApiResponse DeleteApplicationWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -597,7 +597,7 @@ public ApiResponse DeleteTagForApplicationWithHttpInfo(List b // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -679,7 +679,7 @@ public ApiResponse GetAccessKeysWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -761,7 +761,7 @@ public ApiResponse GetAppByAccessKeyIdWithHttpInfo(string accessKeyId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -843,7 +843,7 @@ public ApiResponse GetApplicationWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -925,7 +925,7 @@ public ApiResponse> GetTagsForApplicationWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1000,7 +1000,7 @@ public ApiResponse> ListApplicationsWithHttpI // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1094,7 +1094,7 @@ public ApiResponse PutTagForApplicationWithHttpInfo(List body // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1182,7 +1182,7 @@ public ApiResponse RemoveRoleFromApplicationUserWithHttpInfo(string appl // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1271,7 +1271,7 @@ public ApiResponse ToggleAccessKeyStatusWithHttpInfo(string applicationI // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1368,7 +1368,7 @@ public ApiResponse UpdateApplicationWithHttpInfo(CreateOrUpdateApplicati // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/AuthorizationResourceApi.cs b/Conductor/Api/AuthorizationResourceApi.cs index 0dd28d4..97f1138 100644 --- a/Conductor/Api/AuthorizationResourceApi.cs +++ b/Conductor/Api/AuthorizationResourceApi.cs @@ -162,7 +162,7 @@ public ApiResponse GetPermissionsWithHttpInfo(string type, string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -251,7 +251,7 @@ public ApiResponse GrantPermissionsWithHttpInfo(AuthorizationRequest b // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -341,7 +341,7 @@ public ApiResponse RemovePermissionsWithHttpInfo(AuthorizationRequest // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/EventResourceApi.cs b/Conductor/Api/EventResourceApi.cs index 4bf8f70..6795b94 100644 --- a/Conductor/Api/EventResourceApi.cs +++ b/Conductor/Api/EventResourceApi.cs @@ -159,7 +159,7 @@ public ApiResponse AddEventHandlerWithHttpInfo(EventHandler body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -245,7 +245,7 @@ public ApiResponse DeleteQueueConfigWithHttpInfo(string queueType, strin // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -320,7 +320,7 @@ public ApiResponse> GetEventHandlersWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -406,7 +406,7 @@ public ApiResponse> GetEventHandlersForEventWithHttpInfo(stri // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -495,7 +495,7 @@ public ApiResponse> GetQueueConfigWithHttpInfo(string // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -570,7 +570,7 @@ public ApiResponse> GetQueueNamesWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -671,7 +671,7 @@ public ApiResponse PutQueueConfigWithHttpInfo(string body, string queueT // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -750,7 +750,7 @@ public ApiResponse RemoveEventHandlerStatusWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -837,7 +837,7 @@ public ApiResponse UpdateEventHandlerWithHttpInfo(EventHandler body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/GroupResourceApi.cs b/Conductor/Api/GroupResourceApi.cs index 9018a90..5eeae45 100644 --- a/Conductor/Api/GroupResourceApi.cs +++ b/Conductor/Api/GroupResourceApi.cs @@ -162,7 +162,7 @@ public ApiResponse AddUserToGroupWithHttpInfo(string groupId, string use // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -256,7 +256,7 @@ public ApiResponse AddUsersToGroupWithHttpInfo(List body, string // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -338,7 +338,7 @@ public ApiResponse DeleteGroupWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -420,7 +420,7 @@ public ApiResponse GetGrantedPermissionsWithHttpInfo(string groupId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -502,7 +502,7 @@ public ApiResponse GetGroupWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -584,7 +584,7 @@ public ApiResponse GetUsersInGroupWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -659,7 +659,7 @@ public ApiResponse> ListGroupsWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -748,7 +748,7 @@ public ApiResponse RemoveUserFromGroupWithHttpInfo(string groupId, strin // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -842,7 +842,7 @@ public ApiResponse RemoveUsersFromGroupWithHttpInfo(List body, s // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -939,7 +939,7 @@ public ApiResponse UpsertGroupWithHttpInfo(UpsertGroupRequest body, stri // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/MetadataResourceApi.cs b/Conductor/Api/MetadataResourceApi.cs index b8589f0..d5d7742 100644 --- a/Conductor/Api/MetadataResourceApi.cs +++ b/Conductor/Api/MetadataResourceApi.cs @@ -166,7 +166,7 @@ public ApiResponse CreateWithHttpInfo(WorkflowDef body, bool? overwrite // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -256,7 +256,7 @@ public ApiResponse GetWithHttpInfo(string name, int? version = null // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -350,7 +350,7 @@ public ApiResponse> GetAllWorkflowsWithHttpInfo(string access // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -436,7 +436,7 @@ public ApiResponse GetTaskDefWithHttpInfo(string tasktype, bool? metada // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -527,7 +527,7 @@ public ApiResponse> GetTaskDefsWithHttpInfo(string access = null, // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -617,7 +617,7 @@ public ApiResponse RegisterTaskDefWithHttpInfo(List body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -696,7 +696,7 @@ public ApiResponse UnregisterTaskDefWithHttpInfo(string tasktype) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -782,7 +782,7 @@ public ApiResponse UnregisterWorkflowDefWithHttpInfo(string name, int? v // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -876,7 +876,7 @@ public ApiResponse UpdateWithHttpInfo(List body, bool? over // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -966,7 +966,7 @@ public ApiResponse UpdateTaskDefWithHttpInfo(TaskDef body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1041,7 +1041,7 @@ public ApiResponse UploadWorkflowsAndTasksDefinitionsToS3WithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/SchedulerResourceApi.cs b/Conductor/Api/SchedulerResourceApi.cs index 0c71c03..5d03131 100644 --- a/Conductor/Api/SchedulerResourceApi.cs +++ b/Conductor/Api/SchedulerResourceApi.cs @@ -154,7 +154,7 @@ public ApiResponse DeleteScheduleWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -248,7 +248,7 @@ public ApiResponse DeleteTagForScheduleWithHttpInfo(List body // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -327,7 +327,7 @@ public ApiResponse> GetAllSchedulesWithHttpInfo(string wo // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -421,7 +421,7 @@ public ApiResponse> GetAllSchedulesWithHttpInfo(string wo // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -503,7 +503,7 @@ public ApiResponse GetScheduleWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -585,7 +585,7 @@ public ApiResponse> GetTagsForScheduleWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -660,7 +660,7 @@ public ApiResponse> PauseAllSchedulesWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -742,7 +742,7 @@ public ApiResponse PauseScheduleWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -836,7 +836,7 @@ public ApiResponse PutTagForScheduleWithHttpInfo(List body, s // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -911,7 +911,7 @@ public ApiResponse> RequeueAllExecutionRecordsWithHtt // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -986,7 +986,7 @@ public ApiResponse> ResumeAllSchedulesWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1068,7 +1068,7 @@ public ApiResponse ResumeScheduleWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1158,7 +1158,7 @@ public ApiResponse SaveScheduleWithHttpInfo(SaveScheduleRequest body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1253,7 +1253,7 @@ public ApiResponse SearchV22WithHttp // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1326,7 +1326,7 @@ public ApiResponse TestTimeoutWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/SecretResourceApi.cs b/Conductor/Api/SecretResourceApi.cs index e16fc56..20ba88d 100644 --- a/Conductor/Api/SecretResourceApi.cs +++ b/Conductor/Api/SecretResourceApi.cs @@ -154,7 +154,7 @@ public ApiResponse DeleteSecretWithHttpInfo(string key) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -248,7 +248,7 @@ public ApiResponse DeleteTagForSecretWithHttpInfo(List body, // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -330,7 +330,7 @@ public ApiResponse GetSecretWithHttpInfo(string key) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -412,7 +412,7 @@ public ApiResponse> GetTagsWithHttpInfo(string key) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -486,7 +486,7 @@ public ApiResponse ListAllSecretNamesWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -561,7 +561,7 @@ public ApiResponse> ListSecretsThatUserCanGrantAccessToWithHttpInfo // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -636,7 +636,7 @@ public ApiResponse> ListSecretsWithTagsThatUserCanGrantAcce // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -733,7 +733,7 @@ public ApiResponse PutSecretWithHttpInfo(string body, string key) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -827,7 +827,7 @@ public ApiResponse PutTagForSecretWithHttpInfo(List body, str // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -909,7 +909,7 @@ public ApiResponse SecretExistsWithHttpInfo(string key) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/TagsApi.cs b/Conductor/Api/TagsApi.cs index 5755755..44a010f 100644 --- a/Conductor/Api/TagsApi.cs +++ b/Conductor/Api/TagsApi.cs @@ -170,7 +170,7 @@ public ApiResponse AddTaskTagWithHttpInfo(TagObject body, string taskNam // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -267,7 +267,7 @@ public ApiResponse AddWorkflowTagWithHttpInfo(TagObject body, string nam // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -364,7 +364,7 @@ public ApiResponse DeleteTaskTagWithHttpInfo(TagString body, string task // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -461,7 +461,7 @@ public ApiResponse DeleteWorkflowTagWithHttpInfo(TagObject body, string // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -536,7 +536,7 @@ public ApiResponse> GetTagsWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -618,7 +618,7 @@ public ApiResponse> GetTaskTagsWithHttpInfo(string taskName) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -700,7 +700,7 @@ public ApiResponse> GetWorkflowTagsWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -797,7 +797,7 @@ public ApiResponse SetTaskTagsWithHttpInfo(List body, string // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -894,7 +894,7 @@ public ApiResponse SetWorkflowTagsWithHttpInfo(List body, str // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/TaskResourceApi.cs b/Conductor/Api/TaskResourceApi.cs index aa2fa3d..d86616a 100644 --- a/Conductor/Api/TaskResourceApi.cs +++ b/Conductor/Api/TaskResourceApi.cs @@ -148,7 +148,7 @@ public Conductor.Client.ExceptionFactory ExceptionFactory // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -223,7 +223,7 @@ public Conductor.Client.ExceptionFactory ExceptionFactory // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -321,7 +321,7 @@ public ApiResponse> BatchPollWithHttpInfo(string tasktype, string wor // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -431,7 +431,7 @@ public ApiResponse> GetAllPollDataWithHttpInfo(long? // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -527,7 +527,7 @@ public ApiResponse GetExternalStorageLocationWithHttpIn // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -609,7 +609,7 @@ public ApiResponse> GetPollDataWithHttpInfo(string taskType) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -691,7 +691,7 @@ public ApiResponse GetTaskWithHttpInfo(string taskId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -773,7 +773,7 @@ public ApiResponse> GetTaskLogsWithHttpInfo(string taskId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -867,7 +867,7 @@ public ApiResponse LogWithHttpInfo(string body, string taskId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -957,7 +957,7 @@ public ApiResponse PollWithHttpInfo(string tasktype, string workerid = nul // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1039,7 +1039,7 @@ public ApiResponse RequeuePendingTaskWithHttpInfo(string taskType) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1134,7 +1134,7 @@ public ApiResponse SearchWithHttpInfo(int? start = null // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1229,7 +1229,7 @@ public ApiResponse SearchV2WithHttpInfo(int? start = null, int // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1308,7 +1308,7 @@ public ApiResponse SearchV2WithHttpInfo(int? start = null, int // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1398,7 +1398,7 @@ public ApiResponse UpdateTaskWithHttpInfo(TaskResult body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1517,7 +1517,7 @@ public ApiResponse UpdateTaskWithHttpInfo(Dictionary bod // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1644,7 +1644,7 @@ public ApiResponse UpdateTaskSyncWithHttpInfo(Dictionary GenerateTokenWithHttpInfo(GenerateTokenRequest body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -231,7 +231,7 @@ public ApiResponse GetUserInfoWithHttpInfo(bool? claims = null) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/UserResourceApi.cs b/Conductor/Api/UserResourceApi.cs index 2127e7f..a54af7f 100644 --- a/Conductor/Api/UserResourceApi.cs +++ b/Conductor/Api/UserResourceApi.cs @@ -154,7 +154,7 @@ public ApiResponse DeleteUserWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -236,7 +236,7 @@ public ApiResponse GetGrantedPermissionsWithHttpInfo(string userId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -318,7 +318,7 @@ public ApiResponse GetUserWithHttpInfo(string id) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -397,7 +397,7 @@ public ApiResponse> ListUsersWithHttpInfo(bool? apps = null) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -491,7 +491,7 @@ public ApiResponse SendInviteEmailWithHttpInfo(string id, ConductorUser // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -588,7 +588,7 @@ public ApiResponse UpsertUserWithHttpInfo(UpsertUserRequest body, string // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/WorkflowBulkResourceApi.cs b/Conductor/Api/WorkflowBulkResourceApi.cs index 2f1f39d..617421d 100644 --- a/Conductor/Api/WorkflowBulkResourceApi.cs +++ b/Conductor/Api/WorkflowBulkResourceApi.cs @@ -162,7 +162,7 @@ public ApiResponse PauseWorkflowWithHttpInfo(List body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -256,7 +256,7 @@ public ApiResponse RestartWithHttpInfo(List body, bool? us // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -346,7 +346,7 @@ public ApiResponse ResumeWorkflowWithHttpInfo(List body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -436,7 +436,7 @@ public ApiResponse RetryWithHttpInfo(List body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -534,7 +534,7 @@ public ApiResponse TerminateWithHttpInfo(List body, string // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Api/WorkflowResourceApi.cs b/Conductor/Api/WorkflowResourceApi.cs index 2f5dca4..29aa3ff 100644 --- a/Conductor/Api/WorkflowResourceApi.cs +++ b/Conductor/Api/WorkflowResourceApi.cs @@ -151,7 +151,7 @@ public ApiResponse DecideWithHttpInfo(string workflowId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -232,7 +232,7 @@ public ApiResponse DeleteWithHttpInfo(string workflowId, bool? archiveWo // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -347,7 +347,7 @@ public ApiResponse ExecuteWorkflowWithHttpInfo(StartWorkflowRequest // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -436,7 +436,7 @@ public ApiResponse UpdateWorkflowVariablesWithHttpInfo(string workflow // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -554,7 +554,7 @@ public ApiResponse GetExecutionStatusWithHttpInfo(string workflowId, b // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -648,7 +648,7 @@ public ApiResponse GetExecutionStatusTaskListWithHt // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -744,7 +744,7 @@ public ApiResponse GetExternalStorageLocationWithHttpIn // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -838,7 +838,7 @@ public ApiResponse> GetRunningWorkflowWithHttpInfo(string name, int // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -928,7 +928,7 @@ public ApiResponse GetWorkflowStatusSummaryWithHttpInfo(string w // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1033,7 +1033,7 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1131,7 +1131,7 @@ public ApiResponse>> GetWorkflowsWithHttpInfo( // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1228,7 +1228,7 @@ public ApiResponse> GetWorkflowsWithHttpInfo(string name, string // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1307,7 +1307,7 @@ public ApiResponse PauseWorkflowWithHttpInfo(string workflowId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1407,7 +1407,7 @@ public ApiResponse JumpToTaskWithHttpInfo(Dictionary bod // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1505,7 +1505,7 @@ public ApiResponse RerunWithHttpInfo(RerunWorkflowRequest body, string w // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1584,7 +1584,7 @@ public ApiResponse ResetWorkflowWithHttpInfo(string workflowId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1667,7 +1667,7 @@ public ApiResponse RestartWithHttpInfo(string workflowId, bool? useLates // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1746,7 +1746,7 @@ public ApiResponse ResumeWorkflowWithHttpInfo(string workflowId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1829,7 +1829,7 @@ public ApiResponse RetryWithHttpInfo(string workflowId, bool? resumeSubw // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1932,7 +1932,7 @@ public ApiResponse SearchWithHttpInfo(str // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2027,7 +2027,7 @@ public ApiResponse SearchV2WithHttpInfo(int? start = null, // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2122,7 +2122,7 @@ public ApiResponse SearchWorkflowsByTasksWithHttpIn // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2217,7 +2217,7 @@ public ApiResponse SearchWorkflowsByTasksV2WithHttpInfo(in // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2310,7 +2310,7 @@ public ApiResponse SkipTaskFromWorkflowWithHttpInfo(string workflowId, s // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Put, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2400,7 +2400,7 @@ public ApiResponse StartWorkflowWithHttpInfo(StartWorkflowRequest body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2509,7 +2509,7 @@ public ApiResponse StartWorkflowWithHttpInfo(string name, Dictionary TerminateWithHttpInfo(string workflowId, string reaso // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2686,7 +2686,7 @@ public ApiResponse TestWorkflowWithHttpInfo(WorkflowTestRequest body) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2760,7 +2760,7 @@ public ApiResponse UploadCompletedWorkflowsWithHttpInfo() // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2876,7 +2876,7 @@ public ApiResponse UpdateWorkflowWithHttpInfo(string workflowId, Wo // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Client/ApiClient.cs b/Conductor/Client/ApiClient.cs index beaccf8..28d8225 100644 --- a/Conductor/Client/ApiClient.cs +++ b/Conductor/Client/ApiClient.cs @@ -1,21 +1,21 @@ - +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using RestSharp; using System; using System.Collections; using System.Collections.Generic; -using System.Text.RegularExpressions; using System.IO; using System.Linq; using System.Text; -using Newtonsoft.Json; -using RestSharp; +using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Conductor.Client { - /// - /// API client is mainly responsible for making the HTTP call to the API backend. - /// - public partial class ApiClient + /// + /// API client is mainly responsible for making the HTTP call to the API backend. + /// + public partial class ApiClient { public JsonSerializerSettings serializerSettings = new JsonSerializerSettings { @@ -148,6 +148,7 @@ private RestRequest PrepareRequest( /// /// Makes the HTTP request (Sync). + /// If the token is expired then retrying the api call with refreshed Token /// /// URL path. /// HTTP method. @@ -160,20 +161,47 @@ private RestRequest PrepareRequest( /// Content Type of the request /// Object public Object CallApi( - String path, RestSharp.Method method, List> queryParams, Object postBody, + String path, Method method, List> queryParams, Object postBody, Dictionary headerParams, Dictionary formParams, Dictionary fileParams, Dictionary pathParams, - String contentType) + String contentType, Configuration configuration = null) { - var request = PrepareRequest( - path, method, queryParams, postBody, headerParams, formParams, fileParams, - pathParams, contentType); + RestResponse response = null; + bool isRetried = false; + bool isTokenRefreshed = false; + do + { + isRetried = false; + var request = PrepareRequest( + path, method, queryParams, postBody, headerParams, formParams, fileParams, + pathParams, contentType); + response = ExecuteRestClientAPI(request, method); + + if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized) + { + var JsonContent = JsonConvert.DeserializeObject(response.Content); + if (JsonContent["error"].ToString() == "EXPIRED_TOKEN" && !isTokenRefreshed) + { + string refreshToken = configuration.GetRefreshToken(); + headerParams["X-Authorization"] = refreshToken; + isRetried = true; + isTokenRefreshed = true; + } + } + } while (isRetried); + + return (Object)response; + } + + private RestResponse ExecuteRestClientAPI(RestRequest request, Method method) + { InterceptRequest(request); var response = RestClient.Execute(request, method); InterceptResponse(request, response); FormatHeaders(response); - return (Object)response; + + return response; } public async Task CallApiAsync( diff --git a/Conductor/Client/Authentication/TokenHandler.cs b/Conductor/Client/Authentication/TokenHandler.cs index 329a65b..7fa978c 100644 --- a/Conductor/Client/Authentication/TokenHandler.cs +++ b/Conductor/Client/Authentication/TokenHandler.cs @@ -29,7 +29,7 @@ public string GetToken(OrkesAuthenticationSettings authenticationSettings, Token return RefreshToken(authenticationSettings, tokenClient); } - private string RefreshToken(OrkesAuthenticationSettings authenticationSettings, TokenResourceApi tokenClient) + public string RefreshToken(OrkesAuthenticationSettings authenticationSettings, TokenResourceApi tokenClient) { lock (_lockObject) { diff --git a/Conductor/Client/Configuration.cs b/Conductor/Client/Configuration.cs index f863236..13f06da 100644 --- a/Conductor/Client/Configuration.cs +++ b/Conductor/Client/Configuration.cs @@ -235,6 +235,16 @@ public void AddDefaultHeader(string key, string value) return client; } + /// + /// Get the refresh token + /// + /// new token + public string GetRefreshToken() + { + _tokenClient = GetClient(); + return _tokenHandler.RefreshToken(AuthenticationSettings, _tokenClient); + } + #endregion Methods } } diff --git a/Conductor/Client/IReadableConfiguration.cs b/Conductor/Client/IReadableConfiguration.cs index 6a4c191..a971f15 100644 --- a/Conductor/Client/IReadableConfiguration.cs +++ b/Conductor/Client/IReadableConfiguration.cs @@ -1,5 +1,3 @@ - - using System.Collections.Generic; namespace Conductor.Client @@ -38,5 +36,11 @@ public interface IReadableConfiguration /// /// Temp folder path. string TempFolderPath { get; } + + /// + /// Get the refresh token + /// + /// new token + string GetRefreshToken(); } } From 571fc2a13112a286fba81160ac774b88fa2714f3 Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Thu, 22 Feb 2024 17:56:09 +0530 Subject: [PATCH 2/8] Space issue --- Conductor/Client/ApiClient.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Conductor/Client/ApiClient.cs b/Conductor/Client/ApiClient.cs index 28d8225..c89e76d 100644 --- a/Conductor/Client/ApiClient.cs +++ b/Conductor/Client/ApiClient.cs @@ -12,10 +12,10 @@ namespace Conductor.Client { - /// - /// API client is mainly responsible for making the HTTP call to the API backend. - /// - public partial class ApiClient + /// + /// API client is mainly responsible for making the HTTP call to the API backend. + /// + public partial class ApiClient { public JsonSerializerSettings serializerSettings = new JsonSerializerSettings { From a30ca87fa9ca7a8d83bdd09cafa86519457a2b7e Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Fri, 23 Feb 2024 11:54:16 +0530 Subject: [PATCH 3/8] Addressed review comments --- Conductor/Client/ApiClient.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Conductor/Client/ApiClient.cs b/Conductor/Client/ApiClient.cs index c89e76d..8de5de7 100644 --- a/Conductor/Client/ApiClient.cs +++ b/Conductor/Client/ApiClient.cs @@ -167,11 +167,9 @@ public Object CallApi( String contentType, Configuration configuration = null) { RestResponse response = null; - bool isRetried = false; bool isTokenRefreshed = false; do { - isRetried = false; var request = PrepareRequest( path, method, queryParams, postBody, headerParams, formParams, fileParams, pathParams, contentType); @@ -181,15 +179,19 @@ public Object CallApi( if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized) { var JsonContent = JsonConvert.DeserializeObject(response.Content); + if (JsonContent["error"].ToString() == "EXPIRED_TOKEN" && !isTokenRefreshed) { string refreshToken = configuration.GetRefreshToken(); headerParams["X-Authorization"] = refreshToken; - isRetried = true; isTokenRefreshed = true; } + else + isTokenRefreshed = false; } - } while (isRetried); + else + isTokenRefreshed = false; + } while (isTokenRefreshed); return (Object)response; } From b262019db2084ed1fce183cdfa74b226c231fe8d Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Fri, 23 Feb 2024 16:09:31 +0530 Subject: [PATCH 4/8] Added retry mechanism for refreshToken --- Conductor/Client/ApiClient.cs | 46 ++++++++++++++++++++--------------- Conductor/Client/Constants.cs | 7 +++--- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/Conductor/Client/ApiClient.cs b/Conductor/Client/ApiClient.cs index 8de5de7..9f85a70 100644 --- a/Conductor/Client/ApiClient.cs +++ b/Conductor/Client/ApiClient.cs @@ -1,3 +1,5 @@ +using Conductor.Client.Models; +using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using RestSharp; @@ -6,6 +8,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Net.Mime; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -165,44 +168,49 @@ public Object CallApi( Dictionary headerParams, Dictionary formParams, Dictionary fileParams, Dictionary pathParams, String contentType, Configuration configuration = null) + { + int retryCount = 0; + RestResponse response = RetryRestClientCallApi(path, method, queryParams, postBody, headerParams, + formParams, fileParams, pathParams, contentType, configuration, ref retryCount); + + return (Object)response; + } + + private RestResponse RetryRestClientCallApi(String path, Method method, List> queryParams, Object postBody, + Dictionary headerParams, Dictionary formParams, + Dictionary fileParams, Dictionary pathParams, + String contentType, Configuration configuration, ref int retryCount) { RestResponse response = null; - bool isTokenRefreshed = false; - do + while (retryCount < Constants.MAX_TOKEN_REFRESH_RETRY_COUNT) { + bool isTokenRefreshed = false; // reset refreshStatusflag + var request = PrepareRequest( path, method, queryParams, postBody, headerParams, formParams, fileParams, pathParams, contentType); - response = ExecuteRestClientAPI(request, method); + InterceptRequest(request); + response = RestClient.Execute(request, method); + InterceptResponse(request, response); + FormatHeaders(response); if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized) { var JsonContent = JsonConvert.DeserializeObject(response.Content); - if (JsonContent["error"].ToString() == "EXPIRED_TOKEN" && !isTokenRefreshed) + if (JsonContent["error"].ToString() == "EXPIRED_TOKEN" && retryCount < Constants.MAX_TOKEN_REFRESH_RETRY_COUNT) { string refreshToken = configuration.GetRefreshToken(); headerParams["X-Authorization"] = refreshToken; isTokenRefreshed = true; + retryCount++; } - else - isTokenRefreshed = false; } - else - isTokenRefreshed = false; - } while (isTokenRefreshed); - - return (Object)response; - } - - private RestResponse ExecuteRestClientAPI(RestRequest request, Method method) - { - InterceptRequest(request); - var response = RestClient.Execute(request, method); - InterceptResponse(request, response); - FormatHeaders(response); + if (!isTokenRefreshed) + break; + } return response; } diff --git a/Conductor/Client/Constants.cs b/Conductor/Client/Constants.cs index 2879382..d56e89c 100644 --- a/Conductor/Client/Constants.cs +++ b/Conductor/Client/Constants.cs @@ -5,10 +5,11 @@ /// public static class Constants { - public const string KEY_ID = ""; - public const string KEY_SECRET = ""; - public const string OWNER_EMAIL = ""; + public const string KEY_ID = "2aa73e29-de29-479c-8b6d-5b45aa48aa4a"; + public const string KEY_SECRET = "wygpIUK34iroLawafQzH3jgrbbMGUQvdeh46xicPvz9f6Kiq"; + public const string OWNER_EMAIL = "jitheshpoojary04@gmail.com"; public const int REST_CLIENT_REQUEST_TIME_OUT = 20000; + public const int MAX_TOKEN_REFRESH_RETRY_COUNT = 3; } } From a84be6cb52551e29dabe5f014105fcc6d51f4c9e Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Fri, 23 Feb 2024 16:14:05 +0530 Subject: [PATCH 5/8] Updated Constants file --- Conductor/Client/Constants.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Conductor/Client/Constants.cs b/Conductor/Client/Constants.cs index d56e89c..dd2b345 100644 --- a/Conductor/Client/Constants.cs +++ b/Conductor/Client/Constants.cs @@ -5,9 +5,9 @@ /// public static class Constants { - public const string KEY_ID = "2aa73e29-de29-479c-8b6d-5b45aa48aa4a"; - public const string KEY_SECRET = "wygpIUK34iroLawafQzH3jgrbbMGUQvdeh46xicPvz9f6Kiq"; - public const string OWNER_EMAIL = "jitheshpoojary04@gmail.com"; + public const string KEY_ID = ""; + public const string KEY_SECRET = ""; + public const string OWNER_EMAIL = ""; public const int REST_CLIENT_REQUEST_TIME_OUT = 20000; public const int MAX_TOKEN_REFRESH_RETRY_COUNT = 3; From 0e7e82a6072965c3a845a7acdbae6175309f74f0 Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Fri, 23 Feb 2024 18:21:42 +0530 Subject: [PATCH 6/8] Review comment addressed --- Conductor/Client/ApiClient.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Conductor/Client/ApiClient.cs b/Conductor/Client/ApiClient.cs index 9f85a70..72baba1 100644 --- a/Conductor/Client/ApiClient.cs +++ b/Conductor/Client/ApiClient.cs @@ -184,11 +184,9 @@ private RestResponse RetryRestClientCallApi(String path, Method method, List(response.Content); - if (JsonContent["error"].ToString() == "EXPIRED_TOKEN" && retryCount < Constants.MAX_TOKEN_REFRESH_RETRY_COUNT) + if (JsonContent["error"].ToString() == "EXPIRED_TOKEN") { string refreshToken = configuration.GetRefreshToken(); headerParams["X-Authorization"] = refreshToken; - isTokenRefreshed = true; retryCount++; } } - - if (!isTokenRefreshed) + else + { break; + } } return response; } From 5fb624566bc13f092b7cfb237e45c7aa7339b23f Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Mon, 26 Feb 2024 13:15:05 +0530 Subject: [PATCH 7/8] Supplying Configuration object in newly created Human task resource api endpoints --- Conductor/Api/HumanTaskResourceApi.cs | 39 +++++++++++++-------------- Conductor/Client/ApiClient.cs | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/Conductor/Api/HumanTaskResourceApi.cs b/Conductor/Api/HumanTaskResourceApi.cs index d7249ad..ff06275 100644 --- a/Conductor/Api/HumanTaskResourceApi.cs +++ b/Conductor/Api/HumanTaskResourceApi.cs @@ -149,7 +149,7 @@ public ApiResponse AssignAndClaimWithHttpInfo(string taskId, str // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -302,7 +302,7 @@ public ApiResponse ClaimTaskWithHttpInfo(string taskId, bool? ov // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -444,7 +444,7 @@ public ApiResponse DeleteTemplateByNameWithHttpInfo(string name) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -587,7 +587,7 @@ public ApiResponse DeleteTemplatesByNameAndVersionWithHttpInfo(string na // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -726,14 +726,13 @@ public ApiResponse> GetAllTemplatesWithHttpInfo(string n // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { - localVarHeaderParams["X-Authorization"] = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImtqbVlNWThEV2VOU1lKZmZSSjFXNSJ9.eyJnaXZlbl9uYW1lIjoiSml0aGVzaCIsImZhbWlseV9uYW1lIjoiUG9vamFyeSIsIm5pY2tuYW1lIjoiaml0aGVzaHBvb2phcnkwNCIsIm5hbWUiOiJKaXRoZXNoIFBvb2phcnkiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EvQUNnOG9jS05XLUVyUXlvZ0JGY25fZ1BFaEs5b1o1TldUU19JUlMxTHhJQURBRkJtcmp3PXM5Ni1jIiwibG9jYWxlIjoiZW4tR0IiLCJ1cGRhdGVkX2F0IjoiMjAyNC0wMi0yMVQwNDoyNjo1Mi42MTdaIiwiZW1haWwiOiJqaXRoZXNocG9vamFyeTA0QGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJpc3MiOiJodHRwczovL2F1dGgub3JrZXMuaW8vIiwiYXVkIjoiczRITGRWYm5hSk1HdlBTZ3gyWUxweW5mSmxXN0dWMmUiLCJpYXQiOjE3MDg0ODk2MTQsImV4cCI6MTcwODUyNTYxNCwic3ViIjoiZ29vZ2xlLW9hdXRoMnwxMDQ0NTAzNjIwODI1MjU1MDQ3NzgiLCJzaWQiOiI0QTlJdlJ0cWJwN05EQVNCMkkwN242VXROM3piajBtViIsIm5vbmNlIjoiZFdReE1FUjFXakkwVFhZNU1UQXlTVXc1VFZKSFJVUkpkVmRRZFd4MFNrMHlkMUprUlVaMFkxbG1UQT09In0.LHrepFFKeL97ERgYT-wx2sXMvnR6jRySFSFUJwtVW5iwdUPSAIaMwaYBjJD3zXWH5Xn0_13hr1oE_xk39J4uCfzT8s4zySn7ctnKXHCvdMLynBaG-QKYn6oG5f-ChLmLuEijTyd9-2mjjVZ0z7rSZ6-6bps2t2zPZIHSGzsIn3cSJ7jTBbJSy8Aa4RUuoWiKPkyWXKWxVUdtZnvNPz69VHbG_0Ga310X1Hu87wgKVUJjt4ErZ6BU2hP6ykgsedsJ7xSwjFUX2YGspuXEt9jOV6dk0CjROAVm-Ie2sTgqjJHZq9nOX_xzaqf-kREtBM7VHaDGHK4G5ydkgtfSgSUsmg"; - //this.Configuration.AccessToken; + localVarHeaderParams["X-Authorization"] = this.Configuration.AccessToken; } // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -874,7 +873,7 @@ public ApiResponse GetTaskWithHttpInfo(string taskId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1015,7 +1014,7 @@ public ApiResponse> GetTaskDisplayNamesWithHttpInfo(string searchTy // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1162,7 +1161,7 @@ public ApiResponse GetTemplateByNameAndVersionWithHttpInfo(st // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1309,7 +1308,7 @@ public ApiResponse GetTemplateByTaskIdWithHttpInfo(string hum // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1462,7 +1461,7 @@ public ApiResponse ReassignTaskWithHttpInfo(List bo // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1613,7 +1612,7 @@ public ApiResponse ReleaseTaskWithHttpInfo(string taskId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1763,7 +1762,7 @@ public ApiResponse SaveTemplateWithHttpInfo(HumanTaskTemplate // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -1926,7 +1925,7 @@ public ApiResponse> SaveTemplatesWithHttpInfo(List SearchWithHttpInfo(HumanTaskSearch bod // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2236,7 +2235,7 @@ public ApiResponse SkipTaskWithHttpInfo(string taskId, string reason = n // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; @@ -2393,7 +2392,7 @@ public ApiResponse UpdateTaskOutputWithHttpInfo(Dictionary UpdateTaskOutputByRefWithHttpInfo(Dictionary GetConductorTaskByIdWithHttpInfo(string taskId) // make the HTTP request RestResponse localVarResponse = (RestResponse)this.Configuration.ApiClient.CallApi(localVarPath, Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); + localVarPathParams, localVarHttpContentType, this.Configuration); int localVarStatusCode = (int)localVarResponse.StatusCode; diff --git a/Conductor/Client/ApiClient.cs b/Conductor/Client/ApiClient.cs index 72baba1..e5e8f2b 100644 --- a/Conductor/Client/ApiClient.cs +++ b/Conductor/Client/ApiClient.cs @@ -167,7 +167,7 @@ public Object CallApi( String path, Method method, List> queryParams, Object postBody, Dictionary headerParams, Dictionary formParams, Dictionary fileParams, Dictionary pathParams, - String contentType, Configuration configuration = null) + String contentType, Configuration configuration) { int retryCount = 0; RestResponse response = RetryRestClientCallApi(path, method, queryParams, postBody, headerParams, From 8f809638b04bb0b57c2550a24a7fb8e734b64e2c Mon Sep 17 00:00:00 2001 From: Jithesh Poojary Date: Fri, 3 May 2024 20:06:14 +0530 Subject: [PATCH 8/8] Modified TimeOut for HttpClient. --- Conductor/Client/Configuration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Conductor/Client/Configuration.cs b/Conductor/Client/Configuration.cs index 13f06da..62fb1f9 100644 --- a/Conductor/Client/Configuration.cs +++ b/Conductor/Client/Configuration.cs @@ -76,7 +76,7 @@ public static Configuration Default private readonly TokenHandler _tokenHandler = new TokenHandler(); private TokenResourceApi _tokenClient = null; - private int Timeout = 10000; + private int Timeout = 30000; #endregion Private Members