Skip to content

Commit 6d76b20

Browse files
authored
Update specifications for 7.7.0 (#4513)
Update specifications for 7.7.0
1 parent 145869b commit 6d76b20

File tree

77 files changed

+1563
-1789
lines changed

Some content is hidden

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

77 files changed

+1563
-1789
lines changed

src/ApiGenerator/Configuration/CodeConfiguration.cs

+44-36
Original file line numberDiff line numberDiff line change
@@ -11,16 +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
15-
"indices.upgrade.json",
16-
"indices.get_upgrade.json",
17-
18-
// these APIs are not ready for primetime yet
19-
"indices.reload_search_analyzers.json",
20-
"rank_eval.json",
21-
"eql.search.json",
22-
23-
// Internal API,
14+
// Internal only,
2415
"monitoring.bulk.json",
2516

2617
// Never exposed and now deprecated
@@ -32,16 +23,53 @@ public static class CodeConfiguration
3223
"data_frame_transform_deprecated.start_transform.json",
3324
"data_frame_transform_deprecated.stop_transform.json",
3425
"data_frame_transform_deprecated.update_transform.json",
26+
27+
// To be removed
28+
"indices.upgrade.json",
29+
"indices.get_upgrade.json",
3530
};
3631

37-
public static string[] IgnoredApisHighLevel { get; } = new []
32+
public static string[] IgnoredApisHighLevel { get; } =
3833
{
39-
"get_script_context.json",
40-
"get_script_languages.json",
41-
"scripts_painless_context.json",
34+
"autoscaling.get_autoscaling_decision.json", // 7.7 experimental
35+
"eql.search.json", // 7.7 beta
36+
"get_script_context.json", // 7.7 experimental
37+
"get_script_languages.json", // 7.7 experimental
38+
"indices.create_data_stream.json", // 7.7 experimental
39+
"indices.delete_data_stream.json", // 7.7 experimental
40+
"indices.get_data_streams.json", // 7.7 experimental
41+
"ml.delete_data_frame_analytics.json", // 7.7 experimental
42+
"ml.delete_trained_model.json", // 7.7 experimental
43+
"ml.evaluate_data_frame.json", // 7.7 experimental
44+
"ml.explain_data_frame_analytics.json", // 7.7 experimental
45+
"ml.find_file_structure.json", // 7.7 experimental
46+
"ml.get_data_frame_analytics.json", // 7.7 experimental
47+
"ml.get_data_frame_analytics_stats.json", // 7.7 experimental
48+
"ml.get_trained_models.json", // 7.7 experimental
49+
"ml.get_trained_models_stats.json", // 7.7 experimental
50+
"ml.put_data_frame_analytics.json", // 7.7 experimental
51+
"ml.put_trained_model.json", // 7.7 experimental
52+
"ml.start_data_frame_analytics.json", // 7.7 experimental
53+
"ml.stop_data_frame_analytics.json", // 7.7 experimental
54+
"rank_eval.json", // 7.7 experimental
55+
"scripts_painless_context.json", // 7.7 experimental
56+
57+
// 7.7 - to be implemented
58+
"async_search.delete.json",
59+
"async_search.get.json",
60+
"async_search.submit.json",
61+
"cat.ml_data_frame_analytics.json",
62+
"cat.ml_datafeeds.json",
63+
"cat.ml_jobs.json",
64+
"cat.ml_trained_models.json",
65+
"cat.transform.json",
66+
"cluster.delete_component_template.json",
67+
"cluster.get_component_template.json",
68+
"cluster.put_component_template.json",
69+
"indices.reload_search_analyzers.json",
70+
"ml.estimate_model_memory.json",
71+
"ml.set_upgrade_mode.json",
4272
"security.get_builtin_privileges.json",
43-
44-
// these APIs are new and need to be mapped
4573
"transform.delete_transform.json",
4674
"transform.get_transform.json",
4775
"transform.get_transform_stats.json",
@@ -50,26 +78,6 @@ public static class CodeConfiguration
5078
"transform.start_transform.json",
5179
"transform.stop_transform.json",
5280
"transform.update_transform.json",
53-
54-
"data_frame.delete_data_frame_transform.json",
55-
"data_frame.get_data_frame_transform.json",
56-
"data_frame.get_data_frame_transform_stats.json",
57-
"data_frame.preview_data_frame_transform.json",
58-
"data_frame.put_data_frame_transform.json",
59-
"data_frame.start_data_frame_transform.json",
60-
"data_frame.stop_data_frame_transform.json",
61-
"data_frame.update_data_frame_transform.json",
62-
63-
"ml.estimate_memory_usage.json",
64-
"ml.set_upgrade_mode.json",
65-
"ml.find_file_structure.json",
66-
"ml.evaluate_data_frame.json",
67-
"ml.delete_data_frame_analytics.json",
68-
"ml.get_data_frame_analytics.json",
69-
"ml.get_data_frame_analytics_stats.json",
70-
"ml.put_data_frame_analytics.json",
71-
"ml.start_data_frame_analytics.json",
72-
"ml.stop_data_frame_analytics.json",
7381
};
7482

7583

src/ApiGenerator/Domain/Specification/UrlPart.cs

+5-3
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

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+
}
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+
}
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

+3-4
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)