Skip to content

Commit 6755408

Browse files
authored
[7.x] Update low level code (#5029)
1 parent 51ea102 commit 6755408

19 files changed

+865
-622
lines changed

src/ApiGenerator/Configuration/CodeConfiguration.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ public static class CodeConfiguration
3232
"indices.upgrade.json",
3333
"indices.get_upgrade.json",
3434

35-
// already removed in the client.
36-
"indices.exists_type.json"
37-
3835
};
3936

4037
private static string[] IgnoredApisHighLevel { get; } =

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
"methods":[
1313
"POST",
1414
"GET"
15-
]
15+
],
16+
"deprecated":{
17+
"version":"7.6.0",
18+
"description":"Synced flush is deprecated and will be removed in 8.0. Use flush instead."
19+
}
1620
},
1721
{
1822
"path":"/{index}/_flush/synced",
@@ -25,6 +29,10 @@
2529
"type":"list",
2630
"description":"A comma-separated list of index names; use `_all` or empty string for all indices"
2731
}
32+
},
33+
"deprecated":{
34+
"version":"7.6.0",
35+
"description":"Synced flush is deprecated and will be removed in 8.0. Use flush instead."
2836
}
2937
}
3038
]

src/ApiGenerator/RestSpecification/Core/root.html

Lines changed: 270 additions & 264 deletions
Large diffs are not rendered by default.
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.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+
}

src/ApiGenerator/RestSpecification/XPack/ml.get_trained_models.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@
3434
"description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)",
3535
"default":true
3636
},
37-
"include_model_definition":{
38-
"type":"boolean",
37+
"include":{
38+
"type":"string",
3939
"required":false,
40-
"description":"Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false.",
41-
"default":false
40+
"description":"A comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none."
4241
},
4342
"decompress_definition":{
4443
"type":"boolean",
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.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+
}

src/ApiGenerator/RestSpecification/XPack/root.html

Lines changed: 365 additions & 321 deletions
Large diffs are not rendered by default.

src/ApiGenerator/RestSpecification/XPack/searchable_snapshots.clear_cache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"searchable_snapshots.clear_cache": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-clear-cache.html",
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
55
"description" : "Clear the cache of searchable snapshots."
66
},
77
"stability": "experimental",

src/ApiGenerator/RestSpecification/XPack/searchable_snapshots.repository_stats.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"searchable_snapshots.repository_stats": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-repository-stats.html",
5-
"description": "Retrieve usage statistics about a snapshot repository."
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
5+
"description": "DEPRECATED: This API is replaced by the Repositories Metering API."
66
},
77
"stability": "experimental",
88
"url": {

src/ApiGenerator/RestSpecification/XPack/searchable_snapshots.stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"searchable_snapshots.stats": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-stats.html",
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
55
"description": "Retrieve various statistics about searchable snapshots."
66
},
77
"stability": "experimental",

0 commit comments

Comments
 (0)