Ejemplo n.º 1
0
 ///<summary>POST on /_tasks/{task_id}/_cancel <para>https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-tasks/</para></summary>
 ///<param name = "taskId">Cancel the task with specified task id (node_id:task_number)</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 ///<remarks>Note: Experimental within the OpenSearch server, this functionality is Experimental and may be changed or removed completely in a future release. OpenSearch will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
 public TResponse Cancel <TResponse>(string taskId, CancelTasksRequestParameters requestParameters = null)
     where TResponse : class, IOpenSearchResponse, new() => DoRequest <TResponse>(POST, Url($"_tasks/{taskId:taskId}/_cancel"), null, RequestParams(requestParameters));
Ejemplo n.º 2
0
 public Task <TResponse> CancelAsync <TResponse>(string taskId, CancelTasksRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync <TResponse>(POST, Url($"_tasks/{taskId:taskId}/_cancel"), ctx, null, RequestParams(requestParameters));
Ejemplo n.º 3
0
 ///<summary>POST on /_tasks/_cancel <para>https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-tasks/</para></summary>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 ///<remarks>Note: Experimental within the OpenSearch server, this functionality is Experimental and may be changed or removed completely in a future release. OpenSearch will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
 public TResponse Cancel <TResponse>(CancelTasksRequestParameters requestParameters = null)
     where TResponse : class, IOpenSearchResponse, new() => DoRequest <TResponse>(POST, "_tasks/_cancel", null, RequestParams(requestParameters));