Skip to content

Commit dfcdb8c

Browse files
committed
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. (cherry picked from commit a98db4c)
1 parent c7e92fb commit dfcdb8c

Some content is hidden

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

41 files changed

+825
-405
lines changed

src/CodeGeneration/ApiGenerator/Configuration/CodeConfiguration.cs

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

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

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

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

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

+150-166
Large diffs are not rendered by default.

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

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

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

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

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

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

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"type": "time",
2323
"required": false,
2424
"description": "Controls the time to wait until the transform has stopped. Default to 30 seconds"
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
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"indices.reload_search_analyzers": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-reload-analyzers.html",
4+
"stability": "experimental",
5+
"methods": ["GET", "POST"],
6+
"url": {
7+
"paths": ["/{index}/_reload_search_analyzers"],
8+
"parts": {
9+
"index": {
10+
"type": "list",
11+
"description" : "A comma-separated list of index names to reload analyzers for"
12+
}
13+
},
14+
"params": {
15+
"ignore_unavailable": {
16+
"type" : "boolean",
17+
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
18+
},
19+
"allow_no_indices": {
20+
"type" : "boolean",
21+
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
22+
},
23+
"expand_wildcards": {
24+
"type" : "enum",
25+
"options" : ["open","closed","none","all"],
26+
"default" : "open",
27+
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
28+
}
29+
}
30+
},
31+
"body": null
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"ml.delete_data_frame_analytics": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html",
4+
"stability": "experimental",
5+
"methods": [ "DELETE" ],
6+
"url": {
7+
"path": "/_ml/data_frame/analytics/{id}",
8+
"paths": [ "/_ml/data_frame/analytics/{id}" ],
9+
"parts": {
10+
"id": {
11+
"type" : "string",
12+
"required" : true,
13+
"description" : "The ID of the data frame analytics to delete"
14+
}
15+
}
16+
},
17+
"body": null
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"ml.evaluate_data_frame": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html",
4+
"stability": "experimental",
5+
"methods": [ "POST" ],
6+
"url": {
7+
"path": "/_ml/data_frame/_evaluate",
8+
"paths": [ "/_ml/data_frame/_evaluate" ],
9+
"parts": {}
10+
},
11+
"body": {
12+
"description" : "The evaluation definition",
13+
"required" : true
14+
}
15+
}
16+
}

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/ml.find_file_structure.json

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
"description": "How many lines of the file should be included in the analysis",
1212
"default": 1000
1313
},
14+
"line_merge_size_limit": {
15+
"type": "int",
16+
"description": "Maximum number of characters permitted in a single message when lines are merged to create messages.",
17+
"default": 10000
18+
},
1419
"timeout": {
1520
"type": "time",
1621
"description": "Timeout after which the analysis will be aborted",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"ml.get_data_frame_analytics": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html",
4+
"stability": "experimental",
5+
"methods": [ "GET"],
6+
"url": {
7+
"path": "/_ml/data_frame/analytics/{id}",
8+
"paths": [
9+
"/_ml/data_frame/analytics/{id}",
10+
"/_ml/data_frame/analytics"
11+
],
12+
"parts": {
13+
"id": {
14+
"type": "string",
15+
"description": "The ID of the data frame analytics to fetch"
16+
}
17+
},
18+
"params": {
19+
"allow_no_match": {
20+
"type": "boolean",
21+
"required": false,
22+
"description": "Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)",
23+
"default": true
24+
},
25+
"from": {
26+
"type": "int",
27+
"description": "skips a number of analytics",
28+
"default": 0
29+
},
30+
"size": {
31+
"type": "int",
32+
"description": "specifies a max number of analytics to get",
33+
"default": 100
34+
}
35+
}
36+
},
37+
"body": null
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"ml.get_data_frame_analytics_stats": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html",
4+
"stability": "experimental",
5+
"methods": [ "GET"],
6+
"url": {
7+
"path": "/_ml/data_frame/analytics/{id}/_stats",
8+
"paths": [
9+
"/_ml/data_frame/analytics/_stats",
10+
"/_ml/data_frame/analytics/{id}/_stats"
11+
],
12+
"parts": {
13+
"id": {
14+
"type": "string",
15+
"description": "The ID of the data frame analytics stats to fetch"
16+
}
17+
},
18+
"params": {
19+
"allow_no_match": {
20+
"type": "boolean",
21+
"required": false,
22+
"description": "Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)",
23+
"default": true
24+
},
25+
"from": {
26+
"type": "int",
27+
"description": "skips a number of analytics",
28+
"default": 0
29+
},
30+
"size": {
31+
"type": "int",
32+
"description": "specifies a max number of analytics to get",
33+
"default": 100
34+
}
35+
}
36+
},
37+
"body": null
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"ml.put_data_frame_analytics": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html",
4+
"stability": "experimental",
5+
"methods": [ "PUT" ],
6+
"url": {
7+
"path": "/_ml/data_frame/analytics/{id}",
8+
"paths": [ "/_ml/data_frame/analytics/{id}" ],
9+
"parts": {
10+
"id": {
11+
"type": "string",
12+
"required": true,
13+
"description": "The ID of the data frame analytics to create"
14+
}
15+
}
16+
},
17+
"body": {
18+
"description" : "The data frame analytics configuration",
19+
"required" : true
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"ml.start_data_frame_analytics": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html",
4+
"stability": "experimental",
5+
"methods": [ "POST" ],
6+
"url": {
7+
"path": "/_ml/data_frame/analytics/{id}/_start",
8+
"paths": [ "/_ml/data_frame/analytics/{id}/_start" ],
9+
"parts": {
10+
"id": {
11+
"type": "string",
12+
"required": true,
13+
"description": "The ID of the data frame analytics to start"
14+
}
15+
},
16+
"params": {
17+
"timeout": {
18+
"type": "time",
19+
"required": false,
20+
"description": "Controls the time to wait until the task has started. Defaults to 20 seconds"
21+
}
22+
}
23+
},
24+
"body": {
25+
"description": "The start data frame analytics parameters"
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"ml.stop_data_frame_analytics": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html",
4+
"stability": "experimental",
5+
"methods": [ "POST" ],
6+
"url": {
7+
"path": "/_ml/data_frame/analytics/{id}/_stop",
8+
"paths": [ "/_ml/data_frame/analytics/{id}/_stop" ],
9+
"parts": {
10+
"id": {
11+
"type": "string",
12+
"required": true,
13+
"description": "The ID of the data frame analytics to stop"
14+
}
15+
},
16+
"params": {
17+
"allow_no_match": {
18+
"type": "boolean",
19+
"required": false,
20+
"description": "Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)"
21+
},
22+
"force": {
23+
"type": "boolean",
24+
"required": false,
25+
"description": "True if the data frame analytics should be forcefully stopped"
26+
},
27+
"timeout": {
28+
"type": "time",
29+
"required": false,
30+
"description": "Controls the time to wait until the task has stopped. Defaults to 20 seconds"
31+
}
32+
}
33+
},
34+
"body": {
35+
"description": "The stop data frame analytics parameters"
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)