Skip to content

Commit cd8837c

Browse files
committed
Code gen for NEST to support backporting APIs
1 parent 0b784b1 commit cd8837c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+418
-361
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
22
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
55
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
66
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
77
// -----------------------------------------------
8-
//
9-
// This file is automatically generated
8+
//
9+
// This file is automatically generated
1010
// Please do not edit these files manually
1111
// Run the following in the root of the repos:
1212
//
@@ -20,9 +20,9 @@
2020
using System.Linq;
2121
using System.Text;
2222
using System.Linq.Expressions;
23+
using Nest.Utf8Json;
2324
using Elasticsearch.Net;
2425
using Elasticsearch.Net.Specification.AsyncSearchApi;
25-
using Nest.Utf8Json;
2626

2727
// ReSharper disable RedundantBaseConstructorCall
2828
// ReSharper disable UnusedTypeParameter
@@ -142,7 +142,7 @@ public AsyncSearchSubmitDescriptor<TInferDocument> Index<TOther>()
142142
/// <para> shard_num = hash(_routing) % num_primary_shards</para>
143143
/// <para>Elasticsearch will use the document id if not provided. </para>
144144
/// <para>For requests that are constructed from/for a document NEST will automatically infer the routing key
145-
/// if that document has a <see cref = "Nest.JoinField"/> or a routing mapping on for its type exists on <see cref = "Nest.ConnectionSettings"/></para>
145+
/// if that document has a <see cref = "Nest.JoinField"/> or a routing mapping on for its type exists on <see cref = "Nest.ConnectionSettings"/></para>
146146
///</summary>
147147
public AsyncSearchSubmitDescriptor<TInferDocument> Routing(Routing routing) => Qs("routing", routing);
148148
///<summary>Search operation type</summary>
@@ -166,4 +166,4 @@ public AsyncSearchSubmitDescriptor<TInferDocument> Index<TOther>()
166166
///<summary>Specify the time that the request should block waiting for the final response</summary>
167167
public AsyncSearchSubmitDescriptor<TInferDocument> WaitForCompletionTimeout(Time waitforcompletiontimeout) => Qs("wait_for_completion_timeout", waitforcompletiontimeout);
168168
}
169-
}
169+
}

src/Nest/Descriptors.Cat.cs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
22
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
55
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
66
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
77
// -----------------------------------------------
8-
//
9-
// This file is automatically generated
8+
//
9+
// This file is automatically generated
1010
// Please do not edit these files manually
1111
// Run the following in the root of the repos:
1212
//
@@ -20,6 +20,7 @@
2020
using System.Linq;
2121
using System.Text;
2222
using System.Linq.Expressions;
23+
using Nest.Utf8Json;
2324
using Elasticsearch.Net;
2425
using Elasticsearch.Net.Specification.CatApi;
2526

