Skip to content

Commit a4f1281

Browse files
committed
Generate API with specs from master
This commit updates the REST specs with the latest from the Elasticsearch master branch and regenerates the client API.
1 parent 9d9a4fb commit a4f1281

File tree

4 files changed

+429
-1
lines changed

4 files changed

+429
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"close_point_in_time":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
5+
"description":"Close a point in time"
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_pit",
12+
"methods":[
13+
"DELETE"
14+
]
15+
}
16+
]
17+
},
18+
"params":{},
19+
"body":{
20+
"description": "a point-in-time id to close"
21+
}
22+
}
23+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"open_point_in_time":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
5+
"description":"Open a point in time that can be used in subsequent searches"
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_pit",
12+
"methods":[
13+
"POST"
14+
]
15+
},
16+
{
17+
"path":"/{index}/_pit",
18+
"methods":[
19+
"POST"
20+
],
21+
"parts":{
22+
"index":{
23+
"type":"list",
24+
"description":"A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{
31+
"preference":{
32+
"type":"string",
33+
"description":"Specify the node or shard the operation should be performed on (default: random)"
34+
},
35+
"routing":{
36+
"type":"string",
37+
"description":"Specific routing value"
38+
},
39+
"ignore_unavailable":{
40+
"type":"boolean",
41+
"description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)"
42+
},
43+
"expand_wildcards":{
44+
"type":"enum",
45+
"options":[
46+
"open",
47+
"closed",
48+
"hidden",
49+
"none",
50+
"all"
51+
],
52+
"default":"open",
53+
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
54+
},
55+
"keep_alive": {
56+
"type": "string",
57+
"description": "Specific the time to live for the point in time"
58+
}
59+
}
60+
}
61+
}

elasticsearch/src/params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub enum OpType {
120120
Create,
121121
}
122122
#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)]
123-
#[doc = "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."]
123+
#[doc = "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes."]
124124
pub enum Refresh {
125125
#[serde(rename = "true")]
126126
True,

0 commit comments

Comments
 (0)