Skip to content

Code gen for NEST to support backporting APIs #5253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ApiGenerator/last_downloaded_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f2651e47639aba972f4ad0d653907fafcff9d316
963c3284b354553b9097ad9e2f3cd31e411c239a
4 changes: 2 additions & 2 deletions src/Nest/Descriptors.AsyncSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
using System.Text;
using System.Linq.Expressions;
using Elastic.Transport;
using Elasticsearch.Net;
using Nest.Utf8Json;
using Elasticsearch.Net;
using Elasticsearch.Net.Specification.AsyncSearchApi;

// ReSharper disable RedundantBaseConstructorCall
Expand Down Expand Up @@ -173,4 +173,4 @@ public AsyncSearchSubmitDescriptor<TInferDocument> Index<TOther>()
///<summary>Specify the time that the request should block waiting for the final response</summary>
public AsyncSearchSubmitDescriptor<TInferDocument> WaitForCompletionTimeout(Time waitforcompletiontimeout) => Qs("wait_for_completion_timeout", waitforcompletiontimeout);
}
}
}
14 changes: 9 additions & 5 deletions src/Nest/Descriptors.Cat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ public CatDatafeedsDescriptor(Id datafeedId): base(r => r.Optional("datafeed_id"
///<summary>The ID of the datafeeds stats to fetch</summary>
public CatDatafeedsDescriptor DatafeedId(Id datafeedId) => Assign(datafeedId, (a, v) => a.RouteValues.Optional("datafeed_id", v));
// Request parameters
///<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")]
///<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 8.0, deprecated")]
public CatDatafeedsDescriptor AllowNoDatafeeds(bool? allownodatafeeds = true) => Qs("allow_no_datafeeds", allownodatafeeds);
///<summary>Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)</summary>
public CatDatafeedsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
Expand Down Expand Up @@ -395,7 +396,8 @@ public CatJobsDescriptor(Id jobId): base(r => r.Optional("job_id", jobId))
///<summary>The ID of the jobs stats to fetch</summary>
public CatJobsDescriptor JobId(Id jobId) => Assign(jobId, (a, v) => a.RouteValues.Optional("job_id", v));
// Request parameters
///<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")]
///<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 8.0, deprecated")]
public CatJobsDescriptor AllowNoJobs(bool? allownojobs = true) => Qs("allow_no_jobs", allownojobs);
///<summary>Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)</summary>
public CatJobsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
Expand Down Expand Up @@ -543,6 +545,8 @@ public partial class CatPluginsDescriptor : RequestDescriptorBase<CatPluginsDesc
public CatPluginsDescriptor Headers(params string[] headers) => Qs("h", headers);
///<summary>Return help information</summary>
public CatPluginsDescriptor Help(bool? help = true) => Qs("help", help);
///<summary>Include bootstrap plugins in the response</summary>
public CatPluginsDescriptor IncludeBootstrap(bool? includebootstrap = true) => Qs("include_bootstrap", includebootstrap);
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
public CatPluginsDescriptor Local(bool? local = true) => Qs("local", local);
///<summary>Explicit operation timeout for connection to master node</summary>
Expand Down Expand Up @@ -763,9 +767,9 @@ public partial class CatTasksDescriptor : RequestDescriptorBase<CatTasksDescript
///<summary>Return help information</summary>
public CatTasksDescriptor Help(bool? help = true) => Qs("help", help);
///<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>
public CatTasksDescriptor NodeId(params string[] nodeid) => Qs("node_id", nodeid);
///<summary>Return tasks with specified parent task id. Set to -1 to return all.</summary>
public CatTasksDescriptor ParentTask(long? parenttask) => Qs("parent_task", parenttask);
public CatTasksDescriptor Nodes(params string[] nodes) => Qs("nodes", nodes);
///<summary>Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all.</summary>
public CatTasksDescriptor ParentTaskId(string parenttaskid) => Qs("parent_task_id", parenttaskid);
///<summary>Comma-separated list of column names or column aliases to sort by</summary>
public CatTasksDescriptor SortByColumns(params string[] sortbycolumns) => Qs("s", sortbycolumns);
///<summary>Verbose mode. Display column headers</summary>
Expand Down
22 changes: 15 additions & 7 deletions src/Nest/Requests.Cat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,13 @@ public bool? Help
set => Q("help", value);
}

///<summary>Include bootstrap plugins in the response</summary>
public bool? IncludeBootstrap
{
get => Q<bool? >("include_bootstrap");
set => Q("include_bootstrap", value);
}

///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
public bool? Local
{
Expand Down Expand Up @@ -1701,6 +1708,7 @@ public partial interface ICatTasksRequest : IRequest<CatTasksRequestParameters>
}

///<summary>Request for Tasks <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
///<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>
public partial class CatTasksRequest : PlainRequestBase<CatTasksRequestParameters>, ICatTasksRequest
{
protected ICatTasksRequest Self => this;
Expand Down Expand Up @@ -1752,17 +1760,17 @@ public bool? Help
/// 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>
public string[] NodeId
public string[] Nodes
{
get => Q<string[]>("node_id");
set => Q("node_id", value);
get => Q<string[]>("nodes");
set => Q("nodes", value);
}

///<summary>Return tasks with specified parent task id. Set to -1 to return all.</summary>
public long? ParentTask
///<summary>Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all.</summary>
public string ParentTaskId
{
get => Q<long? >("parent_task");
set => Q("parent_task", value);
get => Q<string>("parent_task_id");
set => Q("parent_task_id", value);
}

///<summary>Comma-separated list of column names or column aliases to sort by</summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Nest/Requests.Indices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,7 @@ public IndicesStatsRequest(Indices index, Metrics metric): base(r => r.Optional(
[IgnoreDataMember]
Indices IIndicesStatsRequest.Index => Self.RouteValues.Get<Indices>("index");
// Request parameters
///<summary>A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)</summary>
///<summary>A comma-separated list of fields for the `completion` index metric (supports wildcards)</summary>
public Fields CompletionFields
{
get => Q<Fields>("completion_fields");
Expand All @@ -2657,7 +2657,7 @@ public ExpandWildcards? ExpandWildcards
set => Q("expand_wildcards", value);
}

///<summary>A comma-separated list of fields for `fielddata` index metric (supports wildcards)</summary>
///<summary>A comma-separated list of fields for the `fielddata` index metric (supports wildcards)</summary>
public Fields FielddataFields
{
get => Q<Fields>("fielddata_fields");
Expand Down
4 changes: 2 additions & 2 deletions src/Nest/Requests.Nodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,14 @@ public NodesStatsRequest(NodeIds nodeId, Metrics metric, IndexMetrics indexMetri
[IgnoreDataMember]
IndexMetrics INodesStatsRequest.IndexMetric => Self.RouteValues.Get<IndexMetrics>("index_metric");
// Request parameters
///<summary>A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)</summary>
///<summary>A comma-separated list of fields for the `completion` index metric (supports wildcards)</summary>
public Fields CompletionFields
{
get => Q<Fields>("completion_fields");
set => Q("completion_fields", value);
}

///<summary>A comma-separated list of fields for `fielddata` index metric (supports wildcards)</summary>
///<summary>A comma-separated list of fields for the `fielddata` index metric (supports wildcards)</summary>
public Fields FielddataFields
{
get => Q<Fields>("fielddata_fields");
Expand Down
3 changes: 3 additions & 0 deletions src/Nest/Requests.Tasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ TaskId TaskId
}

///<summary>Request for Cancel <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
///<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>
public partial class CancelTasksRequest : PlainRequestBase<CancelTasksRequestParameters>, ICancelTasksRequest
{
protected ICancelTasksRequest Self => this;
Expand Down Expand Up @@ -107,6 +108,7 @@ TaskId TaskId
}

///<summary>Request for GetTask <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
///<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>
public partial class GetTaskRequest : PlainRequestBase<GetTaskRequestParameters>, IGetTaskRequest
{
protected IGetTaskRequest Self => this;
Expand Down Expand Up @@ -150,6 +152,7 @@ public partial interface IListTasksRequest : IRequest<ListTasksRequestParameters
}

///<summary>Request for List <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
///<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>
public partial class ListTasksRequest : PlainRequestBase<ListTasksRequestParameters>, IListTasksRequest
{
protected IListTasksRequest Self => this;
Expand Down