@@ -247,8 +248,6 @@ public CatIndicesDescriptor Index<TOther>()
247248
public CatIndicesDescriptor Help(bool? help = true) => Qs("help", help);
248249
///<summary>If set to true segment stats will include stats for segments that are not currently loaded into memory</summary>
249250
public CatIndicesDescriptor IncludeUnloadedSegments(bool? includeunloadedsegments = true) => Qs("include_unloaded_segments", includeunloadedsegments);
250-
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
251-
public CatIndicesDescriptor Local(bool? local = true) => Qs("local", local);
252251
///<summary>Explicit operation timeout for connection to master node</summary>
253252
public CatIndicesDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout);
254253
///<summary>Set to true to return stats only for primary shards</summary>
@@ -337,7 +336,8 @@ public CatDatafeedsDescriptor(Id datafeedId): base(r => r.Optional("datafeed_id"
337336
///<summary>The ID of the datafeeds stats to fetch</summary>
338337
public CatDatafeedsDescriptor DatafeedId(Id datafeedId) => Assign(datafeedId, (a, v) => a.RouteValues.Optional("datafeed_id", v));
339338
// Request parameters
340-
///<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")]
339+
///<summary>Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)</summary>
340+
[Obsolete("Scheduled to be removed in 8.0, deprecated")]
341341
public CatDatafeedsDescriptor AllowNoDatafeeds(bool? allownodatafeeds = true) => Qs("allow_no_datafeeds", allownodatafeeds);
342342
///<summary>Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)</summary>
343343
public CatDatafeedsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
@@ -373,7 +373,8 @@ public CatJobsDescriptor(Id jobId): base(r => r.Optional("job_id", jobId))
373373
///<summary>The ID of the jobs stats to fetch</summary>
374374
public CatJobsDescriptor JobId(Id jobId) => Assign(jobId, (a, v) => a.RouteValues.Optional("job_id", v));
375375
// Request parameters
376-
///<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")]
376+
///<summary>Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)</summary>
377+
[Obsolete("Scheduled to be removed in 8.0, deprecated")]
377378
public CatJobsDescriptor AllowNoJobs(bool? allownojobs = true) => Qs("allow_no_jobs", allownojobs);
378379
///<summary>Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)</summary>
379380
public CatJobsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
@@ -511,6 +512,8 @@ public partial class CatPluginsDescriptor : RequestDescriptorBase<CatPluginsDesc
511512
public CatPluginsDescriptor Headers(params string[] headers) => Qs("h", headers);
512513
///<summary>Return help information</summary>
513514
public CatPluginsDescriptor Help(bool? help = true) => Qs("help", help);
515+
///<summary>Include bootstrap plugins in the response</summary>
516+
public CatPluginsDescriptor IncludeBootstrap(bool? includebootstrap = true) => Qs("include_bootstrap", includebootstrap);
514517
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
515518
public CatPluginsDescriptor Local(bool? local = true) => Qs("local", local);
516519
///<summary>Explicit operation timeout for connection to master node</summary>
@@ -658,8 +661,6 @@ public CatShardsDescriptor Index<TOther>()
658661
public CatShardsDescriptor Headers(params string[] headers) => Qs("h", headers);
659662
///<summary>Return help information</summary>
660663
public CatShardsDescriptor Help(bool? help = true) => Qs("help", help);
661-
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
662-
public CatShardsDescriptor Local(bool? local = true) => Qs("local", local);
663664
///<summary>Explicit operation timeout for connection to master node</summary>
664665
public CatShardsDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout);
665666
///<summary>Comma-separated list of column names or column aliases to sort by</summary>
@@ -721,9 +722,9 @@ public partial class CatTasksDescriptor : RequestDescriptorBase<CatTasksDescript
721722
///<summary>Return help information</summary>
722723
public CatTasksDescriptor Help(bool? help = true) => Qs("help", help);
723724
///<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>
724-
public CatTasksDescriptor NodeId(params string[] nodeid) => Qs("node_id", nodeid);
725-
///<summary>Return tasks with specified parent task id. Set to -1 to return all.</summary>
726-
public CatTasksDescriptor ParentTask(long? parenttask) => Qs("parent_task", parenttask);
725+
public CatTasksDescriptor Nodes(params string[] nodes) => Qs("nodes", nodes);
726+
///<summary>Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all.</summary>
727+
public CatTasksDescriptor ParentTaskId(string parenttaskid) => Qs("parent_task_id", parenttaskid);
727728
///<summary>Comma-separated list of column names or column aliases to sort by</summary>
728729
public CatTasksDescriptor SortByColumns(params string[] sortbycolumns) => Qs("s", sortbycolumns);
729730
///<summary>Verbose mode. Display column headers</summary>
@@ -839,4 +840,4 @@ public CatTransformsDescriptor(Id transformId): base(r => r.Optional("transform_
839840
///<summary>Verbose mode. Display column headers</summary>
840841
public CatTransformsDescriptor Verbose(bool? verbose = true) => Qs("v", verbose);
841842
}
842-
}
843+
}

src/Nest/Descriptors.Cluster.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
22
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
55
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
66
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
77
// -----------------------------------------------
8-
//
9-
// This file is automatically generated
8+
//
9+
// This file is automatically generated
1010
// Please do not edit these files manually
1111
// Run the following in the root of the repos:
1212
//
@@ -20,6 +20,7 @@
2020
using System.Linq;
2121
using System.Text;
2222
using System.Linq.Expressions;
23+
using Nest.Utf8Json;
2324
using Elasticsearch.Net;
2425
using Elasticsearch.Net.Specification.ClusterApi;
2526

@@ -262,4 +263,4 @@ public ClusterStatsDescriptor(NodeIds nodeId): base(r => r.Optional("node_id", n
262263
///<summary>Explicit operation timeout</summary>
263264
public ClusterStatsDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
264265
}
265-
}
266+
}

