From f0a71c4b58e0cbc6d2888d7a90fb90c92bbf12e5 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Thu, 31 Mar 2016 12:06:45 +0200 Subject: [PATCH 1/2] CodeGeneration commit for Elasticsearch 2.3 --- .../ApiEndpoints/cat.snapshots.json | 2 +- .../ApiEndpoints/indices.analyze.json | 4 +- .../ApiEndpoints/indices.optimize.json | 2 +- .../ApiEndpoints/reindex.json | 36 + .../ApiEndpoints/root.html | 1782 +++++++++++------ .../ApiEndpoints/search_exists.json | 2 +- .../ApiEndpoints/tasks.cancel.json | 35 + .../ApiEndpoints/tasks.list.json | 43 + .../ApiEndpoints/update_by_query.json | 204 ++ .../ApiGenerator.cs | 2 +- .../Domain/Enums.Generated.cs | 737 +++---- .../RequestParameters.Generated.cs | 296 ++- .../ElasticLowLevelClient.Generated.cs | 238 ++- .../IElasticLowLevelClient.Generated.cs | 224 ++- src/Nest/_Generated/_Descriptors.generated.cs | 287 ++- .../_Generated/_LowLevelDispatch.generated.cs | 96 + .../_RequestParametersExtensions.Generated.cs | 20 + src/Nest/_Generated/_Requests.generated.cs | 279 ++- 18 files changed, 3299 insertions(+), 990 deletions(-) create mode 100644 src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/reindex.json create mode 100644 src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/tasks.cancel.json create mode 100644 src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/tasks.list.json create mode 100644 src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/update_by_query.json diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/cat.snapshots.json b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/cat.snapshots.json index 758a7bead08..4f1db6974f7 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/cat.snapshots.json +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/cat.snapshots.json @@ -8,7 +8,7 @@ "parts": { "repository": { "type" : "list", - "required" : true, + "required": true, "description": "Name of repository from which to fetch the snapshot information" } }, diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.analyze.json b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.analyze.json index 9fe9bfe3cad..c3dc0a18b45 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.analyze.json +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.analyze.json @@ -44,13 +44,13 @@ "type" : "string", "description" : "The name of the tokenizer to use for the analysis" }, - "detail": { + "explain": { "type" : "boolean", "description" : "With `true`, outputs more advanced details. (default: false)" }, "attributes": { "type" : "list", - "description" : "A comma-separated list of token attributes to output, this parameter works only with `detail=true`" + "description" : "A comma-separated list of token attributes to output, this parameter works only with `explain=true`" }, "format": { "type": "enum", diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.optimize.json b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.optimize.json index 72aa77fcbc9..c5e63bfe60d 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.optimize.json +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.optimize.json @@ -1,6 +1,6 @@ { "indices.optimize": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/2.1/indices-optimize.html", + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-optimize.html", "methods": ["POST", "GET"], "url": { "path": "/_optimize", diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/reindex.json b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/reindex.json new file mode 100644 index 00000000000..59cd3ef7d38 --- /dev/null +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/reindex.json @@ -0,0 +1,36 @@ +{ + "reindex": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/plugins-reindex.html", + "methods": ["POST"], + "url": { + "path": "/_reindex", + "paths": ["/_reindex"], + "parts": {}, + "params": { + "refresh": { + "type" : "boolean", + "description" : "Should the effected indexes be refreshed?" + }, + "timeout": { + "type" : "time", + "default": "1m", + "description" : "Time each individual bulk request should wait for shards that are unavailable." + }, + "consistency": { + "type" : "enum", + "options" : ["one", "quorum", "all"], + "description" : "Explicit write consistency setting for the operation" + }, + "wait_for_completion": { + "type" : "boolean", + "default": false, + "description" : "Should the request should block until the reindex is complete." + } + } + }, + "body": { + "description": "The search definition using the Query DSL and the prototype for the index request.", + "required": true + } + } +} diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/root.html b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/root.html index 04441101f2e..db492c2726d 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/root.html +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/root.html @@ -7,22 +7,22 @@ - - + + - + - - + + - elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api at 2.2 · elastic/elasticsearch · GitHub + elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api at 2.3 · elastic/elasticsearch · GitHub @@ -54,7 +54,7 @@ - + @@ -67,14 +67,14 @@ - + - + - + @@ -82,14 +82,15 @@ - + - + - + +
Skip to content @@ -98,14 +99,14 @@ -