Skip to content

Commit 1f9f07a

Browse files
authored
Previous commits removed parent_node which needs to be obsoleted for backwards compat reasons instead (#3396)
1 parent 2a3ea8e commit 1f9f07a

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"tasks.cancel": {
3+
"url": {
4+
"params": {
5+
"parent_node": {
6+
"type": "string",
7+
"description": "Cancel tasks with specified parent node.",
8+
"obsolete": "Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841"
9+
}
10+
}
11+
}
12+
}
13+
}

src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,6 +1978,9 @@ public partial class CancelTasksRequestParameters : RequestParameters<CancelTask
19781978
public string[] Actions { get => Q<string[]>("actions"); set => Q("actions", value); }
19791979
///<summary>Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.</summary>
19801980
public string ParentTaskId { get => Q<string>("parent_task_id"); set => Q("parent_task_id", value); }
1981+
///<summary>Cancel tasks with specified parent node.</summary>
1982+
[Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")]
1983+
public string ParentNode { get => Q<string>("parent_node"); set => Q("parent_node", value); }
19811984
}
19821985
///<summary>Request options for TasksGet<pre>http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</pre></summary>
19831986
public partial class GetTaskRequestParameters : RequestParameters<GetTaskRequestParameters>

src/Nest/_Generated/_Descriptors.generated.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,6 +3510,9 @@ public CancelTasksDescriptor() : base(){}
35103510
public CancelTasksDescriptor Actions(params string[] actions) => Qs("actions", actions);
35113511
///<summary>Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.</summary>
35123512
public CancelTasksDescriptor ParentTaskId(string parentTaskId) => Qs("parent_task_id", parentTaskId);
3513+
///<summary>Cancel tasks with specified parent node.</summary>
3514+
[Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")]
3515+
public CancelTasksDescriptor ParentNode(string parentNode) => Qs("parent_node", parentNode);
35133516
}
35143517
///<summary>descriptor for TasksGet <pre>http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</pre></summary>
35153518
public partial class GetTaskDescriptor : RequestDescriptorBase<GetTaskDescriptor,GetTaskRequestParameters, IGetTaskRequest>, IGetTaskRequest

src/Nest/_Generated/_Requests.generated.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ public CancelTasksRequest(TaskId task_id) : base(r=>r.Optional("task_id", task_i
242242
public string[] Actions { get => Q<string[]>("actions"); set => Q("actions", value); }
243243
///<summary>Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.</summary>
244244
public string ParentTaskId { get => Q<string>("parent_task_id"); set => Q("parent_task_id", value); }
245+
///<summary>Cancel tasks with specified parent node.</summary>
246+
[Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")]
247+
public string ParentNode { get => Q<string>("parent_node"); set => Q("parent_node", value); }
245248
}
246249
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
247250
public partial interface ICatAliasesRequest : IRequest<CatAliasesRequestParameters>

0 commit comments

Comments
 (0)