Skip to content

Generate initial NEST code for 7.11.0 #5207

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

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
await IncludeAsync("HighLevel/Descriptors/XmlDocs.cshtml", desc);
if(!string.IsNullOrWhiteSpace(param.Obsolete))
{
<text> [Obsolete("Scheduled to be removed in 7.0, @param.Obsolete")]
<text> [Obsolete("Scheduled to be removed in 8.0, @param.Obsolete")]
</text>
}
<text>
Expand Down
10 changes: 5 additions & 5 deletions src/Nest/Descriptors.Cat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public CatIndicesDescriptor Index<TOther>()
public CatIndicesDescriptor Help(bool? help = true) => Qs("help", help);
///<summary>If set to true segment stats will include stats for segments that are not currently loaded into memory</summary>
public CatIndicesDescriptor IncludeUnloadedSegments(bool? includeunloadedsegments = true) => Qs("include_unloaded_segments", includeunloadedsegments);
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary> [Obsolete("Scheduled to be removed in 7.0, Deprecated as of: 7.11.0, reason: This parameter does not affect the request. It will be removed in a future release.")]
public CatIndicesDescriptor Local(bool? local = true) => Qs("local", local);
///<summary>Explicit operation timeout for connection to master node</summary>
public CatIndicesDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout);
Expand Down Expand Up @@ -677,7 +677,7 @@ public CatShardsDescriptor Index<TOther>()
public CatShardsDescriptor Headers(params string[] headers) => Qs("h", headers);
///<summary>Return help information</summary>
public CatShardsDescriptor Help(bool? help = true) => Qs("help", help);
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary> [Obsolete("Scheduled to be removed in 7.0, Deprecated as of: 7.11.0, reason: This parameter does not affect the request. It will be removed in a future release.")]
public CatShardsDescriptor Local(bool? local = true) => Qs("local", local);
///<summary>Explicit operation timeout for connection to master node</summary>
public CatShardsDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout);
Expand Down Expand Up @@ -740,9 +740,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
8 changes: 6 additions & 2 deletions src/Nest/Descriptors.Indices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ protected DeleteDataStreamDescriptor(): base()

// values part of the url path
Names IDeleteDataStreamRequest.Name => Self.RouteValues.Get<Names>("name");
// Request parameters
// Request parameters
///<summary>Whether wildcard expressions should get expanded to open or closed indices (default: open)</summary>
public DeleteDataStreamDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) => Qs("expand_wildcards", expandwildcards);
}

///<summary>Descriptor for DeleteTemplate <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html</para></summary>
Expand Down Expand Up @@ -818,7 +820,9 @@ public GetDataStreamDescriptor(Names name): base(r => r.Optional("name", name))
Names IGetDataStreamRequest.Name => Self.RouteValues.Get<Names>("name");
///<summary>A comma-separated list of data streams to get; use `*` to get all data streams</summary>
public GetDataStreamDescriptor Name(Names name) => Assign(name, (a, v) => a.RouteValues.Optional("name", v));
// Request parameters
// Request parameters
///<summary>Whether wildcard expressions should get expanded to open or closed indices (default: open)</summary>
public GetDataStreamDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) => Qs("expand_wildcards", expandwildcards);
}

///<summary>Descriptor for GetFieldMapping <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html</para></summary>
Expand Down
4 changes: 4 additions & 0 deletions src/Nest/Descriptors.MachineLearning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ public GetDatafeedsDescriptor(): base()
public GetDatafeedsDescriptor 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 GetDatafeedsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
///<summary>Omits fields that are illegal to set on datafeed PUT</summary>
public GetDatafeedsDescriptor ExcludeGenerated(bool? excludegenerated = true) => Qs("exclude_generated", excludegenerated);
}

///<summary>Descriptor for GetFilters <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html</para></summary>
Expand Down Expand Up @@ -590,6 +592,8 @@ public GetJobsDescriptor(): base()
public GetJobsDescriptor 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 GetJobsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
///<summary>Omits fields that are illegal to set on job PUT</summary>
public GetJobsDescriptor ExcludeGenerated(bool? excludegenerated = true) => Qs("exclude_generated", excludegenerated);
}

