Skip to content

Commit 3ccd8bc

Browse files
authored
Update rest specs to master and regenerate client (#123)
This commit runs the api_generator to pull down the latest master rest specs and regenerate the client to pick up API changes.
1 parent 5505d36 commit 3ccd8bc

17 files changed

+596
-8
lines changed

api_generator/rest_specs/bulk.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@
8787
"pipeline":{
8888
"type":"string",
8989
"description":"The pipeline id to preprocess incoming documents with"
90+
},
91+
"require_alias": {
92+
"type": "boolean",
93+
"description": "Sets require_alias for all incoming documents. Defaults to unset (false)"
9094
}
9195
},
9296
"body":{

api_generator/rest_specs/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
"pipeline":{
9393
"type":"string",
9494
"description":"The pipeline id to preprocess incoming documents with"
95+
},
96+
"require_alias": {
97+
"type": "boolean",
98+
"description": "When true, requires destination to be an alias. Default is false"
9599
}
96100
},
97101
"body":{
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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}
31+
}

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
@@ -50,6 +50,11 @@
5050
],
5151
"default":"open",
5252
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
53+
},
54+
"write_index_only":{
55+
"type":"boolean",
56+
"default":false,
57+
"description":"When true, applies mappings only to the write index of an alias or data stream"
5358
}
5459
},
5560
"body":{

api_generator/rest_specs/ml.get_data_frame_analytics_stats.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
"type":"int",
4444
"description":"specifies a max number of analytics to get",
4545
"default":100
46+
},
47+
"verbose":{
48+
"type":"boolean",
49+
"required":false,
50+
"description":"whether the stats response should be verbose",
51+
"default":false
4652
}
4753
}
4854
}
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+
}

api_generator/rest_specs/nodes.stats.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"process",
4545
"thread_pool",
4646
"transport",
47-
"discovery"
47+
"discovery",
48+
"indexing_pressure"
4849
],
4950
"description":"Limit the information returned to the specified metrics"
5051
}
@@ -69,7 +70,8 @@
6970
"process",
7071
"thread_pool",
7172
"transport",
72-
"discovery"
73+
"discovery",
74+
"indexing_pressure"
7375
],
7476
"description":"Limit the information returned to the specified metrics"
7577
},
@@ -98,7 +100,8 @@
98100
"process",
99101
"thread_pool",
100102
"transport",
101-
"discovery"
103+
"discovery",
104+
"indexing_pressure"
102105
],
103106
"description":"Limit the information returned to the specified metrics"
104107
},
@@ -146,7 +149,8 @@
146149
"process",
147150
"thread_pool",
148151
"transport",
149-
"discovery"
152+
"discovery",
153+
"indexing_pressure"
150154
],
151155
"description":"Limit the information returned to the specified metrics"
152156
},
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"security.clear_cached_privileges":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html",
5+
"description":"Evicts application privileges from the native application privileges cache."
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_security/privilege/{application}/_clear_cache",
12+
"methods":[
13+
"POST"
14+
],
15+
"parts":{
16+
"application":{
17+
"type":"list",
18+
"description":"A comma-separated list of application names"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{}
25+
}
26+
}

api_generator/rest_specs/update.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@
9999
"if_primary_term":{
100100
"type":"number",
101101
"description":"only perform the update operation if the last operation that has changed the document has the specified primary term"
102+
},
103+
"require_alias": {
104+
"type": "boolean",
105+
"description": "When true, requires destination is an alias. Default is false"
102106
}
103107
},
104108
"body":{

api_generator/rest_specs/xpack.info.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"categories":{
2020
"type":"list",
2121
"description":"Comma-separated list of info categories. Can be any of: build, license, features"
22+
},
23+
"accept_enterprise":{
24+
"type":"boolean",
25+
"description":"Supported for backwards compatibility with 7.x. If this param is used it must be set to true",
26+
"deprecated":true
2227
}
2328
}
2429
}

0 commit comments

Comments
 (0)