Skip to content

Commit 424f3f4

Browse files
authored
Update with latest 7.8 REST specs (#4790)
This commit runs the ApiGenerator to update the client with the latest changes on 7.8 branch
1 parent 74b627a commit 424f3f4

File tree

6 files changed

+497
-474
lines changed

6 files changed

+497
-474
lines changed

src/ApiGenerator/RestSpecification/Core/indices.simulate_index_template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
55
"description": "Simulate matching the given index name against the index templates in the system"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

src/ApiGenerator/RestSpecification/Core/root.html

Lines changed: 217 additions & 212 deletions
Large diffs are not rendered by default.

src/ApiGenerator/RestSpecification/XPack/ml.delete_data_frame_analytics.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
"type":"boolean",
2727
"description":"True if the job should be forcefully deleted",
2828
"default":false
29+
},
30+
"timeout":{
31+
"type":"time",
32+
"description":"Controls the time to wait until a job is deleted. Defaults to 1 minute"
2933
}
3034
}
3135
}

src/ApiGenerator/RestSpecification/XPack/root.html

Lines changed: 266 additions & 261 deletions
Large diffs are not rendered by default.

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ public bool? Force
8383
get => Q<bool? >("force");
8484
set => Q("force", value);
8585
}
86+
87+
///<summary>Controls the time to wait until a job is deleted. Defaults to 1 minute</summary>
88+
public TimeSpan Timeout
89+
{
90+
get => Q<TimeSpan>("timeout");
91+
set => Q("timeout", value);
92+
}
8693
}
8794

8895
///<summary>Request options for DeleteDatafeed <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html</para></summary>

src/Elasticsearch.Net/ElasticLowLevelClient.Indices.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,12 +877,14 @@ public Task<TResponse> ShrinkAsync<TResponse>(string index, string target, PostD
877877
///<param name = "name">The name of the index (it must be a concrete index name)</param>
878878
///<param name = "body">New index template definition, which will be included in the simulation, as if it already exists in the system</param>
879879
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
880+
///<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. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
880881
public TResponse SimulateIndexTemplateForAll<TResponse>(string name, PostData body, SimulateIndexTemplateRequestParameters requestParameters = null)
881882
where TResponse : class, IElasticsearchResponse, new() => DoRequest<TResponse>(POST, Url($"_index_template/_simulate_index/{name:name}"), body, RequestParams(requestParameters));
882883
///<summary>POST on /_index_template/_simulate_index/{name} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html</para></summary>
883884
///<param name = "name">The name of the index (it must be a concrete index name)</param>
884885
///<param name = "body">New index template definition, which will be included in the simulation, as if it already exists in the system</param>
885886
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
887+
///<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. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
886888
[MapsApi("indices.simulate_index_template", "name, body")]
887889
public Task<TResponse> SimulateIndexTemplateForAllAsync<TResponse>(string name, PostData body, SimulateIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
888890
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(POST, Url($"_index_template/_simulate_index/{name:name}"), ctx, body, RequestParams(requestParameters));

0 commit comments

Comments
 (0)