Skip to content

Commit 246246b

Browse files
authored
Code gen for NEST to support backporting APIs (#5253)
1 parent cb614ec commit 246246b

File tree

7 files changed

+34
-19
lines changed

7 files changed

+34
-19
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f2651e47639aba972f4ad0d653907fafcff9d316
1+
963c3284b354553b9097ad9e2f3cd31e411c239a

src/Nest/Descriptors.AsyncSearch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
using System.Text;
2222
using System.Linq.Expressions;
2323
using Elastic.Transport;
24-
using Elasticsearch.Net;
2524
using Nest.Utf8Json;
25+
using Elasticsearch.Net;
2626
using Elasticsearch.Net.Specification.AsyncSearchApi;
2727

2828
// ReSharper disable RedundantBaseConstructorCall
@@ -173,4 +173,4 @@ public AsyncSearchSubmitDescriptor<TInferDocument> Index<TOther>()
173173
///<summary>Specify the time that the request should block waiting for the final response</summary>
174174
public AsyncSearchSubmitDescriptor<TInferDocument> WaitForCompletionTimeout(Time waitforcompletiontimeout) => Qs("wait_for_completion_timeout", waitforcompletiontimeout);
175175
}
176-
}
176+
}

src/Nest/Descriptors.Cat.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ public CatDatafeedsDescriptor(Id datafeedId): base(r => r.Optional("datafeed_id"
357357
///<summary>The ID of the datafeeds stats to fetch</summary>
358358
public CatDatafeedsDescriptor DatafeedId(Id datafeedId) => Assign(datafeedId, (a, v) => a.RouteValues.Optional("datafeed_id", v));
359359
// Request parameters
360-
///<summary>Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)</summary> [Obsolete("Scheduled to be removed in 7.0, deprecated")]
360+
///<summary>Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)</summary>
361+
[Obsolete("Scheduled to be removed in 8.0, deprecated")]
361362
public CatDatafeedsDescriptor AllowNoDatafeeds(bool? allownodatafeeds = true) => Qs("allow_no_datafeeds", allownodatafeeds);
362363
///<summary>Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)</summary>
363364
public CatDatafeedsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
@@ -395,7 +396,8 @@ public CatJobsDescriptor(Id jobId): base(r => r.Optional("job_id", jobId))
395396
///<summary>The ID of the jobs stats to fetch</summary>
396397
public CatJobsDescriptor JobId(Id jobId) => Assign(jobId, (a, v) => a.RouteValues.Optional("job_id", v));
397398
// Request parameters
398-
///<summary>Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)</summary> [Obsolete("Scheduled to be removed in 7.0, deprecated")]
399+
///<summary>Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)</summary>
400+
[Obsolete("Scheduled to be removed in 8.0, deprecated")]
399401
public CatJobsDescriptor AllowNoJobs(bool? allownojobs = true) => Qs("allow_no_jobs", allownojobs);
400402
///<summary>Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)</summary>
401403
public CatJobsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
@@ -543,6 +545,8 @@ public partial class CatPluginsDescriptor : RequestDescriptorBase<CatPluginsDesc
543545
public CatPluginsDescriptor Headers(params string[] headers) => Qs("h", headers);
544546
///<summary>Return help information</summary>
545547
public CatPluginsDescriptor Help(bool? help = true) => Qs("help", help);
548+
///<summary>Include bootstrap plugins in the response</summary>
549+
public CatPluginsDescriptor IncludeBootstrap(bool? includebootstrap = true) => Qs("include_bootstrap", includebootstrap);
546550
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
547551
public CatPluginsDescriptor Local(bool? local = true) => Qs("local", local);
548552
///<summary>Explicit operation timeout for connection to master node</summary>
@@ -763,9 +767,9 @@ public partial class CatTasksDescriptor : RequestDescriptorBase<CatTasksDescript
763767
///<summary>Return help information</summary>
764768
public CatTasksDescriptor Help(bool? help = true) => Qs("help", help);
765769
///<summary>A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes</summary>
766-
public CatTasksDescriptor NodeId(params string[] nodeid) => Qs("node_id", nodeid);
767-
///<summary>Return tasks with specified parent task id. Set to -1 to return all.</summary>
768-
public CatTasksDescriptor ParentTask(long? parenttask) => Qs("parent_task", parenttask);
770+
public CatTasksDescriptor Nodes(params string[] nodes) => Qs("nodes", nodes);
771+
///<summary>Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all.</summary>
772+
public CatTasksDescriptor ParentTaskId(string parenttaskid) => Qs("parent_task_id", parenttaskid);
769773
///<summary>Comma-separated list of column names or column aliases to sort by</summary>
770774
public CatTasksDescriptor SortByColumns(params string[] sortbycolumns) => Qs("s", sortbycolumns);
771775
///<summary>Verbose mode. Display column headers</summary>

src/Nest/Requests.Cat.cs

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,13 @@ public bool? Help
12541254
set => Q("help", value);
12551255
}
12561256

1257+
///<summary>Include bootstrap plugins in the response</summary>
1258+
public bool? IncludeBootstrap
1259+
{
1260+
get => Q<bool? >("include_bootstrap");
1261+
set => Q("include_bootstrap", value);
1262+
}
1263+
12571264
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
12581265
public bool? Local
12591266
{
@@ -1701,6 +1708,7 @@ public partial interface ICatTasksRequest : IRequest<CatTasksRequestParameters>
17011708
}
17021709

17031710
///<summary>Request for Tasks <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
1711+
///<remarks>Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.</remarks>
17041712
public partial class CatTasksRequest : PlainRequestBase<CatTasksRequestParameters>, ICatTasksRequest
17051713
{
17061714
protected ICatTasksRequest Self => this;
@@ -1752,17 +1760,17 @@ public bool? Help
17521760
/// A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're
17531761
/// connecting to, leave empty to get information from all nodes
17541762
///</summary>
1755-
public string[] NodeId
1763+
public string[] Nodes
17561764
{
1757-
get => Q<string[]>("node_id");
1758-
set => Q("node_id", value);
1765+
get => Q<string[]>("nodes");
1766+
set => Q("nodes", value);
17591767
}
17601768

1761-
///<summary>Return tasks with specified parent task id. Set to -1 to return all.</summary>
1762-
public long? ParentTask
1769+
///<summary>Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all.</summary>
1770+
public string ParentTaskId
17631771
{
1764-
get => Q<long? >("parent_task");
1765-
set => Q("parent_task", value);
1772+
get => Q<string>("parent_task_id");
1773+
set => Q("parent_task_id", value);
17661774
}
17671775

17681776
///<summary>Comma-separated list of column names or column aliases to sort by</summary>

src/Nest/Requests.Indices.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ public IndicesStatsRequest(Indices index, Metrics metric): base(r => r.Optional(
26432643
[IgnoreDataMember]
26442644
Indices IIndicesStatsRequest.Index => Self.RouteValues.Get<Indices>("index");
26452645
// Request parameters
2646-
///<summary>A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)</summary>
2646+
///<summary>A comma-separated list of fields for the `completion` index metric (supports wildcards)</summary>
26472647
public Fields CompletionFields
26482648
{
26492649
get => Q<Fields>("completion_fields");
@@ -2657,7 +2657,7 @@ public ExpandWildcards? ExpandWildcards
26572657
set => Q("expand_wildcards", value);
26582658
}
26592659

2660-
///<summary>A comma-separated list of fields for `fielddata` index metric (supports wildcards)</summary>
2660+
///<summary>A comma-separated list of fields for the `fielddata` index metric (supports wildcards)</summary>
26612661
public Fields FielddataFields
26622662
{
26632663
get => Q<Fields>("fielddata_fields");

src/Nest/Requests.Nodes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,14 @@ public NodesStatsRequest(NodeIds nodeId, Metrics metric, IndexMetrics indexMetri
291291
[IgnoreDataMember]
292292
IndexMetrics INodesStatsRequest.IndexMetric => Self.RouteValues.Get<IndexMetrics>("index_metric");
293293
// Request parameters
294-
///<summary>A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)</summary>
294+
///<summary>A comma-separated list of fields for the `completion` index metric (supports wildcards)</summary>
295295
public Fields CompletionFields
296296
{
297297
get => Q<Fields>("completion_fields");
298298
set => Q("completion_fields", value);
299299
}
300300

301-
///<summary>A comma-separated list of fields for `fielddata` index metric (supports wildcards)</summary>
301+
///<summary>A comma-separated list of fields for the `fielddata` index metric (supports wildcards)</summary>
302302
public Fields FielddataFields
303303
{
304304
get => Q<Fields>("fielddata_fields");

src/Nest/Requests.Tasks.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ TaskId TaskId
4343
}
4444

4545
///<summary>Request for Cancel <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
46+
///<remarks>Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.</remarks>
4647
public partial class CancelTasksRequest : PlainRequestBase<CancelTasksRequestParameters>, ICancelTasksRequest
4748
{
4849
protected ICancelTasksRequest Self => this;
@@ -107,6 +108,7 @@ TaskId TaskId
107108
}
108109

109110
///<summary>Request for GetTask <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
111+
///<remarks>Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.</remarks>
110112
public partial class GetTaskRequest : PlainRequestBase<GetTaskRequestParameters>, IGetTaskRequest
111113
{
112114
protected IGetTaskRequest Self => this;
@@ -150,6 +152,7 @@ public partial interface IListTasksRequest : IRequest<ListTasksRequestParameters
150152
}
151153

152154
///<summary>Request for List <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
155+
///<remarks>Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.</remarks>
153156
public partial class ListTasksRequest : PlainRequestBase<ListTasksRequestParameters>, IListTasksRequest
154157
{
155158
protected IListTasksRequest Self => this;

0 commit comments

Comments
 (0)