From 81b82432623269d48cdad004a078de3d51b61194 Mon Sep 17 00:00:00 2001 From: Jithesh <92319982+Jithesh-poojary@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:04:27 +0530 Subject: [PATCH] Adding Required params for HumanTaskResource API (#111) * HumanTaskResource --- 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,