Skip to content

[Backport 7.x] Generate low level client code for 7.12 #5396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .ci/test-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---

STACK_VERSION:
- 7.x-SNAPSHOT
- 7.12.0-SNAPSHOT

TEST_SUITE:
- free
- platinum

DOTNET_VERSION:
- 5.0.103
- 5.0.103

exclude: ~
4 changes: 2 additions & 2 deletions src/ApiGenerator/Domain/ApiQueryParametersPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ private static string CreateCSharpName(string queryStringKey, string endpointNam
{
if (string.IsNullOrWhiteSpace(queryStringKey)) return "UNKNOWN";

if (queryStringKey == "format" && endpointName == "ml.find_file_structure")
return "MachineLearningFindFileStructureFormat";
if (queryStringKey == "format" && endpointName == "text_structure.find_structure")
return "TextStructureFindStructureFormat";

var cased = queryStringKey.ToPascalCase();
switch (cased)
Expand Down
2 changes: 1 addition & 1 deletion src/ApiGenerator/RestSpecification/Core/indices.close.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"wait_for_active_shards":{
"type":"string",
"description":"Sets the number of active shards to wait for before the operation returns."
"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`."
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/ApiGenerator/RestSpecification/Core/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@
"type":"boolean",
"description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
"default":false
},
"min_compatible_shard_node":{
"type":"string",
"description":"The minimum compatible version that all shards involved in search should have for this request to be successful"
}
},
"body":{
Expand Down
29 changes: 29 additions & 0 deletions src/ApiGenerator/RestSpecification/Core/snapshot.get_features.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"snapshot.get_features":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"description":"Returns a list of features which can be snapshotted in this cluster."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_snapshottable_features",
"methods":[
"GET"
]
}
]
},
"params":{
"master_timeout":{
"type":"time",
"description":"Explicit operation timeout for connection to master node"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.delete_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html",
"description":"Deletes an autoscaling policy."
"description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.get_autoscaling_capacity":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html",
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy."
"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."
},
"stability":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.get_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html",
"description": "Retrieves an autoscaling policy."
"description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"autoscaling.put_autoscaling_policy":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html",
"description": "Creates a new autoscaling policy."
"description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
},
"stability":"experimental",
"visibility":"feature_flag",
"feature_flag":"es.autoscaling_feature_flag_registered",
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
Expand Down
31 changes: 31 additions & 0 deletions src/ApiGenerator/RestSpecification/XPack/eql.get_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"eql.get_status": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html",
"description": "Returns the status of a previously submitted async or stored Event Query Language (EQL) search"
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": [
"application/json"
]
},
"url": {
"paths": [
{
"path": "/_eql/search/status/{id}",
"methods": [
"GET"
],
"parts": {
"id": {
"type": "string",
"description": "The async search ID"
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"logstash.delete_pipeline":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html",
"description":"Deletes Logstash Pipelines used by Central Management"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_logstash/pipeline/{id}",
"methods":[ "DELETE" ],
"parts":{
"id":{
"type":"string",
"description":"The ID of the Pipeline"
}
}
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"logstash.get_pipeline":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html",
"description":"Retrieves Logstash Pipelines used by Central Management"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{
"path":"/_logstash/pipeline/{id}",
"methods":[ "GET" ],
"parts":{
"id":{
"type":"string",
"description":"A comma-separated list of Pipeline IDs"
}
}
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"logstash.put_pipeline":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html",
"description":"Adds and updates Logstash Pipelines used for Central Management"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_logstash/pipeline/{id}",
"methods":[ "PUT" ],
"parts":{
"id":{
"type":"string",
"description":"The ID of the Pipeline"
}
}
}
]
},
"params":{
},
"body":{
"description":"The Pipeline to add or update",
"required":true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"type":"boolean",
"description":"Should this request wait until the operation has completed before returning",
"default":false
},
"storage":{
"type":"string",
"description":"Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy`",
"default":false
}
},
"body":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
}
}
]
},
"params": {
"level":{
"type":"enum",
"description":"Return stats aggregated at cluster, index or shard level",
"options":[
"cluster",
"indices",
"shards"
],
"default":"indices"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ml.find_file_structure":{
"text_structure.find_structure":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html",
"description":"Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."
},
"stability":"experimental",
Expand All @@ -13,7 +13,7 @@
"url":{
"paths":[
{
"path":"/_ml/find_file_structure",
"path":"/_text_structure/find_structure",
"methods":[
"POST"
]
Expand Down
2 changes: 1 addition & 1 deletion src/ApiGenerator/last_downloaded_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c5c9c1b14918f852399c86da53181f4b6a82e948
61c3b8cb7bf3e410ee21657756f079ea035d15f5
Loading