From 5a4bc6fd4cff7777c17b21ae3920303c07e2e931 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Mon, 10 Sep 2018 16:52:33 +0200 Subject: [PATCH] Previous commits removed parent_node which needs to be obsoleted for backwards compat reasons instead --- .../RestSpecification/Core/tasks.cancel.patch.json | 13 +++++++++++++ .../RequestParameters.Generated.cs | 3 +++ src/Nest/_Generated/_Descriptors.generated.cs | 3 +++ src/Nest/_Generated/_Requests.generated.cs | 3 +++ 4 files changed, 22 insertions(+) create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.patch.json diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.patch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.patch.json new file mode 100644 index 00000000000..c98acec1e36 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.patch.json @@ -0,0 +1,13 @@ +{ + "tasks.cancel": { + "url": { + "params": { + "parent_node": { + "type": "string", + "description": "Cancel tasks with specified parent node.", + "obsolete": "Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841" + } + } + } + } +} diff --git a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs index 090409e2135..62b67eae6c3 100644 --- a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs @@ -1978,6 +1978,9 @@ public partial class CancelTasksRequestParameters : RequestParameters Q("actions"); set => Q("actions", value); } ///Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. public string ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } + ///Cancel tasks with specified parent node. + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } } ///Request options for TasksGet
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class GetTaskRequestParameters : RequestParameters diff --git a/src/Nest/_Generated/_Descriptors.generated.cs b/src/Nest/_Generated/_Descriptors.generated.cs index 8896a3c80e8..aef3329e885 100644 --- a/src/Nest/_Generated/_Descriptors.generated.cs +++ b/src/Nest/_Generated/_Descriptors.generated.cs @@ -3510,6 +3510,9 @@ public CancelTasksDescriptor() : base(){} public CancelTasksDescriptor Actions(params string[] actions) => Qs("actions", actions); ///Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. public CancelTasksDescriptor ParentTaskId(string parentTaskId) => Qs("parent_task_id", parentTaskId); + ///Cancel tasks with specified parent node. + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public CancelTasksDescriptor ParentNode(string parentNode) => Qs("parent_node", parentNode); } ///descriptor for TasksGet
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class GetTaskDescriptor : RequestDescriptorBase, IGetTaskRequest diff --git a/src/Nest/_Generated/_Requests.generated.cs b/src/Nest/_Generated/_Requests.generated.cs index 14c9ac46755..cac7ff292b9 100644 --- a/src/Nest/_Generated/_Requests.generated.cs +++ b/src/Nest/_Generated/_Requests.generated.cs @@ -242,6 +242,9 @@ public CancelTasksRequest(TaskId task_id) : base(r=>r.Optional("task_id", task_i public string[] Actions { get => Q("actions"); set => Q("actions", value); } ///Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. public string ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } + ///Cancel tasks with specified parent node. + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } } [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatAliasesRequest : IRequest