Skip to content

Commit 6a31505

Browse files
github-actions[bot]stevejgordonMpdreamz
authored
Generate low level client code for 7.12 (#5364) (#5396)
* Generate low level client code for 7.12 * Fix type name * Update test-matrix * Update test matrix * Fix parsing of some yaml tests on master (#5315) * Skip cat template YAML test (#5313) Co-authored-by: Martijn Laarman <[email protected]> (cherry picked from commit 9251068) * No longer fail to parse when allowed_warnings is last in the do operation definition Co-authored-by: Steve Gordon <[email protected]> (cherry picked from commit 78a0933) Co-authored-by: Martijn Laarman <[email protected]> Co-authored-by: Steve Gordon <[email protected]> Co-authored-by: Martijn Laarman <[email protected]>
1 parent b03a794 commit 6a31505

37 files changed

+643
-182
lines changed

.ci/test-matrix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22

33
STACK_VERSION:
4-
- 7.x-SNAPSHOT
4+
- 7.12.0-SNAPSHOT
55

66
TEST_SUITE:
77
- free
88
- platinum
99

1010
DOTNET_VERSION:
11-
- 5.0.103
11+
- 5.0.103
1212

1313
exclude: ~

src/ApiGenerator/Domain/ApiQueryParametersPatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ private static string CreateCSharpName(string queryStringKey, string endpointNam
6565
{
6666
if (string.IsNullOrWhiteSpace(queryStringKey)) return "UNKNOWN";
6767

68-
if (queryStringKey == "format" && endpointName == "ml.find_file_structure")
69-
return "MachineLearningFindFileStructureFormat";
68+
if (queryStringKey == "format" && endpointName == "text_structure.find_structure")
69+
return "TextStructureFindStructureFormat";
7070

7171
var cased = queryStringKey.ToPascalCase();
7272
switch (cased)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"wait_for_active_shards":{
5858
"type":"string",
59-
"description":"Sets the number of active shards to wait for before the operation returns."
59+
"description":"Sets the number of active shards to wait for before the operation returns. Set to `index-setting` to wait according to the index setting `index.write.wait_for_active_shards`, or `all` to wait for all shards, or an integer. Defaults to `0`."
6060
}
6161
}
6262
}

src/ApiGenerator/RestSpecification/Core/search.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@
248248
"type":"boolean",
249249
"description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
250250
"default":false
251+
},
252+
"min_compatible_shard_node":{
253+
"type":"string",
254+
"description":"The minimum compatible version that all shards involved in search should have for this request to be successful"
251255
}
252256
},
253257
"body":{
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"snapshot.get_features":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
5+
"description":"Returns a list of features which can be snapshotted in this cluster."
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_snapshottable_features",
16+
"methods":[
17+
"GET"
18+
]
19+
}
20+
]
21+
},
22+
"params":{
23+
"master_timeout":{
24+
"type":"time",
25+
"description":"Explicit operation timeout for connection to master node"
26+
}
27+
}
28+
}
29+
}

src/ApiGenerator/RestSpecification/XPack/autoscaling.delete_autoscaling_policy.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.delete_autoscaling_policy":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html",
5-
"description":"Deletes an autoscaling policy."
5+
"description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"]
1211
},

src/ApiGenerator/RestSpecification/XPack/autoscaling.get_autoscaling_capacity.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.get_autoscaling_capacity":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html",
5-
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy."
5+
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"]
1211
},

src/ApiGenerator/RestSpecification/XPack/autoscaling.get_autoscaling_policy.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.get_autoscaling_policy":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html",
5-
"description": "Retrieves an autoscaling policy."
5+
"description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"]
1211
},

src/ApiGenerator/RestSpecification/XPack/autoscaling.put_autoscaling_policy.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.put_autoscaling_policy":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html",
5-
"description": "Creates a new autoscaling policy."
5+
"description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"],
1211
"content_type": ["application/json"]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"eql.get_status": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html",
5+
"description": "Returns the status of a previously submitted async or stored Event Query Language (EQL) search"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
13+
},
14+
"url": {
15+
"paths": [
16+
{
17+
"path": "/_eql/search/status/{id}",
18+
"methods": [
19+
"GET"
20+
],
21+
"parts": {
22+
"id": {
23+
"type": "string",
24+
"description": "The async search ID"
25+
}
26+
}
27+
}
28+
]
29+
}
30+
}
31+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"logstash.delete_pipeline":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html",
5+
"description":"Deletes Logstash Pipelines used by Central Management"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_logstash/pipeline/{id}",
16+
"methods":[ "DELETE" ],
17+
"parts":{
18+
"id":{
19+
"type":"string",
20+
"description":"The ID of the Pipeline"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params":{}
27+
}
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"logstash.get_pipeline":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html",
5+
"description":"Retrieves Logstash Pipelines used by Central Management"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_logstash/pipeline/{id}",
16+
"methods":[ "GET" ],
17+
"parts":{
18+
"id":{
19+
"type":"string",
20+
"description":"A comma-separated list of Pipeline IDs"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params":{}
27+
}
28+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"logstash.put_pipeline":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html",
5+
"description":"Adds and updates Logstash Pipelines used for Central Management"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_logstash/pipeline/{id}",
17+
"methods":[ "PUT" ],
18+
"parts":{
19+
"id":{
20+
"type":"string",
21+
"description":"The ID of the Pipeline"
22+
}
23+
}
24+
}
25+
]
26+
},
27+
"params":{
28+
},
29+
"body":{
30+
"description":"The Pipeline to add or update",
31+
"required":true
32+
}
33+
}
34+
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
"type":"boolean",
4040
"description":"Should this request wait until the operation has completed before returning",
4141
"default":false
42+
},
43+
"storage":{
44+
"type":"string",
45+
"description":"Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy`",
46+
"default":false
4247
}
4348
},
4449
"body":{

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
}
3131
}
3232
]
33+
},
34+
"params": {
35+
"level":{
36+
"type":"enum",
37+
"description":"Return stats aggregated at cluster, index or shard level",
38+
"options":[
39+
"cluster",
40+
"indices",
41+
"shards"
42+
],
43+
"default":"indices"
44+
}
3345
}
3446
}
3547
}

src/ApiGenerator/RestSpecification/XPack/ml.find_file_structure.json renamed to src/ApiGenerator/RestSpecification/XPack/text_structure.find_structure.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"ml.find_file_structure":{
2+
"text_structure.find_structure":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html",
55
"description":"Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."
66
},
77
"stability":"experimental",
@@ -13,7 +13,7 @@
1313
"url":{
1414
"paths":[
1515
{
16-
"path":"/_ml/find_file_structure",
16+
"path":"/_text_structure/find_structure",
1717
"methods":[
1818
"POST"
1919
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c5c9c1b14918f852399c86da53181f4b6a82e948
1+
61c3b8cb7bf3e410ee21657756f079ea035d15f5

0 commit comments

Comments
 (0)