Skip to content

Commit a98db4c

Browse files
authored
Regen APIs with v7.3.1 specs (#4061)
This commit regenerates APIs using the v7.3.1 REST API specs. Ignore new APIs for now.
1 parent c26530b commit a98db4c

File tree

84 files changed

+2686
-2218
lines changed

Some content is hidden

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

84 files changed

+2686
-2218
lines changed

src/CodeGeneration/ApiGenerator/Configuration/CodeConfiguration.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public static class CodeConfiguration
1616
"indices.get_upgrade.json",
1717

1818
// these APIs are not ready for primetime yet
19+
"indices.reload_search_analyzers.json",
1920
"rank_eval.json",
21+
2022
"data_frame.delete_data_frame_transform.json",
2123
"data_frame.get_data_frame_transform.json",
2224
"data_frame.get_data_frame_transform_stats.json",
@@ -25,7 +27,16 @@ public static class CodeConfiguration
2527
"data_frame.start_data_frame_transform.json",
2628
"data_frame.stop_data_frame_transform.json",
2729

30+
"ml.evaluate_data_frame.json",
31+
"ml.delete_data_frame_analytics.json",
32+
"ml.get_data_frame_analytics.json",
33+
"ml.get_data_frame_analytics_stats.json",
34+
"ml.put_data_frame_analytics.json",
35+
"ml.start_data_frame_analytics.json",
36+
"ml.stop_data_frame_analytics.json",
37+
2838
"scripts_painless_context.json",
39+
"security.get_builtin_privileges.json",
2940

3041
// these APIs are new and need to be mapped
3142
"ml.set_upgrade_mode.json",

src/CodeGeneration/ApiGenerator/RestSpecification/Core/clear_scroll.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"clear_scroll": {
3-
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html",
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll",
44
"stability": "stable",
55
"methods": ["DELETE"],
66
"url": {

src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@
9999
},
100100
"size": {
101101
"type" : "number",
102-
"description" : "Number of hits to return (default: 10)"
102+
"description" : "Deprecated, please use `max_docs` instead"
103+
},
104+
"max_docs": {
105+
"type" : "number",
106+
"description" : "Maximum number of documents to process (default: all documents)"
103107
},
104108
"sort": {
105109
"type" : "list",

src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush_synced.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"indices.flush_synced": {
3-
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html",
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html#synced-flush-api",
44
"stability": "stable",
55
"methods": ["POST", "GET"],
66
"url": {

src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
"type": "number",
4040
"default": 1,
4141
"description": "The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks."
42+
},
43+
"max_docs": {
44+
"type" : "number",
45+
"description" : "Maximum number of documents to process (default: all documents)"
4246
}
4347
}
4448
},

src/CodeGeneration/ApiGenerator/RestSpecification/Core/root.html

Lines changed: 167 additions & 183 deletions
Large diffs are not rendered by default.

src/CodeGeneration/ApiGenerator/RestSpecification/Core/scroll.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scroll": {
3-
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html",
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll",
44
"stability": "stable",
55
"methods": ["GET", "POST"],
66
"url": {

src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@
103103
},
104104
"size": {
105105
"type" : "number",
106-
"description" : "Number of hits to return (default: 10)"
106+
"description" : "Deprecated, please use `max_docs` instead"
107+
},
108+
"max_docs": {
109+
"type" : "number",
110+
"description" : "Maximum number of documents to process (default: all documents)"
107111
},
108112
"sort": {
109113
"type" : "list",

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"type": "int",
2323
"required": false,
2424
"description": "specifies a max number of transforms to get, defaults to 100"
25+
},
26+
"allow_no_match": {
27+
"type": "boolean",
28+
"required": false,
29+
"description": "Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms have been specified)"
2530
}
2631
}
2732
},

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform_stats.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"type": "number",
2323
"required": false,
2424
"description": "specifies a max number of transform stats to get, defaults to 100"
25+
},
26+
"allow_no_match": {
27+
"type": "boolean",
28+
"required": false,
29+
"description": "Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms have been specified)"
2530
}
2631
}
2732
},

0 commit comments

Comments
 (0)