Skip to content

Commit d38df95

Browse files
committed
Update specifications for 7.7.0
1 parent 625c13e commit d38df95

File tree

76 files changed

+1185
-2981
lines changed

Some content is hidden

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

76 files changed

+1185
-2981
lines changed

src/ApiGenerator/Configuration/CodeConfiguration.cs

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static class CodeConfiguration
1111
/// <summary> These APIs are not implemented yet in the low and high level client</summary>
1212
public static string[] IgnoredApis { get; } =
1313
{
14-
// Upgrade API no longer relevant, might make a reapearance
14+
// Upgrade API no longer relevant, might make a re-appearance
1515
"indices.upgrade.json",
1616
"indices.get_upgrade.json",
1717

@@ -32,16 +32,37 @@ public static class CodeConfiguration
3232
"data_frame_transform_deprecated.start_transform.json",
3333
"data_frame_transform_deprecated.stop_transform.json",
3434
"data_frame_transform_deprecated.update_transform.json",
35+
36+
// New as of 7.7. branch
37+
"autoscaling.get_autoscaling_decision.json",
38+
"indices.create_data_stream.json",
39+
"indices.delete_data_stream.json",
40+
"indices.get_data_streams.json",
41+
"cat.transform.json",
42+
"cat.ml_jobs.json",
43+
"cat.ml_data_frame_analytics.json",
44+
"cat.ml_datafeeds.json",
45+
"cat.ml_trained_models.json",
46+
"async_search.delete.json",
47+
"async_search.submit.json",
48+
"async_search.get.json",
49+
"cluster.delete_component_template.json",
50+
"cluster.get_component_template.json",
51+
"cluster.put_component_template.json",
52+
"ml.delete_trained_model.json",
53+
"ml.explain_data_frame_analytics.json",
54+
"ml.get_trained_models.json",
55+
"ml.get_trained_models_stats.json",
56+
"ml.put_trained_model.json",
3557
};
3658

37-
public static string[] IgnoredApisHighLevel { get; } = new []
59+
public static string[] IgnoredApisHighLevel { get; } =
3860
{
3961
"get_script_context.json",
4062
"get_script_languages.json",
4163
"scripts_painless_context.json",
4264
"security.get_builtin_privileges.json",
4365

44-
// these APIs are new and need to be mapped
4566
"transform.delete_transform.json",
4667
"transform.get_transform.json",
4768
"transform.get_transform_stats.json",
@@ -60,7 +81,7 @@ public static class CodeConfiguration
6081
"data_frame.stop_data_frame_transform.json",
6182
"data_frame.update_data_frame_transform.json",
6283

63-
"ml.estimate_memory_usage.json",
84+
"ml.estimate_model_memory.json",
6485
"ml.set_upgrade_mode.json",
6586
"ml.find_file_structure.json",
6687
"ml.evaluate_data_frame.json",

src/ApiGenerator/Domain/Specification/UrlPart.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
namespace ApiGenerator.Domain.Specification
55
{
66

7-
//TODO once https://github.com/elastic/elasticsearch/pull/42346 lands
7+
//TODO once https://github.com/elastic/elasticsearch/pull/42346 lands
88
// Rename this type to Deprecation and remove Path duplication
99
public class DeprecatedPath
1010
{
1111
public string Version { get; set; }
1212
public string Path { get; set; }
1313
public string Description { get; set; }
1414
}
15-
16-
15+
16+
1717
public class UrlPart
1818
{
1919
private string _description;
@@ -80,6 +80,8 @@ public string HighLevelTypeName
8080
case "datafeed_id":
8181
case "snapshot_id":
8282
case "filter_id":
83+
case "transform_id":
84+
case "model_id":
8385
case "id":
8486
return "Id";
8587

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"indices.create_data_stream":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Creates or updates a data stream"
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_stream/{name}",
12+
"methods":[
13+
"PUT"
14+
],
15+
"parts":{
16+
"name":{
17+
"type":"string",
18+
"description":"The name of the data stream"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{
25+
},
26+
"body":{
27+
"description":"The data stream definition",
28+
"required":true
29+
}
30+
}
31+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"indices.delete_data_stream":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Deletes a data stream."
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_stream/{name}",
12+
"methods":[
13+
"DELETE"
14+
],
15+
"parts":{
16+
"name":{
17+
"type":"string",
18+
"description":"The name of the data stream"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{}
25+
}
26+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"indices.get_data_streams":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Returns data streams."
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_streams",
12+
"methods":[
13+
"GET"
14+
]
15+
},
16+
{
17+
"path":"/_data_streams/{name}",
18+
"methods":[
19+
"GET"
20+
],
21+
"parts":{
22+
"name":{
23+
"type":"list",
24+
"description":"The comma separated names of data streams"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{
31+
}
32+
}
33+
}

src/ApiGenerator/RestSpecification/Core/msearch.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@
6666
"type" : "boolean",
6767
"description" : "Specify whether aggregation and suggester names should be prefixed by their respective types in the response"
6868
},
69-
"pre_filter_shard_size" : {
70-
"type" : "number",
71-
"description" : "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.",
72-
"default" : 128
69+
"pre_filter_shard_size":{
70+
"type":"number",
71+
"description" : "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint."
7372
},
7473
"max_concurrent_shard_requests" : {
7574
"type" : "number",

0 commit comments

Comments
 (0)