From 8eea0ea49b444cfd64b750c8daa0343aea966015 Mon Sep 17 00:00:00 2001 From: "Katari.Manikanta" Date: Thu, 22 Feb 2024 11:00:26 +0530 Subject: [PATCH] Renamings and removing unwanted methods --- Conductor/Api/HumanTaskResourceApi.cs | 161 ++----------------------- Conductor/Api/IHumanTaskResourceApi.cs | 26 +--- 2 files changed, 12 insertions(+), 175 deletions(-) diff --git a/Conductor/Api/HumanTaskResourceApi.cs b/Conductor/Api/HumanTaskResourceApi.cs index bfc0b43..d7249ad 100644 --- a/Conductor/Api/HumanTaskResourceApi.cs +++ b/Conductor/Api/HumanTaskResourceApi.cs @@ -244,147 +244,6 @@ public async ThreadTask.Task> AssignAndClaimAsyncWit (HumanTaskEntry)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HumanTaskEntry))); } - /// - /// API for backpopulating index data - /// - /// Thrown when fails to make API call - /// - /// Dictionary<string, Object> - public Dictionary BackPopulateFullTextIndex(int? _100) - { - ApiResponse> localVarResponse = BackPopulateFullTextIndexWithHttpInfo(_100); - return localVarResponse.Data; - } - - /// - /// API for backpopulating index data - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of Dictionary<string, Object> - public ApiResponse> BackPopulateFullTextIndexWithHttpInfo(int? _100) - { - // verify the required parameter '_100' is set - if (_100 == null) - throw new ApiException(400, "Missing required parameter '_100' when calling HumanTaskApi->BackPopulateFullTextIndex"); - - var localVarPath = "/human/tasks/backPopulateFullTextIndex"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (_100 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "100", _100)); // query parameter - // authentication (api_key) required - if (!String.IsNullOrEmpty(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); - - int localVarStatusCode = (int)localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BackPopulateFullTextIndex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Dictionary)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary))); - } - - /// - /// API for backpopulating index data - /// - /// Thrown when fails to make API call - /// - /// Task of Dictionary<string, Object> - public async ThreadTask.Task> BackPopulateFullTextIndexAsync(int? _100) - { - ApiResponse> localVarResponse = await BackPopulateFullTextIndexAsyncWithHttpInfo(_100); - return localVarResponse.Data; - - } - - /// - /// API for backpopulating index data - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (Dictionary<string, Object>) - public async ThreadTask.Task>> BackPopulateFullTextIndexAsyncWithHttpInfo(int? _100) - { - // verify the required parameter '_100' is set - if (_100 == null) - throw new ApiException(400, "Missing required parameter '_100' when calling HumanTaskApi->BackPopulateFullTextIndex"); - - var localVarPath = "/human/tasks/backPopulateFullTextIndex"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (_100 != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "100", _100)); // query parameter - // authentication (api_key) required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) - { - localVarHeaderParams["X-Authorization"] = this.Configuration.AccessToken; - } - - // make the HTTP request - RestResponse localVarResponse = (RestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int)localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("BackPopulateFullTextIndex", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Dictionary)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary))); - } - /// /// Claim a task by authenticated Conductor user /// @@ -966,9 +825,9 @@ public async ThreadTask.Task>> GetAllTemplat /// Thrown when fails to make API call /// /// HumanTaskEntry - public HumanTaskEntry GetTask1(string taskId) + public HumanTaskEntry GetTask(string taskId) { - ApiResponse localVarResponse = GetTask1WithHttpInfo(taskId); + ApiResponse localVarResponse = GetTaskWithHttpInfo(taskId); return localVarResponse.Data; } @@ -978,11 +837,11 @@ public HumanTaskEntry GetTask1(string taskId) /// Thrown when fails to make API call /// /// ApiResponse of HumanTaskEntry - public ApiResponse GetTask1WithHttpInfo(string taskId) + public ApiResponse GetTaskWithHttpInfo(string taskId) { // verify the required parameter 'taskId' is set if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling HumanTaskApi->GetTask1"); + throw new ApiException(400, "Missing required parameter 'taskId' when calling HumanTaskApi->GetTask"); var localVarPath = "/human/tasks/{taskId}"; var localVarPathParams = new Dictionary(); @@ -1021,7 +880,7 @@ public ApiResponse GetTask1WithHttpInfo(string taskId) if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetTask1", localVarResponse); + Exception exception = ExceptionFactory("GetTask", localVarResponse); if (exception != null) throw exception; } @@ -1036,9 +895,9 @@ public ApiResponse GetTask1WithHttpInfo(string taskId) /// Thrown when fails to make API call /// /// Task of HumanTaskEntry - public async ThreadTask.Task GetTask1Async(string taskId) + public async ThreadTask.Task GetTaskAsync(string taskId) { - ApiResponse localVarResponse = await GetTask1AsyncWithHttpInfo(taskId); + ApiResponse localVarResponse = await GetTaskAsyncWithHttpInfo(taskId); return localVarResponse.Data; } @@ -1049,11 +908,11 @@ public async ThreadTask.Task GetTask1Async(string taskId) /// Thrown when fails to make API call /// /// Task of ApiResponse (HumanTaskEntry) - public async ThreadTask.Task> GetTask1AsyncWithHttpInfo(string taskId) + public async ThreadTask.Task> GetTaskAsyncWithHttpInfo(string taskId) { // verify the required parameter 'taskId' is set if (taskId == null) - throw new ApiException(400, "Missing required parameter 'taskId' when calling HumanTaskApi->GetTask1"); + throw new ApiException(400, "Missing required parameter 'taskId' when calling HumanTaskApi->GetTask"); var localVarPath = "/human/tasks/{taskId}"; var localVarPathParams = new Dictionary(); @@ -1092,7 +951,7 @@ public async ThreadTask.Task> GetTask1AsyncWithHttpI if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetTask1", localVarResponse); + Exception exception = ExceptionFactory("GetTask", localVarResponse); if (exception != null) throw exception; } diff --git a/Conductor/Api/IHumanTaskResourceApi.cs b/Conductor/Api/IHumanTaskResourceApi.cs index ca25252..5284d76 100644 --- a/Conductor/Api/IHumanTaskResourceApi.cs +++ b/Conductor/Api/IHumanTaskResourceApi.cs @@ -24,17 +24,6 @@ public interface IHumanTaskResourceApi : IApiAccessor /// HumanTaskEntry HumanTaskEntry AssignAndClaim(string taskId, string userId, bool? overrideAssignment = null); - /// - /// API for backpopulating index data - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Dictionary<string, Object> - Dictionary BackPopulateFullTextIndex(int? _100); - /// /// Claim a task by authenticated Conductor user /// @@ -91,7 +80,7 @@ public interface IHumanTaskResourceApi : IApiAccessor /// Thrown when fails to make API call /// /// HumanTaskEntry - HumanTaskEntry GetTask1(string taskId); + HumanTaskEntry GetTask(string taskId); /// /// Get list of task display names applicable for the user @@ -251,17 +240,6 @@ public interface IHumanTaskResourceApi : IApiAccessor /// Task of HumanTaskEntry System.Threading.Tasks.Task AssignAndClaimAsync(string taskId, string userId, bool? overrideAssignment = null); - /// - /// API for backpopulating index data - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of Dictionary<string, Object> - System.Threading.Tasks.Task> BackPopulateFullTextIndexAsync(int? _100); - /// /// Claim a task by authenticated Conductor user /// @@ -318,7 +296,7 @@ public interface IHumanTaskResourceApi : IApiAccessor /// Thrown when fails to make API call /// /// Task of HumanTaskEntry - System.Threading.Tasks.Task GetTask1Async(string taskId); + System.Threading.Tasks.Task GetTaskAsync(string taskId); /// /// Get list of task display names applicable for the user