diff --git a/src/ApiGenerator/Views/HighLevel/Descriptors/Descriptor.cshtml b/src/ApiGenerator/Views/HighLevel/Descriptors/Descriptor.cshtml index 3b304225fb0..ca31b818a2d 100644 --- a/src/ApiGenerator/Views/HighLevel/Descriptors/Descriptor.cshtml +++ b/src/ApiGenerator/Views/HighLevel/Descriptors/Descriptor.cshtml @@ -57,7 +57,7 @@ await IncludeAsync("HighLevel/Descriptors/XmlDocs.cshtml", desc); if(!string.IsNullOrWhiteSpace(param.Obsolete)) { - [Obsolete("Scheduled to be removed in 7.0, @param.Obsolete")] + [Obsolete("Scheduled to be removed in 8.0, @param.Obsolete")] } diff --git a/src/Nest/Descriptors.Cat.cs b/src/Nest/Descriptors.Cat.cs index d9c8c9e532e..a170245375a 100644 --- a/src/Nest/Descriptors.Cat.cs +++ b/src/Nest/Descriptors.Cat.cs @@ -262,7 +262,7 @@ public CatIndicesDescriptor Index() public CatIndicesDescriptor Help(bool? help = true) => Qs("help", help); ///If set to true segment stats will include stats for segments that are not currently loaded into memory public CatIndicesDescriptor IncludeUnloadedSegments(bool? includeunloadedsegments = true) => Qs("include_unloaded_segments", includeunloadedsegments); - ///Return local information, do not retrieve the state from master node (default: false) + ///Return local information, do not retrieve the state from master node (default: false) [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); ///Explicit operation timeout for connection to master node public CatIndicesDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout); @@ -677,7 +677,7 @@ public CatShardsDescriptor Index() public CatShardsDescriptor Headers(params string[] headers) => Qs("h", headers); ///Return help information public CatShardsDescriptor Help(bool? help = true) => Qs("help", help); - ///Return local information, do not retrieve the state from master node (default: false) + ///Return local information, do not retrieve the state from master node (default: false) [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); ///Explicit operation timeout for connection to master node public CatShardsDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout); @@ -740,9 +740,9 @@ public partial class CatTasksDescriptor : RequestDescriptorBaseReturn help information public CatTasksDescriptor Help(bool? help = true) => Qs("help", 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 - public CatTasksDescriptor NodeId(params string[] nodeid) => Qs("node_id", nodeid); - ///Return tasks with specified parent task id. Set to -1 to return all. - public CatTasksDescriptor ParentTask(long? parenttask) => Qs("parent_task", parenttask); + public CatTasksDescriptor Nodes(params string[] nodes) => Qs("nodes", nodes); + ///Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. + public CatTasksDescriptor ParentTaskId(string parenttaskid) => Qs("parent_task_id", parenttaskid); ///Comma-separated list of column names or column aliases to sort by public CatTasksDescriptor SortByColumns(params string[] sortbycolumns) => Qs("s", sortbycolumns); ///Verbose mode. Display column headers diff --git a/src/Nest/Descriptors.Indices.cs b/src/Nest/Descriptors.Indices.cs index 174478180b8..4d4ca7655ae 100644 --- a/src/Nest/Descriptors.Indices.cs +++ b/src/Nest/Descriptors.Indices.cs @@ -380,7 +380,9 @@ protected DeleteDataStreamDescriptor(): base() // values part of the url path Names IDeleteDataStreamRequest.Name => Self.RouteValues.Get("name"); - // Request parameters + // Request parameters + ///Whether wildcard expressions should get expanded to open or closed indices (default: open) + public DeleteDataStreamDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) => Qs("expand_wildcards", expandwildcards); } ///Descriptor for DeleteTemplate https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html @@ -818,7 +820,9 @@ public GetDataStreamDescriptor(Names name): base(r => r.Optional("name", name)) Names IGetDataStreamRequest.Name => Self.RouteValues.Get("name"); ///A comma-separated list of data streams to get; use `*` to get all data streams public GetDataStreamDescriptor Name(Names name) => Assign(name, (a, v) => a.RouteValues.Optional("name", v)); - // Request parameters + // Request parameters + ///Whether wildcard expressions should get expanded to open or closed indices (default: open) + public GetDataStreamDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) => Qs("expand_wildcards", expandwildcards); } ///Descriptor for GetFieldMapping https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html diff --git a/src/Nest/Descriptors.MachineLearning.cs b/src/Nest/Descriptors.MachineLearning.cs index 4dc85945609..0aca56262ce 100644 --- a/src/Nest/Descriptors.MachineLearning.cs +++ b/src/Nest/Descriptors.MachineLearning.cs @@ -491,6 +491,8 @@ public GetDatafeedsDescriptor(): base() public GetDatafeedsDescriptor AllowNoDatafeeds(bool? allownodatafeeds = true) => Qs("allow_no_datafeeds", allownodatafeeds); ///Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) public GetDatafeedsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch); + ///Omits fields that are illegal to set on datafeed PUT + public GetDatafeedsDescriptor ExcludeGenerated(bool? excludegenerated = true) => Qs("exclude_generated", excludegenerated); } ///Descriptor for GetFilters https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html @@ -590,6 +592,8 @@ public GetJobsDescriptor(): base() public GetJobsDescriptor AllowNoJobs(bool? allownojobs = true) => Qs("allow_no_jobs", allownojobs); ///Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) public GetJobsDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch); + ///Omits fields that are illegal to set on job PUT + public GetJobsDescriptor ExcludeGenerated(bool? excludegenerated = true) => Qs("exclude_generated", excludegenerated); } ///Descriptor for GetModelSnapshots https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html diff --git a/src/Nest/Descriptors.Transform.cs b/src/Nest/Descriptors.Transform.cs index 69aadad7f02..560ac67ddef 100644 --- a/src/Nest/Descriptors.Transform.cs +++ b/src/Nest/Descriptors.Transform.cs @@ -75,6 +75,8 @@ public GetTransformDescriptor(): base() // Request parameters ///Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified) public GetTransformDescriptor AllowNoMatch(bool? allownomatch = true) => Qs("allow_no_match", allownomatch); + ///Omits fields that are illegal to set on transform PUT + public GetTransformDescriptor ExcludeGenerated(bool? excludegenerated = true) => Qs("exclude_generated", excludegenerated); ///skips a number of transform configs, defaults to 0 public GetTransformDescriptor From(int? from) => Qs("from", from); ///specifies a max number of transforms to get, defaults to 100 diff --git a/src/Nest/Requests.Cat.cs b/src/Nest/Requests.Cat.cs index 41e26c3cb72..b28c435d66d 100644 --- a/src/Nest/Requests.Cat.cs +++ b/src/Nest/Requests.Cat.cs @@ -579,6 +579,7 @@ public bool? IncludeUnloadedSegments } ///Return local information, do not retrieve the state from master node (default: false) + [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("local"); @@ -1626,6 +1627,7 @@ public bool? Help } ///Return local information, do not retrieve the state from master node (default: false) + [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("local"); @@ -1744,6 +1746,7 @@ public partial interface ICatTasksRequest : IRequest } ///Request for Tasks https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html + ///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. public partial class CatTasksRequest : PlainRequestBase, ICatTasksRequest { protected ICatTasksRequest Self => this; @@ -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 /// - public string[] NodeId + public string[] Nodes { - get => Q("node_id"); - set => Q("node_id", value); + get => Q("nodes"); + set => Q("nodes", value); } - ///Return tasks with specified parent task id. Set to -1 to return all. - public long? ParentTask + ///Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. + public string ParentTaskId { - get => Q("parent_task"); - set => Q("parent_task", value); + get => Q("parent_task_id"); + set => Q("parent_task_id", value); } ///Comma-separated list of column names or column aliases to sort by diff --git a/src/Nest/Requests.Indices.cs b/src/Nest/Requests.Indices.cs index d07aeea2eb6..26f133fb692 100644 --- a/src/Nest/Requests.Indices.cs +++ b/src/Nest/Requests.Indices.cs @@ -641,7 +641,13 @@ protected DeleteDataStreamRequest(): base() // values part of the url path [IgnoreDataMember] Names IDeleteDataStreamRequest.Name => Self.RouteValues.Get("name"); - // Request parameters + // Request parameters + ///Whether wildcard expressions should get expanded to open or closed indices (default: open) + public ExpandWildcards? ExpandWildcards + { + get => Q("expand_wildcards"); + set => Q("expand_wildcards", value); + } } [InterfaceDataContract] @@ -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("name"); - // Request parameters + // Request parameters + ///Whether wildcard expressions should get expanded to open or closed indices (default: open) + public ExpandWildcards? ExpandWildcards + { + get => Q("expand_wildcards"); + set => Q("expand_wildcards", value); + } } [InterfaceDataContract] diff --git a/src/Nest/Requests.MachineLearning.cs b/src/Nest/Requests.MachineLearning.cs index 9bc3eaec0ad..bb19fa8d9b3 100644 --- a/src/Nest/Requests.MachineLearning.cs +++ b/src/Nest/Requests.MachineLearning.cs @@ -841,6 +841,13 @@ public bool? AllowNoMatch get => Q("allow_no_match"); set => Q("allow_no_match", value); } + + ///Omits fields that are illegal to set on datafeed PUT + public bool? ExcludeGenerated + { + get => Q("exclude_generated"); + set => Q("exclude_generated", value); + } } [InterfaceDataContract] @@ -1011,6 +1018,13 @@ public bool? AllowNoMatch get => Q("allow_no_match"); set => Q("allow_no_match", value); } + + ///Omits fields that are illegal to set on job PUT + public bool? ExcludeGenerated + { + get => Q("exclude_generated"); + set => Q("exclude_generated", value); + } } [InterfaceDataContract] diff --git a/src/Nest/Requests.Tasks.cs b/src/Nest/Requests.Tasks.cs index fedb707db05..aa02f0cc3d4 100644 --- a/src/Nest/Requests.Tasks.cs +++ b/src/Nest/Requests.Tasks.cs @@ -42,6 +42,7 @@ TaskId TaskId } ///Request for Cancel https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html + ///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. public partial class CancelTasksRequest : PlainRequestBase, ICancelTasksRequest { protected ICancelTasksRequest Self => this; @@ -104,6 +105,7 @@ TaskId TaskId } ///Request for GetTask https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html + ///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. public partial class GetTaskRequest : PlainRequestBase, IGetTaskRequest { protected IGetTaskRequest Self => this; @@ -145,6 +147,7 @@ public partial interface IListTasksRequest : IRequestRequest for List https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html + ///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. public partial class ListTasksRequest : PlainRequestBase, IListTasksRequest { protected IListTasksRequest Self => this; diff --git a/src/Nest/Requests.Transform.cs b/src/Nest/Requests.Transform.cs index 47a1e8de284..a140c05d7c5 100644 --- a/src/Nest/Requests.Transform.cs +++ b/src/Nest/Requests.Transform.cs @@ -110,6 +110,13 @@ public bool? AllowNoMatch set => Q("allow_no_match", value); } + ///Omits fields that are illegal to set on transform PUT + public bool? ExcludeGenerated + { + get => Q("exclude_generated"); + set => Q("exclude_generated", value); + } + ///skips a number of transform configs, defaults to 0 public int? From {