///<summary>Descriptor for GetModelSnapshots <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html</para></summary>
Expand Down
2 changes: 2 additions & 0 deletions src/Nest/Descriptors.Transform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public GetTransformDescriptor(): base()
// Request parameters
///<summary>Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)</summary>
public GetTransformDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch);
///<summary>Omits fields that are illegal to set on transform PUT</summary>
public GetTransformDescriptor ExcludeGenerated(bool? excludegenerated = true) => Qs("exclude_generated", excludegenerated);
///<summary>skips a number of transform configs, defaults to 0</summary>
public GetTransformDescriptor From(int? from) => Qs("from", from);
///<summary>specifies a max number of transforms to get, defaults to 100</summary>
Expand Down
17 changes: 10 additions & 7 deletions src/Nest/Requests.Cat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ public bool? IncludeUnloadedSegments
}

///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
[Obsolete("Scheduled to be removed in 8.0, Deprecated as of: 7.11.0, reason: This parameter does not affect the request. It will be removed in a future release.")]
public bool? Local
{
get => Q<bool? >("local");
Expand Down Expand Up @@ -1626,6 +1627,7 @@ public bool? Help
}

///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
[Obsolete("Scheduled to be removed in 8.0, Deprecated as of: 7.11.0, reason: This parameter does not affect the request. It will be removed in a future release.")]
public bool? Local
{
get => Q<bool? >("local");
Expand Down Expand Up @@ -1744,6 +1746,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 @@ -1793,17 +1796,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
16 changes: 14 additions & 2 deletions src/Nest/Requests.Indices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,13 @@ protected DeleteDataStreamRequest(): base()
// values part of the url path
[IgnoreDataMember]
Names IDeleteDataStreamRequest.Name => Self.RouteValues.Get<Names>("name");
// Request parameters
// Request parameters
///<summary>Whether wildcard expressions should get expanded to open or closed indices (default: open)</summary>
public ExpandWildcards? ExpandWildcards
{
get => Q<ExpandWildcards? >("expand_wildcards");
set => Q("expand_wildcards", value);
}
}

[InterfaceDataContract]
Expand Down Expand Up @@ -1450,7 +1456,13 @@ public GetDataStreamRequest(Names name): base(r => r.Optional("name", name))
// values part of the url path
[IgnoreDataMember]
Names IGetDataStreamRequest.Name => Self.RouteValues.Get<Names>("name");
// Request parameters
// Request parameters
///<summary>Whether wildcard expressions should get expanded to open or closed indices (default: open)</summary>
public ExpandWildcards? ExpandWildcards
{
get => Q<ExpandWildcards? >("expand_wildcards");
set => Q("expand_wildcards", value);
}
}

[InterfaceDataContract]
Expand Down
14 changes: 14 additions & 0 deletions src/Nest/Requests.MachineLearning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,13 @@ public bool? AllowNoMatch
get => Q<bool? >("allow_no_match");
set => Q("allow_no_match", value);
}

///<summary>Omits fields that are illegal to set on datafeed PUT</summary>
public bool? ExcludeGenerated
{
get => Q<bool? >("exclude_generated");
set => Q("exclude_generated", value);
}
}

[InterfaceDataContract]
Expand Down Expand Up @@ -1011,6 +1018,13 @@ public bool? AllowNoMatch
get => Q<bool? >("allow_no_match");
set => Q("allow_no_match", value);
}

///<summary>Omits fields that are illegal to set on job PUT</summary>
public bool? ExcludeGenerated
{
get => Q<bool? >("exclude_generated");
set => Q("exclude_generated", value);
}
}

[InterfaceDataContract]
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 @@ -42,6 +42,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 @@ -104,6 +105,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 @@ -145,6 +147,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
7 changes: 7 additions & 0 deletions src/Nest/Requests.Transform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ public bool? AllowNoMatch
set => Q("allow_no_match", value);
}

///<summary>Omits fields that are illegal to set on transform PUT</summary>
public bool? ExcludeGenerated
{
get => Q<bool? >("exclude_generated");
set => Q("exclude_generated", value);
}

///<summary>skips a number of transform configs, defaults to 0</summary>
public int? From
{
Expand Down