Skip to content

Commit 5cd5345

Browse files
authored
Update rest specs to 7.9 and regenerate client (#121)
This commit runs the api_generator to pull down the latest 7.9 rest specs and regenerate the client to pick up API changes.
1 parent 6a09df5 commit 5cd5345

16 files changed

+641
-10
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"eql.delete":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html",
5+
"description": "Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."
6+
},
7+
"stability":"beta",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_eql/search/{id}",
12+
"methods":[
13+
"DELETE"
14+
],
15+
"parts":{
16+
"id":{
17+
"type":"string",
18+
"description":"The async search ID"
19+
}
20+
}
21+
}
22+
]
23+
}
24+
}
25+
}

api_generator/rest_specs/eql.get.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"eql.get":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html",
5+
"description": "Returns async results from previously executed Event Query Language (EQL) search"
6+
},
7+
"stability": "beta",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_eql/search/{id}",
12+
"methods":[
13+
"GET"
14+
],
15+
"parts":{
16+
"id":{
17+
"type":"string",
18+
"description":"The async search ID"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{
25+
"wait_for_completion_timeout":{
26+
"type":"time",
27+
"description":"Specify the time that the request should block waiting for the final response"
28+
},
29+
"keep_alive": {
30+
"type": "time",
31+
"description": "Update the time interval in which the results (partial or final) for this search will be available",
32+
"default": "5d"
33+
}
34+
}
35+
}
36+
}

api_generator/rest_specs/eql.search.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,22 @@
2222
}
2323
]
2424
},
25-
"params":{},
25+
"params":{
26+
"wait_for_completion_timeout":{
27+
"type":"time",
28+
"description":"Specify the time that the request should block waiting for the final response"
29+
},
30+
"keep_on_completion":{
31+
"type":"boolean",
32+
"description":"Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)",
33+
"default":false
34+
},
35+
"keep_alive": {
36+
"type": "time",
37+
"description": "Update the time interval in which the results (partial or final) for this search will be available",
38+
"default": "5d"
39+
}
40+
},
2641
"body":{
2742
"description":"Eql request body. Use the `query` to limit the query scope.",
2843
"required":true
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"indices.add_block":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html",
5+
"description":"Adds a block to an index."
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/{index}/_block/{block}",
12+
"methods":[
13+
"PUT"
14+
],
15+
"parts":{
16+
"index":{
17+
"type":"list",
18+
"description":"A comma separated list of indices to add a block to"
19+
},
20+
"block":{
21+
"type":"string",
22+
"description":"The block to add (one of read, write, read_only or metadata)"
23+
}
24+
}
25+
}
26+
]
27+
},
28+
"params":{
29+
"timeout":{
30+
"type":"time",
31+
"description":"Explicit operation timeout"
32+
},
33+
"master_timeout":{
34+
"type":"time",
35+
"description":"Specify timeout for connection to master"
36+
},
37+
"ignore_unavailable":{
38+
"type":"boolean",
39+
"description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)"
40+
},
41+
"allow_no_indices":{
42+
"type":"boolean",
43+
"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)"
44+
},
45+
"expand_wildcards":{
46+
"type":"enum",
47+
"options":[
48+
"open",
49+
"closed",
50+
"hidden",
51+
"none",
52+
"all"
53+
],
54+
"default":"open",
55+
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
56+
}
57+
}
58+
}
59+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"indices.data_streams_stats":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Provides statistics on operations happening in a data stream."
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_data_stream/_stats",
12+
"methods":[
13+
"GET"
14+
]
15+
},
16+
{
17+
"path":"/_data_stream/{name}/_stats",
18+
"methods":[
19+
"GET"
20+
],
21+
"parts":{
22+
"name":{
23+
"type":"list",
24+
"description":"A comma-separated list of data stream names; use `_all` or empty string to perform the operation on all data streams"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{
31+
"expand_wildcards":{
32+
"type":"enum",
33+
"options":[
34+
"open",
35+
"closed",
36+
"hidden",
37+
"none",
38+
"all"
39+
],
40+
"default":"open",
41+
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
42+
},
43+
"forbid_closed_indices":{
44+
"type":"boolean",
45+
"description":"If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indices",
46+
"default":true
47+
}
48+
}
49+
}
50+
}

api_generator/rest_specs/indices.delete_data_stream.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
],
1515
"parts":{
1616
"name":{
17-
"type":"string",
18-
"description":"The name of the data stream"
17+
"type":"list",
18+
"description":"A comma-separated list of data streams to delete; use `*` to delete all data streams"
1919
}
2020
}
2121
}

api_generator/rest_specs/indices.get_data_stream.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
],
2121
"parts":{
2222
"name":{
23-
"type":"string",
24-
"description":"The name or wildcard expression of the requested data streams"
23+
"type":"list",
24+
"description":"A comma-separated list of data streams to get; use `*` to get all data streams"
2525
}
2626
}
2727
}

api_generator/rest_specs/indices.put_mapping.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@
195195
],
196196
"default":"open",
197197
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
198+
},
199+
"write_index_only":{
200+
"type":"boolean",
201+
"default":false,
202+
"description":"When true, applies mappings only to the write index of an alias or data stream"
198203
}
199204
},
200205
"body":{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.x
1+
7.9
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"ml.update_data_frame_analytics":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html",
5+
"description":"Updates certain properties of a data frame analytics job."
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_ml/data_frame/analytics/{id}/_update",
12+
"methods":[
13+
"POST"
14+
],
15+
"parts":{
16+
"id":{
17+
"type":"string",
18+
"description":"The ID of the data frame analytics to update"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"body":{
25+
"description":"The data frame analytics settings to update",
26+
"required":true
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)