src/Nest/Descriptors.CrossClusterReplication.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
22
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
55
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
66
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
77
// -----------------------------------------------
8-
//
9-
// This file is automatically generated
8+
//
9+
// This file is automatically generated
1010
// Please do not edit these files manually
1111
// Run the following in the root of the repos:
1212
//
@@ -20,9 +20,9 @@
2020
using System.Linq;
2121
using System.Text;
2222
using System.Linq.Expressions;
23+
using Nest.Utf8Json;
2324
using Elasticsearch.Net;
2425
using Elasticsearch.Net.Specification.CrossClusterReplicationApi;
25-
using Nest.Utf8Json;
2626

2727
// ReSharper disable RedundantBaseConstructorCall
2828
// ReSharper disable UnusedTypeParameter
@@ -331,4 +331,4 @@ public UnfollowIndexDescriptor Index<TOther>()
331331
where TOther : class => Assign(typeof(TOther), (a, v) => a.RouteValues.Required("index", (IndexName)v));
332332
// Request parameters
333333
}
334-
}
334+
}

src/Nest/Descriptors.DanglingIndices.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
22
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
55
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
66
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
77
// -----------------------------------------------
8-
//
9-
// This file is automatically generated
8+
//
9+
// This file is automatically generated
1010
// Please do not edit these files manually
1111
// Run the following in the root of the repos:
1212
//
@@ -20,9 +20,9 @@
2020
using System.Linq;
2121
using System.Text;
2222
using System.Linq.Expressions;
23+
using Nest.Utf8Json;
2324
using Elasticsearch.Net;
2425
using Elasticsearch.Net.Specification.DanglingIndicesApi;
25-
using Nest.Utf8Json;
2626

2727
// ReSharper disable RedundantBaseConstructorCall
2828
// ReSharper disable UnusedTypeParameter
@@ -91,4 +91,4 @@ public partial class ListDanglingIndicesDescriptor : RequestDescriptorBase<ListD
9191
// values part of the url path
9292
// Request parameters
9393
}
94-
}
94+
}

src/Nest/Descriptors.Enrich.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
22
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
55
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
66
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
77
// -----------------------------------------------
8-
//
9-
// This file is automatically generated
8+
//
9+
// This file is automatically generated
1010
// Please do not edit these files manually
1111
// Run the following in the root of the repos:
1212
//
@@ -20,9 +20,9 @@
2020
using System.Linq;
2121
using System.Text;
2222
using System.Linq.Expressions;
23+
using Nest.Utf8Json;
2324
using Elasticsearch.Net;
2425
using Elasticsearch.Net.Specification.EnrichApi;
25-
using Nest.Utf8Json;
2626

2727
// ReSharper disable RedundantBaseConstructorCall
2828
// ReSharper disable UnusedTypeParameter
@@ -124,4 +124,4 @@ public partial class EnrichStatsDescriptor : RequestDescriptorBase<EnrichStatsDe
124124
// values part of the url path
125125
// Request parameters
126126
}
127-
}
127+
}

src/Nest/Descriptors.Graph.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
22
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3-
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4-
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
55
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
66
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
77
// -----------------------------------------------
8-
//
9-
// This file is automatically generated
8+
//
9+
// This file is automatically generated
1010
// Please do not edit these files manually
1111
// Run the following in the root of the repos:
1212
//
@@ -20,6 +20,7 @@
2020
using System.Linq;
2121
using System.Text;
2222
using System.Linq.Expressions;
23+
using Nest.Utf8Json;
2324
using Elasticsearch.Net;
2425
using Elasticsearch.Net.Specification.GraphApi;
2526

@@ -59,10 +60,10 @@ public GraphExploreDescriptor<TDocument> Index<TOther>()
5960
/// <para> shard_num = hash(_routing) % num_primary_shards</para>
6061
/// <para>Elasticsearch will use the document id if not provided. </para>
6162
/// <para>For requests that are constructed from/for a document NEST will automatically infer the routing key
62-
/// if that document has a <see cref = "Nest.JoinField"/> or a routing mapping on for its type exists on <see cref = "Nest.ConnectionSettings"/></para>
63+
/// if that document has a <see cref = "Nest.JoinField"/> or a routing mapping on for its type exists on <see cref = "Nest.ConnectionSettings"/></para>
6364
///</summary>
6465
public GraphExploreDescriptor<TDocument> Routing(Routing routing) => Qs("routing", routing);
6566
///<summary>Explicit operation timeout</summary>
6667
public GraphExploreDescriptor<TDocument> Timeout(Time timeout) => Qs("timeout", timeout);
6768
}
68-
}
69+
}

0 commit comments

Comments
 (0)